/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Hamburger Nav ─────────────────────────────────── */
.ham-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  pointer-events: none;
}

/* The button sits at top-right, normal icon size */
.ham-btn {
  position: absolute;
  top: 3.75rem;
  right: 4.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  z-index: 2001;
  width: 28px;
  overflow: hidden;
}

.ham-line {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  flex-shrink: 0;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.35s ease;
}

.ham-line-1 { width: 28px; }
.ham-line-2 { width: 20px; }
.ham-line-3 { width: 24px; }

/* Animate to X when open */
.ham-btn.is-open .ham-line-1 {
  transform: translateY(7px) rotate(45deg);
  width: 28px;
}
.ham-btn.is-open .ham-line-2 {
  opacity: 0;
  width: 28px;
}
.ham-btn.is-open .ham-line-3 {
  transform: translateY(-7px) rotate(-45deg);
  width: 28px;
}

/* Dropdown menu */
.ham-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 4.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-bottom: 1px solid rgba(144, 23, 8, 0.15);
}

.ham-menu.is-open {
  transform: translateY(0);
  pointer-events: all;
}

.ham-item {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.ham-item:hover {
  color: var(--color-red);
}
/* ─────────────────────────────────────────────────── */

:root {
  --color-bg: #e6e6e6;
  --color-surface: #1a1a1a;
  --color-surface-hover: #2a2a2a;
  --color-border: #333333;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-rose: #c9787c;
  --color-red: #901708;
  --color-accent: var(--color-rose);
  --color-accent-hover: #901708;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --radius: 16px;
  --max-width: 1000px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: #c9a0a0;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: #b08080;
}

/* Hero */
.hero {
  padding: 9rem 2rem 4.5rem;
  text-align: left;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Typewriter welcome line */
.hero-welcome {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-family: var(--font-sans);
  min-height: 1.4em;
  letter-spacing: 0.02em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
}

/* Shrinking lines left and right of the typewriter text */
.hero-welcome-line {
  display: block;
  height: 1px;
  background: var(--color-text-muted);
  opacity: 0.35;
  flex: 1;
  max-width: 25%;
  min-width: 0;
  transition: none;
}
.hero-welcome-text {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-welcome-text::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
}

.hero-welcome--done .hero-welcome-text::after {
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.social-icons a {
  color: #6b6b6b;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  margin-left: 0;
  position: relative;
}

.social-icons a svg {
  width: 22px;
  height: 22px;
}

.social-icons a:first-child {
  margin-left: 0;
}

.social-icons a:hover {
  color: #901708;
  transform: scale(1.15);
  z-index: 2;
}

/* Hero social icons override */
.hero .social-icons a:not(.mail-me-btn) {
  color: #6b6b6b;
}

.hero .social-icons a:not(.mail-me-btn):hover {
  color: #901708;
}

.mail-me-btn,
.social-icons .mail-me-btn,
.hero .social-icons .mail-me-btn,
a.mail-me-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  background: #901708 !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  width: auto !important;
  height: auto !important;
  margin-left: 0;
  transition: transform 0.2s ease;
}

.mail-me-btn:hover,
.social-icons .mail-me-btn:hover,
.hero .social-icons .mail-me-btn:hover {
  background: #901708 !important;
  transform: scale(1.15);
  color: #fff !important;
}

.hero h1 {
  font-size: clamp(3.75rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.hero-name-img {
  display: block;
  max-width: 70%;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.9375rem;
  color: var(--color-red);
  font-weight: 500;
  margin-bottom: 2.25rem;
  font-family: 'Courier New', monospace;
}

/* Scroll Animation - Horizontal Unroll */
.scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.45rem auto 4.5rem;
  width: 63%;
  max-width: 560px;
  height: 60px;
  animation: scrollPulse 10s ease-in-out infinite;
}

.scroll-inner {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  animation: scrollUnroll 10s ease-in-out infinite;
}

.scroll-svg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.scroll-words {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
  animation: wordsFadeOut 10s ease-in-out infinite;
}

.scroll-word {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
  text-shadow: 
    -1px -1px 0 #4a0d06,
    1px -1px 0 #4a0d06,
    -1px 1px 0 #4a0d06,
    1px 1px 0 #4a0d06;
}

/* Horizontal unroll: clip-path reveals left to right */
/* Scroll rolls in, then fades out */
@keyframes scrollUnroll {
  0%, 3% { clip-path: inset(0 100% 0 0); opacity: 1; }
  30% { clip-path: inset(0 0% 0 0); opacity: 1; }
  70% { clip-path: inset(0 0% 0 0); opacity: 1; }
  85%, 100% { clip-path: inset(0 0% 0 0); opacity: 0; }
}

/* All words fade out together before scroll fades */
@keyframes wordsFadeOut {
  0%, 60% { opacity: 1; }
  75%, 100% { opacity: 0; }
}

/* Subtle pulse on container */
@keyframes scrollPulse {
  0%, 100% { transform: scale(1); }
  2% { transform: scale(1.01); }
  4% { transform: scale(1); }
}

@media (max-width: 640px) {
  .scroll-container {
    width: 340px;
    height: 48px;
  }
  
  .scroll-words {
    gap: 0.8rem;
  }
  
  .scroll-word {
    font-size: 0.85rem;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.75;
}

.hero-description-cols {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 693px;
  margin: 3rem auto 0;
  text-align: left;
}

.hero-description-italic {
  color: var(--color-text-muted);
  opacity: 0.75;
}

.quick-links {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.quick-link {
  color: var(--color-red);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.quick-link:hover {
  text-decoration: underline;
}

/* Ask Box */
.ask-box {
  margin-top: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ask-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #2a0a05;
  border: 3px solid #901708;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 0 0 4px #fff, 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.ask-input-wrapper:focus-within {
  box-shadow: 0 0 0 4px #fff, 0 4px 20px rgba(144, 23, 8, 0.2);
}

.ask-placeholder {
  position: absolute;
  left: 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
}

.ask-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  color: #e0e0e0;
  background: transparent;
}

.ask-input:focus + .ask-placeholder,
.ask-input:not(:placeholder-shown) ~ .ask-placeholder {
  display: none;
}

.ask-btn {
  background: var(--color-red);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-left: 0.5rem;
}

.ask-btn:hover {
  background: #7a1306;
  transform: scale(1.05);
}

.ask-response {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  display: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ask-response.visible {
  display: block;
  animation: fadeUp 0.3s ease;
}

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

/* View Toggle */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.view-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
}

.view-btn:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.view-btn.active {
  color: var(--color-red);
  border-bottom: 2px solid var(--color-red);
  border-radius: 0;
}

/* Section Cards Container */
.section-cards {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.cards-container {
  transition: all 0.3s ease;
}

/* Layout: Grid (2 columns, portrait cards) */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6.25rem;
}

.layout-grid .section-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}

.layout-grid .section-card .section-card-overlay {
  align-items: flex-start;
  padding: 0.75rem;
}

.layout-grid .section-card .section-card-overlay h3 {
  font-size: 0.85rem;
}

/* Layout: Wide (single column, landscape cards) */
.layout-wide {
  display: flex;
  flex-direction: column;
  gap: 6.25rem;
}

.layout-wide .section-card {
  aspect-ratio: 16 / 5.4;
  border-radius: var(--radius);
  background: #111;
}

.layout-wide .section-card img {
  object-fit: contain;
}

/* Layout: List (horizontal rows with small thumbnail) */
.layout-list {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}

.layout-list .section-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  aspect-ratio: unset;
  height: 120px;
  border-radius: 12px;
  background: #111;
  border: 1px solid #222;
}

.layout-list .section-card img {
  width: 120px;
  height: 120px;
  border-radius: 12px 0 0 12px;
  object-fit: contain;
  background: #111;
}

.layout-list .section-card-overlay {
  position: relative;
  inset: unset;
  background: none;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: flex-start;
}

.layout-list .section-card-overlay h3 {
  font-size: 1rem;
  text-shadow: none;
  color: #fff;
}

/* Section Card (shared) */
.section-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #2a0a05;
}

.section-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

/* Per-card background colours from dominant photo tones */
.section-card[data-section="personal"]  { background: #2a0a05; }
.section-card[data-section="work"]      { background: #2a0a05; }
.section-card[data-section="founder"]   { background: #2a0a05; }
.section-card[data-section="charities"] { background: #2a0a05; }
.section-card[data-section="ambition"]  { background: #2a0a05; }
.section-card[data-section="blog"]      { background: #2a0a05; }

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

.card-img-alt {
  position: absolute;
  top: 0;
  left: 0;
}

.card-img-alt-a {
  animation: imgAltA 3s infinite;
}

.card-img-alt-b {
  animation: imgAltB 3s infinite;
}

.card-img-alt-c {
  animation: imgAltC 3s infinite;
}

@keyframes imgAltA {
  0%, 33.2% { opacity: 1; }
  33.3%, 100% { opacity: 0; }
}

@keyframes imgAltB {
  0%, 33.2% { opacity: 0; }
  33.3%, 66.5% { opacity: 1; }
  66.6%, 100% { opacity: 0; }
}

@keyframes imgAltC {
  0%, 66.5% { opacity: 0; }
  66.6%, 100% { opacity: 1; }
}

.section-card:hover img {
  transform: scale(1.04);
}

.section-card-overlay {
  position: absolute;
  inset: 0;
  background: none;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.section-card-overlay h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-family: var(--font-sans);
}

/* Page Overlay */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 4rem 2rem;
}

.page-overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  background: var(--color-red);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-close:hover {
  background: #b82e33;
  transform: scale(1.1);
}

/* Page Panels */
.page-panel {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  animation: slideUp 0.4s ease;
}

.page-panel.active {
  display: block;
}

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

.page-panel h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-panel > p {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* Inner Cards */
.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Story Format - Split Panel Layout */
.story-layout {
  display: flex;
  gap: 1.5rem;
  min-height: 60vh;
}

/* Default: show split layout immediately with first chapter active */
.story-layout {
  display: flex;
  gap: 1.5rem;
  min-height: 60vh;
}

.story-reader {
  flex: 1;
  display: block;
  overflow-y: auto;
  padding-right: 1.5rem;
}

.story-nav {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Story Cards */
.story-card {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid #333;
  display: flex;
  align-items: flex-end;
  min-height: 100px;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--color-red);
}

.story-card.active {
  border-color: var(--color-red);
  background: #2a0a05;
}

.story-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #aaa;
}

.story-card.active h4 {
  color: #fff;
}

/* Story Content */
.story-content {
  display: none;
  animation: fadeUp 0.3s ease;
}

.story-content.active {
  display: block;
}

.story-reader-hint {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1rem;
}

.story-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #c9a0a0;
}

.story-images {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-image-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-images img,
.story-image-item img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.story-image-portrait img {
  max-height: none;
  object-fit: contain;
  max-width: 100%;
}

.story-image-small img {
  max-height: 200px;
  object-fit: contain;
  max-width: 400px;
}

/* Story Video */
.story-video {
  width: 100%;
  border-radius: 12px;
  margin-top: 1.5rem;
  display: block;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.story-subtitle {
  font-style: italic;
  color: var(--color-text-muted) !important;
  font-size: 0.95rem !important;
}

.story-aside {
  font-style: italic;
  color: var(--color-text-muted) !important;
  font-size: 0.9rem !important;
}

.story-closing {
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--color-red) !important;
  margin-top: 1.5rem;
}

.story-ai-link {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem !important;
  color: var(--color-text-muted) !important;
  cursor: pointer;
  margin-top: 2rem !important;
}

.story-ai-link:hover {
  color: var(--color-red) !important;
}

.story-disclaimer {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.2;
  max-width: 100%;
}

/* Founder Entries */
.founder-entries {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.founder-entry {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.founder-header {
  flex: 1;
}

.founder-header h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--color-text);
}

.founder-brief {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .story-layout {
    flex-direction: column;
  }

  .story-nav {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    overflow-x: auto;
  }

  .story-nav .story-card {
    min-width: 150px;
  }

  .story-reader {
    padding-right: 0;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Timeline */
.work-timeline {
  border-left: 2px solid var(--color-red);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.work-entry {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.work-entry::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-red);
  border: 2px solid var(--color-bg);
}

.work-main {
  flex: 1;
}

.work-main h3 {
  font-size: 1.1rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--color-text);
}

.work-brief {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.work-story-card {
  background: #1a1a1a;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid #333;
  min-width: 90px;
  text-align: center;
}

.work-story-card:hover {
  background: #2a0a05;
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-2px);
}

/* Work Story Overlay */
.work-story-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1100;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.work-story-overlay.active {
  opacity: 1;
  visibility: visible;
}

.work-story-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1101;
  background: var(--color-red);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-story-close:hover {
  background: #7a1306;
  transform: scale(1.1);
}

.work-story-content {
  display: none;
  max-width: 700px;
  animation: fadeUp 0.3s ease;
}

.work-story-content.active {
  display: block;
}

.work-story-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #c9a0a0;
  margin-bottom: 1.5rem;
}

.work-story-content p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.work-story-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.work-story-content li {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 0.75rem;
  color: #e0e0e0;
}

.timeline {
  border-left: 2px solid var(--color-red);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-red);
  border: 2px solid var(--color-bg);
}

.timeline-date {
  font-size: 0.85rem;
  color: #c9a0a0;
  font-weight: 500;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin: 0.25rem 0 0.5rem;
}

.timeline-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Roadmap */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.roadmap-marker {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background: var(--color-red);
  margin-top: 0.4rem;
}

.roadmap-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.roadmap-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.blog-post {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.blog-post:hover {
  border-color: var(--color-red);
}

.blog-date {
  font-size: 0.85rem;
  color: var(--color-red);
  font-weight: 500;
}

.blog-post h3 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.5rem;
}

.blog-post p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Thoughts */
.thoughts-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thought {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.thought-date {
  font-size: 0.8rem;
  color: var(--color-red);
  font-weight: 500;
}

.thought p {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Footer */
.footer {
  text-align: left;
  padding: 6rem 2rem;
  color: #ffffff;
  font-size: 0.85rem;
  border-top: 1px solid rgba(144, 23, 8, 0.15);
  margin-top: 12rem;
  background: #2a0a05;
  font-family: var(--font-sans);
}

.footer-attribution {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.75;
}

/* Tools Section */
.tools-section {
  max-width: var(--max-width);
  margin: 9rem auto 0;
  padding: 0 2rem;
}

.tools-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

.tools-grid {
  position: relative;
  width: 100%;
  max-width: 598px;
  height: 240px;
  margin: 0 auto;
}

.tools-grid img {
  position: absolute;
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.3s ease, filter 0.2s ease, box-shadow 0.3s ease;
  filter: grayscale(100%) brightness(0.9);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.tools-grid img:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.5);
  z-index: 10;
  box-shadow: none;
}

/* Mobile scatter on scroll */
@media (max-width: 640px) {
  .tools-grid {
    height: 220px;
    max-width: 360px;
  }
  .tools-grid img {
    width: 38px;
    height: 38px;
    padding: 6px;
  }
}

.tools-featured {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  margin-top: 6rem;
  margin-bottom: 1rem;
}

.tools-media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.tools-media-logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Summarise button */
.summarise-btn {
  padding: 0.35rem 0.75rem;
  background: rgba(144, 23, 8, 0.08);
  border: 1px solid rgba(144, 23, 8, 0.2);
  border-radius: 8px;
  color: var(--color-red);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 0.75rem;
  width: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.summarise-btn:hover {
  background: rgba(144, 23, 8, 0.18);
  transform: scale(1.03);
}

/* White variant for story buttons on dark overlay backgrounds */
.summarise-btn-story {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.summarise-btn-story:hover {
  background: rgba(255, 255, 255, 0.2);
}
.footer .social-icons {
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}

.footer .social-icons a {
  color: #6b6b6b;
  border: none;
}

.footer .social-icons a:hover {
  color: #901708;
  border: none;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.5rem 2rem;
  }

  .section-cards {
    padding: 0 1rem 2rem;
  }

  .layout-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .page-overlay {
    padding: 3rem 1.5rem;
  }

  .page-panel h2 {
    font-size: 1.8rem;
  }

  .page-cards {
    grid-template-columns: 1fr;
  }
}

/* Eucheria Hub Portfolio Grid */
.hub-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.hub-portfolio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hub-portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hub-portfolio-card:hover img {
  transform: scale(1.05);
}

.hub-portfolio-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Hub Lightbox */
.hub-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  overflow-y: auto;
  padding: 4rem 2rem 2rem;
}

.hub-lightbox.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

.hub-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-red);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hub-lightbox-close:hover {
  background: #7a1306;
  transform: scale(1.1);
}

.hub-lightbox-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Custom layout overrides — make the wrapper span full width */
.hub-lightbox-inner .fliers-layout,
.hub-lightbox-inner .fliers-row,
.hub-lightbox-inner .fliers-grid-3x2,
.hub-lightbox-inner .robbies-top-row,
.hub-lightbox-inner .robbies-left-col,
.hub-lightbox-inner .irene-main-layout,
.hub-lightbox-inner .accelerate-layout,
.hub-lightbox-inner .irene-stack,
.hub-lightbox-inner .print-pair,
.hub-lightbox-inner .print-layout,
.hub-lightbox-inner .royalkeddn-layout {
  grid-column: 1 / -1;
}

/* Print lightbox — side by side pair */
.print-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.print-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.print-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  display: block;
}

.print-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.print-grid-3x2 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  display: block;
}

.print-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.print-row-3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  display: block;
}

.hub-lightbox-inner img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
}

/* Shared portfolio text block in lightboxes */
.portfolio-text-block {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.portfolio-text-block p {
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

/* Callout quote */
.callout {
  border-left: 3px solid #c9a0a0;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
}

.callout-no-accent {
  border-left: none;
  border-radius: 8px;
}

/* CV Download Button & Modal */
.cv-download-btn {
  padding: 0.4rem 0.9rem;
  background: var(--color-red);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.02em;
}

.cv-download-btn:hover {
  background: #7a1306;
  transform: scale(1.03);
}

.cv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cv-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cv-modal {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.cv-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.cv-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cv-modal-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cv-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.cv-select,
.cv-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
}

.cv-select:focus,
.cv-input:focus {
  outline: none;
  border-color: var(--color-red);
}

.cv-submit-btn {
  margin-top: 0.5rem;
  padding: 0.7rem;
  background: var(--color-red);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cv-submit-btn:hover {
  background: #7a1306;
}

/* Timeline media logos (smaller, no links) */
.timeline-media-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: fit-content;
}

.timeline-media-logos img {
  height: 18px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Enterprise Suite media logos */
.es-media-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}
.es-media-logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.es-media-logos a:hover { opacity: 1; }
.es-media-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
}

.es-notebook-photo {
  margin: 1rem 0;
}
.es-notebook-photo img {
  width: 220px;
  border-radius: 8px;
  object-fit: cover;
}

.es-pair-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.es-pair-item img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.es-pair-item .img-attribution {
  margin-top: 0.4rem;
  text-align: left;
}

.es-pair-top {
  margin: 1.5rem 0;
  gap: 0.75rem;
  width: 100%;
}

.es-pair-top .es-pair-item {
  flex: 1;
  min-width: 0;
}

.es-pair-top .es-pair-item img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.es-pair-top .es-pair-item:first-child img {
  border-radius: 10px;
}

.es-pair-top .es-pair-item:last-child img {
  border-radius: 10px;
}

.es-pair-top .es-pair-item .img-attribution {
  padding: 0;
  margin-top: 0.4rem;
  text-align: left;
}
.business-thinking-block {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #c9a0a0;
  border-right: 3px solid #c9a0a0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.business-thinking-block h4 {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #c9a0a0;
  margin: 0 0 1rem;
}

.business-thinking-block p,
.business-thinking-block li {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #e0e0e0;
  margin-bottom: 0.75rem;
}

.business-thinking-block ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Royal Keddn lightbox layout */
.royalkeddn-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

.royalkeddn-image {
  flex: 0 0 auto;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.royalkeddn-image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  background: #111;
  display: block;
}

.royalkeddn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.royalkeddn-story {
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.royalkeddn-swatches {
  display: flex;
  gap: 0.75rem;
}

.royalkeddn-swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.swatch-block {
  width: 100%;
  height: 55px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: -3px;
}

.swatch-name {
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
}

.swatch-hex {
  font-size: 0.78rem;
  color: #fff;
  font-family: 'Courier New', monospace;
  text-align: center;
}
.robbies-top-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
}

.robbies-left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.robbies-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.robbies-2x2 img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
}

.robbies-all4 img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

.robbies-vid {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-top: 0.75rem;
}

.robbies-below-pair {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.robbies-below-pair img {
  flex: 1;
  width: 50%;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  background: #111;
}

.robbies-right-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 28%;
  max-width: 28%;
}

.robbies-right-stack img {
  flex: 1;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #111;
  min-height: 0;
}

.robbies-below {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.robbies-below img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
}

/* Irene lightbox custom layout */
.irene-top-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.irene-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.irene-col img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

.irene-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex: 1;
  align-items: center;
}

.irene-stack img {
  width: 60%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

.irene-main-layout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.irene-right-stack {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.irene-right-stack img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

.irene-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.irene-bottom-row img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

/* Accelerate Digital lightbox layout */
.accelerate-layout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.accelerate-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1;
}

.accelerate-2x2 img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

/* Accelerate carousel */
.acc-carousel-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.acc-carousel {
  display: flex;
  transition: transform 0.6s ease;
}

.acc-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.acc-slide img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

/* Royal Keddn video */
.royalkeddn-video-wrap {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.royalkeddn-vid {
  display: block;
  border-radius: 10px;
  width: 100%;
}

/* Irene video */
.irene-vid {
  width: 70%;
  border-radius: 10px;
  display: block;
  margin-bottom: 0.75rem;
}

.accelerate-side {
  flex: 0 0 30%;
}

.accelerate-side img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

/* Fliers lightbox — 4 on top line, then 3×2 grid */
.fliers-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.fliers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.fliers-row img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

.fliers-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.fliers-grid-3x2 img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  display: block;
}

/* Story image wrappers with attribution */
.story-image-wrap {
  margin: 1.5rem 0;
}

.story-image-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.story-img-top-shift {
  object-fit: cover;
  object-position: center bottom;
  max-height: 280px;
}

.story-img-small {
  object-fit: contain;
  max-width: 80%;
}

.story-img-reduced img {
  max-width: 80%;
}

.img-attribution {
  font-size: 0.78rem;
  color: rgba(60, 55, 50, 0.45);
  margin-top: 0.4rem;
  font-style: italic;
}

.story-content p.img-attribution,
.work-story-content p.img-attribution,
p.img-attribution {
  font-size: 0.78rem;
  color: rgba(60, 55, 50, 0.45);
  line-height: 1.4;
}

.work-story-overlay .img-attribution,
.work-story-overlay p.img-attribution {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.img-attribution a {
  color: rgba(60, 55, 50, 0.45);
  text-decoration: none;
  text-underline-offset: 2px;
}

.img-attribution a:hover {
  color: rgba(60, 55, 50, 0.7);
}

/* Certificate layout */
.cert-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin: 1.5rem 0;
  margin-bottom: 0.4rem;
}

.cert-img-left {
  flex: 0 0 auto;
  max-width: 260px;
}

.cert-img-left img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.cert-frames {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex: 1;
  align-self: stretch;
}

.cert-frame {
  flex: 1;
  border-radius: 8px;
  background: rgba(165, 28, 14, 0.18);
  border: none;
}

/* Photo pair at end (Diploma) */
.photo-pair-end {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

.photo-pair-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.photo-pair-item img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  min-height: 160px;
  display: block;
}

/* Heatmap photo grid */
.photo-heatmap {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.heatmap-item {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: flex 0.4s ease;
  min-width: 40px;
  position: relative;
}

.heatmap-item:hover {
  flex: 5;
}

.heatmap-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.heatmap-item.heatmap-top-shift img {
  object-position: top center;
}

.heatmap-item:hover img {
  transform: scale(1.03);
}

.heatmap-item .img-attribution {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-style: normal;
}

.heatmap-item:hover .img-attribution {
  opacity: 1;
}

/* Fixed heatmap — no hover expansion, fills full width */
.photo-heatmap-fixed .heatmap-item-fixed {
  flex: 1;
  cursor: default;
  transition: none;
}

.photo-heatmap-fixed .heatmap-item-fixed:hover {
  flex: 1;
}

.photo-heatmap-fixed .heatmap-item-fixed img {
  transition: none;
  object-position: center center;
}

.photo-heatmap-fixed .heatmap-item-fixed:hover img {
  transform: none;
}

.photo-heatmap-fixed .heatmap-item-fixed .img-attribution {
  opacity: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  position: static;
  padding: 0.3rem 0;
  font-style: italic;
  font-size: 0.78rem;
}

/* Fixed 3-photo static row */
.photo-trio-fixed .photo-trio-item img {
  object-fit: cover;
  height: 220px;
  background: none;
}

.photo-trio-fixed .photo-trio-item img:hover {
  transform: none;
}

/* Hostclass hero header image */
.hostclass-hero {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.hostclass-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Centered image with attribution */
.story-image-center {
  text-align: center;
  margin: 1.5rem 0;
}

.story-image-center img {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  display: inline-block;
}

/* Static centered image — no zoom, full width */
.story-image-center-static {
  text-align: left;
}

.story-image-center-static img {
  max-width: 100%;
  pointer-events: none;
}

.story-image-center-static img:hover {
  transform: none;
}

/* Hostclass side-by-side pair */
.hostclass-pair {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.hostclass-pair-item {
  flex: 1;
  display: flex;
}

.hostclass-pair-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hostclass-pair-item video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

/* Expand-on-hover trio — scales whole image up, no crop zoom */
.photo-trio-expand {
  align-items: flex-start;
  position: relative;
}

.photo-trio-expand .photo-trio-item {
  position: relative;
  overflow: visible;
  z-index: 1;
  transition: z-index 0s;
}

.photo-trio-expand .photo-trio-item:hover {
  z-index: 10;
}

.photo-trio-expand .photo-trio-item img {
  object-fit: contain;
  height: auto;
  background: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: top center;
}

.photo-trio-expand .photo-trio-item:hover img {
  transform: scale(2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* ADCOM small card grid — fixed images, 5 per line */
.adcom-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.adcom-card {
  width: calc(20% - 0.4rem);
}

.adcom-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  cursor: default;
}

.adcom-card:hover img {
  transform: none;
  box-shadow: none;
}

/* FerGirl 4-per-line grid */
.fergirl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.fergirl-card {
  width: calc(25% - 0.57rem);
}

.fergirl-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  display: block;
}

/* FerGirl top 5 — full length portraits */
.fergirl-top-five {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.fergirl-top-item {
  flex: 1;
}

.fergirl-top-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

/* FerGirl definition image with zap */
.fergirl-definition-wrap {
  position: relative;
  margin: 1.5rem 0;
  display: inline-block;
  width: 100%;
}

.fergirl-definition-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.fergirl-zap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* IfyJoes 3×3 equal grid */
.ifyjoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ifyjoes-cell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ifyjoes-cell:first-child img {
  object-position: right center;
}

/* Float left image with text wrap */
.img-float-left-wrap {
  overflow: hidden;
}

.img-float-left {
  float: left;
  width: 45%;
  border-radius: 12px;
  margin: 0 1.5rem 1rem 0;
  object-fit: cover;
}

/* Float right video with text wrap */
.video-float-right-wrap {
  overflow: hidden;
}

.story-video-half {
  float: right;
  width: 45%;
  border-radius: 12px;
  margin: 0 0 1rem 1.5rem;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* 9Mileon hero video */
.ninemileon-hero-video {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.ninemileon-hero-video video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* 9Mileon end — image + video side by side, equal size */
.ninemileon-end-wrap {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}

.ninemileon-end-img,
.ninemileon-end-video {
  flex: 1;
}

.ninemileon-end-img img,
.ninemileon-end-video video {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.ninemileon-end-rects {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ninemileon-rect {
  flex: 1;
  border-radius: 10px;
  background: #b8c5f2;
}

/* Enterprise Suite specific layouts */
.es-hero {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.es-hero img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.es-pair {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.es-pair img {
  flex: 1;
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 260px;
}

.es-pair-blurred {
  position: relative;
}

.es-pair-blurred img {
  filter: blur(3px);
  transition: filter 0.3s ease;
}

.es-pair-blurred::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.18);
  border-radius: 10px;
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.es-pair-blurred:hover img {
  filter: blur(3px);
}

.es-trio {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.es-trio img,
.es-trio-item img {
  flex: 1;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 220px;
  display: block;
}

.es-trio-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Float right image with text wrap */
.img-float-right-wrap {
  overflow: hidden;
}

.img-float-right-block {
  float: right;
  width: 40%;
  margin: 0 0 1rem 1.5rem;
}

.img-float-right {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.img-float-left-block {
  float: left;
  width: 45%;
  margin: 0 1.5rem 1rem 0;
}

.img-float-left-block .img-float-left {
  float: none;
  width: 100%;
  margin: 0;
  border-radius: 12px;
  display: block;
}

/* Grandma photo with green block */
.grandma-wrap {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin: 1.5rem 0;
}

.grandma-img-reduced {
  flex: 0 0 64%;
  max-width: 64%;
}

.grandma-img-reduced img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.grandma-block {
  flex: 1;
  border-radius: 12px;
  background: rgba(143, 172, 106, 0.45);
  min-height: 0;
  align-self: stretch;
}

/* Diploma photos with colour rectangles */
.diploma-photos-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.diploma-photos-wrap .photo-pair-end {
  margin-top: 0;
  flex: 0 0 75%;
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.diploma-photos-wrap .photo-pair-item {
  flex: 1;
  max-width: none;
  display: flex;
  flex-direction: column;
}

.diploma-photos-wrap .photo-pair-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  display: block;
}

.diploma-rects {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex: 1;
  height: 260px;
}

.diploma-rect {
  flex: 1;
  border-radius: 10px;
}

.rect-heineken {
  background: #a8c89a;
}

.rect-shirt {
  background: #d6cfc4;
}

/* Static 3-photo row — full height, no zoom */
.photo-trio-static {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}

/* Two-photo version — matched height */
.photo-duo-static {
  align-items: stretch;
}

.photo-duo-static .photo-trio-item {
  display: flex;
  flex-direction: column;
}

.photo-duo-static .photo-trio-item img {
  flex: 1;
  height: 0;
  min-height: 220px;
  object-fit: cover;
  object-position: top center;
}

.photo-trio-item {
  flex: 1;
}

.photo-trio-item img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  background: #111;
}

.photo-trio-item .img-attribution {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
}
