/* ============================================
   Dr Low Ley Hian — Personal Website
   Design System: Calm Foundation + Strategic Authority + Controlled Breakthrough
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
  /* Palette */
  --color-warm-linen: #F7F2E8;
  --color-forest-ink: #1F3A34;
  --color-soft-ivory: #FFFCF5;
  --color-sage-green: #A9BFA8;
  --color-mist-blue: #B7C9D6;
  --color-muted-amber: #C9974A;

  /* Functional */
  --color-bg: var(--color-warm-linen);
  --color-bg-card: var(--color-soft-ivory);
  --color-text: var(--color-forest-ink);
  --color-text-light: #4A6B63;
  --color-text-muted: #4A6B63;
  --color-heading: var(--color-forest-ink);
  --color-accent: var(--color-muted-amber);
  --color-accent-hover: #B8843D;
  --color-border: rgba(31, 58, 52, 0.1);
  --color-border-light: rgba(31, 58, 52, 0.06);
  --color-overlay: rgba(31, 58, 52, 0.04);
  --color-success: #6B8F71;
  --color-error: #B55A5A;

  /* Typography */
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.08em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 860px;
  --content-padding: var(--space-6);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(31, 58, 52, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 58, 52, 0.08);
  --shadow-lg: 0 8px 30px rgba(31, 58, 52, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Motion tokens */
  --motion-duration-instant: 0ms;
  --motion-duration-fast: 200ms;
  --motion-duration-base: 400ms;
  --motion-duration-slow: 800ms;
  --motion-duration-xslow: 1200ms;
  --motion-ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --motion-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-ease-reflective: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --motion-slide-up: translateY(24px);
  --motion-slide-up-sm: translateY(12px);
  --motion-scale-up: scale(0.96);
  --motion-lift: translateY(-4px);
}

/* ----- Top Bar ----- */
.topbar {
  background-color: var(--color-forest-ink);
  padding: 6px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.topbar__link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 252, 245, 0.75);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.topbar__link:hover {
  color: var(--color-soft-ivory);
}

.topbar__sep {
  color: rgba(255, 252, 245, 0.3);
  font-size: 0.6rem;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 252, 245, 0.7);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.topbar__social:hover {
  color: var(--color-soft-ivory);
}

.topbar__social-label {
  font-size: 0.7rem;
  font-weight: 500;
}

/* ----- Topbar End (LinkedIn + Lang Toggle) ----- */
.topbar__end {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ----- Language Toggle ----- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: 1px solid rgba(255, 252, 245, 0.25);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 252, 245, 0.6);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.lang-toggle--mobile {
  display: none;
}

.lang-toggle:hover {
  border-color: rgba(255, 252, 245, 0.5);
  color: var(--color-soft-ivory);
}

.lang-toggle__text {
  transition: color var(--transition-fast);
}

.lang-toggle__text--active {
  color: var(--color-soft-ivory);
}

.lang-toggle__divider {
  color: rgba(255, 252, 245, 0.3);
  font-size: 0.55rem;
}

/* Language applied to <html> */
html[lang="zh"] .lang-toggle__text--en,
html:not([lang="zh"]) .lang-toggle__text--zh {
  color: rgba(255, 252, 245, 0.35);
}

html[lang="zh"] .lang-toggle__text--zh,
html:not([lang="zh"]) .lang-toggle__text--en {
  color: var(--color-soft-ivory);
}

@media (max-width: 640px) {
  .topbar {
    display: none;
  }
  .header {
    top: 0;
  }
  .topbar__social-label {
    display: none;
  }

  .lang-toggle--mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 8px;
    border-color: rgba(31, 58, 52, 0.18);
    color: rgba(31, 58, 52, 0.68);
  }

  .lang-toggle--mobile:hover {
    border-color: rgba(31, 58, 52, 0.35);
    color: var(--color-forest-ink);
  }

  html[lang="zh"] .lang-toggle--mobile .lang-toggle__text--en,
  html:not([lang="zh"]) .lang-toggle--mobile .lang-toggle__text--zh {
    color: rgba(31, 58, 52, 0.4);
  }

  html[lang="zh"] .lang-toggle--mobile .lang-toggle__text--zh,
  html:not([lang="zh"]) .lang-toggle--mobile .lang-toggle__text--en {
    color: var(--color-forest-ink);
  }

  .lang-toggle--mobile .lang-toggle__divider {
    color: rgba(31, 58, 52, 0.28);
  }
}

/* ----- Reduced Motion ----- */

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .neural-bridge,
  .neural-bridge__canvas,
  .neural-bridge__lines,
  .neural-bridge__particles,
  .timeline__track--animated::before,
  .flywheel__orbit,
  .reflective-light::before,
  .reflective-light::after {
    animation: none !important;
    opacity: 0.15 !important;
  }

  .card--project {
    transform: none !important;
    opacity: 1 !important;
  }

  .timeline__item {
    opacity: 1 !important;
    transform: none !important;
  }

  .fade-in,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ----- Keyframes ----- */
@keyframes neural-drift {
  0%   { background-position: 0% 50%, 0% 50%; }
  50%  { background-position: 100% 50%, 50% 100%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

@keyframes neural-line-move {
  0%   { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

@keyframes particle-float {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

@keyframes particle-float-2 {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  30%  { opacity: 0.4; }
  70%  { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.8); }
}

@keyframes fade-up {
  0%   { opacity: 0; transform: var(--motion-slide-up); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scale-in {
  0%   { opacity: 0; transform: var(--motion-scale-up); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes draw-line {
  0%   { height: 0; }
  100% { height: var(--line-height, 100%); }
}

@keyframes draw-line-horizontal {
  0%   { width: 0; }
  100% { width: var(--line-width, 100%); }
}

@keyframes flywheel-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flywheel-node-pop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes glow-pulse {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}

@keyframes light-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes horizon-shimmer {
  0%   { opacity: 0.1; transform: scaleX(0.95); }
  50%  { opacity: 0.3; transform: scaleX(1.05); }
  100% { opacity: 0.1; transform: scaleX(0.95); }
}

@keyframes card-lift {
  0%   { transform: translateY(0); box-shadow: var(--shadow-sm); }
  100% { transform: var(--motion-lift); box-shadow: var(--shadow-lg); }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  font-weight: 700;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

/* ----- Section Spacing ----- */
.section {
  padding: var(--space-16) 0;
}

.section {
  padding: var(--space-10) 0;
}

.section {
  padding: var(--space-20) 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-forest-ink);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-soft-ivory);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-forest-ink);
  border-color: var(--color-forest-ink);
}

.btn--outline:hover {
  background-color: var(--color-forest-ink);
  color: var(--color-soft-ivory);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-forest-ink);
  border-color: transparent;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.btn--ghost:hover {
  color: var(--color-accent-hover);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ----- Cards ----- */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--ghost {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

.card--ghost:hover {
  box-shadow: none;
}

/* ----- Header / Navigation ----- */
.header {
  position: sticky;
  top: var(--topbar-height, 32px);
  z-index: 100;
  background-color: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-forest-ink);
  letter-spacing: var(--tracking-tight);
}

.logo span {
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  display: none;
}

@media (min-width: 641px) {
  .logo span {
    display: inline;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-forest-ink);
  background-color: var(--color-overlay);
}

@media (min-width: 901px) {
  .nav {
    display: flex;
  }
}

/* Mobile nav toggle */
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-forest-ink);
  border-radius: var(--radius-sm);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--color-forest-ink);
  outline-offset: 2px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  left: 0;
  transition: transform var(--transition-base);
}

.nav__toggle span::before {
  top: -7px;
}

.nav__toggle span::after {
  top: 7px;
}

@media (min-width: 901px) {
  .nav__toggle {
    display: none;
  }
}

/* Mobile nav panel */
.nav {
  display: none;
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.nav__link {
  display: block;
  padding: var(--space-3) var(--content-padding);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
}

.nav .btn {
  margin: var(--space-3) var(--content-padding);
  display: flex;
}

/* ----- Footer ----- */
.footer {
  background-color: var(--color-forest-ink);
  color: var(--color-soft-ivory);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__content {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 641px) {
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand .logo {
  color: var(--color-soft-ivory);
  margin-bottom: var(--space-4);
  display: block;
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-sage-green);
  max-width: 360px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sage-green);
  margin-bottom: var(--space-4);
}

.footer__nav {
  list-style: none;
}

.footer__nav li {
  margin-bottom: var(--space-2);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-mist-blue);
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-soft-ivory);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 252, 245, 0.1);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-sage-green);
}

@media (min-width: 641px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  color: var(--color-mist-blue);
}

.footer__social a:hover {
  color: var(--color-soft-ivory);
}

/* ----- Hero Section ----- */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

.hero__inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  min-width: 0;
}

.hero__content {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 901px) {
  .hero__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .hero__headline {
    font-size: var(--text-6xl);
  }
}

.hero__subheadline {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 540px;
  overflow-wrap: break-word;
}

.mobile-only-break {
  display: none;
}

@media (max-width: 430px) {
  .mobile-only-break {
    display: block;
  }

  .hero__headline {
    font-size: clamp(1.9rem, 8.4vw, 2.25rem);
  }

  .hero__label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
  }
}

.hero__image {
  position: relative;
}

.hero__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-sage-green);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}

.hero__portrait--fading {
  opacity: 0;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-soft-ivory);
  font-size: var(--text-sm);
  font-weight: 500;
  background: linear-gradient(135deg, var(--color-forest-ink) 0%, var(--color-sage-green) 100%);
}

/* ----- Credibility Strip — Redesigned Cards ----- */
.credibility {
  background-color: var(--color-bg);
  padding: var(--space-16) 0;
}

.credibility__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-10);
}

.credibility__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.credibility__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.credibility__grid {
  display: grid;
  gap: var(--space-5);
  position: relative;
}

/* Subtle connecting line behind cards (desktop) */
.credibility__grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(169, 191, 168, 0.3) 15%,
    rgba(169, 191, 168, 0.5) 50%,
    rgba(169, 191, 168, 0.3) 85%,
    transparent 100%
  );
  z-index: 0;
  display: none;
}

@media (min-width: 901px) {
  .credibility__grid::before {
    display: block;
  }
}

.credibility__card {
  background-color: var(--color-soft-ivory);
  border-radius: 22px;
  border: 1px solid rgba(169, 191, 168, 0.25);
  padding: var(--space-6) var(--space-6);
  box-shadow: 0 1px 4px rgba(31, 58, 52, 0.04);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.credibility__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(31, 58, 52, 0.08);
  border-color: var(--color-muted-amber);
}

.credibility__card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border-radius: 12px;
  background-color: rgba(169, 191, 168, 0.1);
  color: var(--color-forest-ink);
}

.credibility__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.credibility__card-text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

/* Desktop: 5 columns */
@media (min-width: 901px) {
  .credibility__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablet: 3 columns */
@media (min-width: 641px) and (max-width: 900px) {
  .credibility__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .credibility__card:nth-child(4),
  .credibility__card:nth-child(5) {
    grid-column: span 1;
  }
}

/* Mobile: stacked */
@media (max-width: 640px) {
  .credibility__title {
    font-size: var(--text-2xl);
  }
  
  .credibility__card {
    padding: var(--space-5) var(--space-5);
  }
}

/* ----- Service Cards ----- */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 641px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* cards-grid (plural) — used by service pillars on home page */
.cards-grid {
  display: grid;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .cards-grid {
    gap: var(--space-8);
  }
}

@media (min-width: 641px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1100px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-muted-amber);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.card__bullets {
  list-style: none;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.card__bullets li {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}

.card__bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: var(--text-xs);
}

.card .btn {
  align-self: flex-start;
}

/* ----- Services Platform ----- */
.services__header {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-10);
}

.services__label {
  color: var(--color-forest-ink);
}

.services__title {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.services__subtitle {
  max-width: 700px;
}

.services-platform {
  background: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.52);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 14px 40px rgba(31, 58, 52, 0.07);
}

.services-platform__header {
  display: grid;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-8);
}

@media (min-width: 901px) {
  .services-platform__header {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  }
}

.services-platform__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted-amber);
  margin-bottom: var(--space-2);
}

.services-platform__title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: var(--space-3);
  color: var(--color-heading);
}

.services-platform__subtitle {
  max-width: 580px;
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

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

@media (min-width: 901px) {
  .services-platform__chips {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.services-platform__chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(169, 191, 168, 0.5);
  border-radius: 18px;
  background: rgba(247, 242, 232, 0.54);
  color: var(--color-forest-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  transition: border-color var(--transition-base), background-color var(--transition-base), transform var(--transition-base);
}

@media (min-width: 901px) {
  .services-platform__chip {
    padding: var(--space-3);
    font-size: 0.82rem;
  }
}

.services-platform__chip svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--color-muted-amber);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-platform__chip:hover {
  border-color: rgba(201, 151, 74, 0.48);
  background: rgba(201, 151, 74, 0.08);
  transform: translateY(-1px);
}

.services-platform__grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .services-platform__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .services-platform__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(31, 58, 52, 0.1);
  border-radius: 24px;
  padding: var(--space-6);
  box-shadow: 0 8px 24px rgba(31, 58, 52, 0.055);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(201, 151, 74, 0.42);
    box-shadow:
      0 14px 32px rgba(31, 58, 52, 0.08),
      0 0 0 4px rgba(201, 151, 74, 0.08);
  }
}

.service-card:focus-within {
  border-color: rgba(201, 151, 74, 0.42);
  box-shadow:
    0 14px 32px rgba(31, 58, 52, 0.08),
    0 0 0 4px rgba(201, 151, 74, 0.08);
}

.service-card--primary {
  border-color: rgba(31, 58, 52, 0.1);
  box-shadow: none;
}

.service-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--color-forest-ink);
  border-radius: 14px;
  background: rgba(169, 191, 168, 0.18);
  border: 1px solid rgba(169, 191, 168, 0.35);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(201, 151, 74, 0.13);
  border: 1px solid rgba(201, 151, 74, 0.28);
  color: var(--color-forest-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.2;
}

.service-card__audience {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.service-card__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.service-card__desc {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.service-card__list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex: 1;
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-sage-green);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  margin-top: auto;
  color: var(--color-forest-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-muted-amber);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .services__header {
    margin-bottom: var(--space-8);
  }

  .services__title {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .services__subtitle {
    font-size: var(--text-base);
  }

  .services-platform {
    border-radius: 24px;
    padding: var(--space-5);
  }

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

  .service-card {
    padding: var(--space-5);
  }

  .service-card__topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-platform__chip,
  .service-card,
  .service-card__link {
    transition: none;
  }

  .services-platform__chip:hover,
  .service-card:hover,
  .service-card__link:hover {
    transform: none;
  }
}

/* ----- Timeline ----- */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.timeline__track {
  position: relative;
  display: grid;
  gap: var(--space-5);
}

.timeline__track::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 15px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(201, 151, 74, 0.65), rgba(169, 191, 168, 0.7));
}

.timeline__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  align-items: start;
  min-width: 0;
  position: relative;
}

.timeline__marker {
  width: 18px;
  height: 18px;
  border: 4px solid var(--color-warm-linen);
  border-radius: 50%;
  background: var(--color-muted-amber);
  box-shadow: 0 0 0 1px rgba(201, 151, 74, 0.35);
  margin: 7px auto 0;
  position: relative;
  z-index: 1;
  box-sizing: content-box;
}

.timeline__item--highlight .timeline__marker {
  background: var(--color-forest-ink);
  box-shadow: 0 0 0 4px rgba(201, 151, 74, 0.2);
}

.timeline-card,
.timeline__content {
  width: 100%;
  min-width: 0;
  background-color: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.48);
  border-radius: 20px;
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 10px 28px rgba(31, 58, 52, 0.065);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.timeline-card:hover,
.timeline__content:hover {
  border-color: rgba(201, 151, 74, 0.45);
  box-shadow: 0 14px 34px rgba(31, 58, 52, 0.09);
  transform: translateY(-2px);
}

.timeline-card--with-photo {
  padding-top: var(--space-4);
}

.timeline-card__photo {
  display: block;
  width: 100%;
  max-height: 138px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(169, 191, 168, 0.45);
  background: rgba(169, 191, 168, 0.12);
  margin-bottom: var(--space-4);
  box-shadow: none;
}

.timeline-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.timeline-card__photo--contain {
  max-height: none;
  height: auto;
  background: rgba(255, 252, 245, 0.72);
}

.timeline-card__photo--biotech {
  aspect-ratio: 1034 / 691;
}

.timeline-card__photo--ypda {
  aspect-ratio: 2036 / 1484;
}

.timeline-card__photo--unimelb {
  aspect-ratio: 2034 / 1422;
}

.timeline-card__photo--postdoc {
  aspect-ratio: 1042 / 648;
}

.timeline-card__photo--startup {
  aspect-ratio: 454 / 317;
}

.timeline-card__photo--clinical {
  aspect-ratio: 16 / 10;
}

.timeline-card__photo--clinical img {
  object-fit: cover;
  object-position: center;
}

.timeline-card__photo--product {
  aspect-ratio: 807 / 605;
}

.timeline-card__photo--business {
  aspect-ratio: 893 / 501;
}

.timeline-card__photo--crm {
  aspect-ratio: 1618 / 911;
}

.timeline-card__photo--ai-builder {
  aspect-ratio: 1743 / 1018;
}

.timeline-card__photo--contain img {
  display: block;
  height: 100%;
  object-fit: contain;
}

.timeline-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.timeline-card__number {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted-amber);
  margin-bottom: var(--space-2);
}

.timeline-card__meta .timeline-card__number {
  margin-bottom: 0;
}

.timeline__chip,
.timeline__year--chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background-color: rgba(201, 151, 74, 0.14);
  color: var(--color-forest-ink);
  border: 1px solid rgba(201, 151, 74, 0.24);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0;
}

.timeline__title {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-1);
  line-height: var(--leading-snug);
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  hyphens: none;
}

.timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  hyphens: none;
}

.timeline__year {
  display: none;
}

@media (min-width: 768px) {
  .timeline {
    max-width: 1040px;
  }

  .timeline__track {
    gap: 0;
  }

  .timeline__track::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .timeline__item:last-child {
    margin-bottom: 0;
  }

  .timeline__marker {
    grid-column: 2;
  }

  .timeline-card,
  .timeline__content {
    max-width: 430px;
  }

  .timeline-card__photo {
    max-height: 150px;
  }

  .timeline-card__photo--contain {
    max-height: none;
  }

  .timeline__item:nth-child(odd) .timeline-card,
  .timeline__item:nth-child(odd) .timeline__content {
    grid-column: 1;
    justify-self: end;
  }

  .timeline__item:nth-child(even) .timeline-card,
  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 3;
    justify-self: start;
  }
}

.card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--color-soft-ivory);
}

.card__image--homepage-poster img {
  transform: none;
}

.card__image--homepage-poster {
  aspect-ratio: 3 / 4;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-soft-ivory);
  font-size: var(--text-sm);
  background: linear-gradient(135deg, var(--color-mist-blue) 0%, var(--color-sage-green) 100%);
}

.card__body {
  padding: var(--space-6);
}

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-forest-ink);
}

.card__link:hover {
  color: var(--color-accent);
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card__link:hover svg {
  transform: translateX(3px);
}

/* ----- Philosophy Section ----- */
.philosophy-block {
  background-color: var(--color-soft-ivory);
  text-align: center;
  padding: var(--space-20) 0;
}

.philosophy__inner {
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 901px) {
  .philosophy__inner:has(.philosophy__title) {
    max-width: 1100px;
  }

  .philosophy__inner .philosophy__title {
    white-space: nowrap;
  }
}

.philosophy-block h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

.philosophy-block blockquote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.philosophy-block__cite {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
}

/* ----- Speaking Cards ----- */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 641px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ----- Contact Form ----- */
.form {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 641px) {
  .form {
    padding: var(--space-10);
  }
}

.form__group {
  margin-bottom: var(--space-5);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-forest-ink);
  margin-bottom: var(--space-2);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-forest-ink);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 151, 74, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231F3A34' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form__submit {
  width: 100%;
  margin-top: var(--space-2);
}

@media (min-width: 641px) {
  .form__submit {
    width: auto;
  }
}

/* ----- Page Header ----- */
.page-header {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.page-header__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-header__inner--wide {
  max-width: 980px;
}

.page-header__title {
  font-size: var(--text-4xl);
  color: var(--color-heading);
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: var(--text-5xl);
  }
}

.page-header__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* ----- Section Header (internal sections) ----- */
.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

/* ----- Section Intro (projects/speaking) ----- */
.section__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

/* ----- Section Footer (e.g. \"View all\") ----- */
.section__footer {
  text-align: center;
  margin-top: var(--space-10);
}

/* ----- Section Subtitle ----- */
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin-top: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* ----- cta-block (unified CTA) ----- */
.cta-block {
  text-align: center;
  padding: var(--space-16) 0;
}

.cta-block__title {
  color: var(--color-soft-ivory);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
}

.cta-block__text {
  color: var(--color-sage-green);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.cta-block__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ----- contact-info ----- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
}

.contact-info__link {
  font-size: var(--text-base);
  color: var(--color-heading);
  text-decoration: none;
}

.contact-info__link:hover {
  color: var(--color-accent);
}

/* ----- form__status ----- */
.form__status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  display: none;
}

.form__status--success {
  display: block;
  background-color: rgba(107, 143, 113, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(107, 143, 113, 0.3);
}

.form__status--error {
  display: block;
  background-color: rgba(181, 90, 90, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(181, 90, 90, 0.3);
}

/* ----- card__img-placeholder (thumbnail placeholder) ----- */
.card__img-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* ----- footer__grid, footer__copy, footer__link, footer__list, footer__name, footer__tagline, footer__social-link, footer__connect ----- */
.footer__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 641px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-heading);
  font-family: var(--font-heading);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--space-2);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-accent);
}

.footer__connect {
  /* placeholder for connect section */
}

/* ----- nav__list, nav__item, nav__ctas ----- */
.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 901px) {
  .nav__list {
    flex-direction: row;
    gap: var(--space-1);
  }
}

.nav__item {
  /* spacing handled by parent */
}

.nav__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
}

@media (min-width: 901px) {
  .nav__ctas {
    flex-direction: row;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    margin-left: var(--space-4);
  }
}

/* ----- hero__ctas ----- */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ----- logo__name, logo__title ----- */
.logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-heading);
  line-height: var(--leading-tight);
}

.logo__title {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  display: block;
  margin-top: var(--space-1);
}

/* ----- skip-link ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-forest-ink);
  color: var(--color-soft-ivory);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ----- overlay (mobile nav) ----- */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 58, 52, 0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ----- philosophy (index.html) ----- */
.philosophy {
  position: relative;
}

.philosophy__label {
  /* inherits from section__label */
}

.philosophy__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-heading);
  margin-bottom: var(--space-4);
}

.philosophy__quote {
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.philosophy__text {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ----- section--cta (CTA background) ----- */
.section--cta {
  background: linear-gradient(135deg, var(--color-forest-ink) 0%, #152A26 100%);
  color: var(--color-soft-ivory);
}

/* ----- section--philosophy (about page) ----- */
.section--philosophy {
  background-color: var(--color-warm-linen);
  text-align: center;
  padding: var(--space-20) 0;
}

.img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  background-color: var(--color-sage-green);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-soft-ivory);
  background: linear-gradient(135deg, var(--color-forest-ink) 0%, var(--color-sage-green) 100%);
}

.content-grid__text h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.content-grid__text h2:first-child {
  margin-top: 0;
}

/* ----- Page intro section ----- */
.page-header {
  max-width: 700px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.page-header--wide {
  max-width: none;
}

.page-header__title {
  margin-bottom: var(--space-4);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* ----- Content blocks ----- */

/* ----- Work With Me detailed service ----- */
.service-detail__grid {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.service-detail__grid h3 {
  margin-bottom: var(--space-3);
}

.service-detail__grid p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.service-detail__grid ul {
  list-style: none;
  margin-bottom: var(--space-4);
}

.service-detail__grid ul li {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}

.service-detail__grid ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ----- Shared card styles ----- */

.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

/* ----- Contact page ----- */
.contact-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 901px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section__desc {
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.contact-info__details {
  list-style: none;
}

.contact-info__details li {
  margin-bottom: var(--space-3);
}

.contact-info__details a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-forest-ink);
}

.contact-info__details a:hover {
  color: var(--color-accent);
}

/* ----- Section Alternate Background ----- */
.section--alt {
  background-color: var(--color-bg-card);
}

/* ----- Content Grid (2-column) ----- */
.content-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 901px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content-grid__text h2 {
  margin-top: 0;
}

.content-grid__visual {
  display: flex;
  justify-content: center;
}

.content-grid__image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ----- Stat Block ----- */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-block__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-block__label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
}

.stat-block__value {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-heading);
}

/* ----- Button Size Modifiers ----- */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ----- CTA Block BEM ----- */
.cta-block__title {
  color: var(--color-soft-ivory);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.cta-block__text {
  color: var(--color-sage-green);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Philosophy Block BEM ----- */
.philosophy-block__label {
  color: var(--color-heading);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
}

.philosophy-block__text {
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

.philosophy-block__cite {
  color: var(--color-text-light);
  font-size: var(--text-base);
}

/* ----- img-card (About page) ----- */
.img-card {
  width: 100%;
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: transparent;
}

.img-card--portrait {
  max-width: 400px;
}

.img-card__photo {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}

.img-card__placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sage-light);
  min-height: 300px;
}

.img-card__icon {
  font-size: 3rem;
}

.img-card__label {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  display: block;
  text-align: center;
}

/* ----- Placeholder img ----- */
.placeholder-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sage-light);
  border-radius: var(--radius-md);
  min-height: 200px;
  flex-direction: column;
  gap: var(--space-2);
}

.placeholder-img--tall {
  min-height: 400px;
}

.placeholder-img__icon {
  font-size: 2.5rem;
}

.placeholder-img__text {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

/* ============================================
   Motion Design System Components
   ============================================ */

/* ----- 1. Neural Bridge — Hero Background ----- */
.neural-bridge {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.neural-bridge__canvas {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(183, 201, 214, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(169, 191, 168, 0.10) 0%, transparent 50%);
  animation: neural-drift 20s var(--motion-ease-reflective) infinite alternate;
}

.neural-bridge__lines {
  position: absolute;
  inset: 0;
  opacity: 0.06;
}

.neural-bridge__lines svg {
  width: 100%;
  height: 100%;
}

.neural-bridge__lines path {
  stroke: var(--color-forest-ink);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: neural-line-move 6s var(--motion-ease-out) forwards;
}

.neural-bridge__lines path:nth-child(2) { animation-delay: 1.5s; }
.neural-bridge__lines path:nth-child(3) { animation-delay: 3s; }
.neural-bridge__lines path:nth-child(4) { animation-delay: 4.5s; }

.neural-bridge__particles {
  position: absolute;
  inset: 0;
}

.neural-bridge__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-muted-amber);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 8s var(--motion-ease-reflective) infinite;
}

.neural-bridge__particle:nth-child(1) { left: 10%; top: 40%; animation-delay: 0s; animation-duration: 7s; }
.neural-bridge__particle:nth-child(2) { left: 25%; top: 30%; animation-delay: 2s; animation-duration: 9s; }
.neural-bridge__particle:nth-child(3) { left: 50%; top: 50%; animation-delay: 4s; animation-duration: 8s; }
.neural-bridge__particle:nth-child(4) { left: 70%; top: 25%; animation-delay: 1s; animation-duration: 10s; }
.neural-bridge__particle:nth-child(5) { left: 85%; top: 60%; animation-delay: 3s; animation-duration: 7.5s; }
.neural-bridge__particle:nth-child(6) { left: 40%; top: 70%; animation-delay: 5s; animation-duration: 9.5s; }
.neural-bridge__particle:nth-child(7) { left: 60%; top: 35%; animation-delay: 6s; animation-duration: 8.5s; }
.neural-bridge__particle:nth-child(8) { left: 15%; top: 65%; animation-delay: 3.5s; animation-duration: 11s; }

/* Hero content sits above neural bridge */
.hero__content,
.hero__image {
  position: relative;
  z-index: 1;
}

/* ----- 2. Journey Timeline — Career Bridge Reveal ----- */
.timeline__track--animated {
  position: relative;
}

.timeline__track--animated .timeline__item {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--motion-ease-out),
    transform 0.6s var(--motion-ease-out);
}

.timeline__track--animated .timeline__item.timeline__item--visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__track--animated .timeline__item:nth-child(1) { transition-delay: 0s; }
.timeline__track--animated .timeline__item:nth-child(2) { transition-delay: 0.1s; }
.timeline__track--animated .timeline__item:nth-child(3) { transition-delay: 0.2s; }
.timeline__track--animated .timeline__item:nth-child(4) { transition-delay: 0.3s; }
.timeline__track--animated .timeline__item:nth-child(5) { transition-delay: 0.4s; }
.timeline__track--animated .timeline__item:nth-child(6) { transition-delay: 0.5s; }
.timeline__track--animated .timeline__item:nth-child(7) { transition-delay: 0.6s; }
.timeline__track--animated .timeline__item:nth-child(8) { transition-delay: 0.7s; }
.timeline__track--animated .timeline__item:nth-child(9) { transition-delay: 0.8s; }
.timeline__track--animated .timeline__item:nth-child(10) { transition-delay: 0.9s; }



/* ----- 3. Learning Flywheel — Redesigned with --x/--y positioning ----- */
.flywheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-10) 0;
}

.flywheel__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-heading);
  text-align: center;
}

.flywheel__container {
  position: relative;
  width: clamp(390px, 55vw, 624px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

@media (min-width: 641px) and (max-width: 767px) {
  .flywheel__container {
    width: min(100%, 560px);
  }
}

/* Outer orbit ring */
.flywheel__orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px dashed rgba(31, 58, 52, 0.34);
  pointer-events: none;
}

/* Inner orbit ring */
.flywheel__orbit-inner {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px solid rgba(169, 191, 168, 0.38);
  pointer-events: none;
}

/* Center label */
.flywheel__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(80px, 14vw, 120px);
  height: clamp(80px, 14vw, 120px);
  border-radius: 50%;
  background: var(--color-forest-ink);
  color: var(--color-soft-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 30px rgba(31, 58, 52, 0.12);
}

.flywheel__center-label {
  font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  font-weight: 500;
  line-height: 1.4;
  padding: var(--space-2);
}

.flywheel__center-label strong {
  color: var(--color-muted-amber);
  font-weight: 700;
}

/* Nodes: absolute positioned via --x / --y */
.flywheel__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: clamp(90px, 14vw, 120px);
  text-align: center;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s var(--motion-ease-out);
}

.flywheel__node--visible {
  opacity: 1;
}

/* Icon badge */
.flywheel__node-icon {
  width: 76px;
  height: 76px;
  background: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-forest-ink);
  transition: transform 0.3s var(--motion-ease-spring), box-shadow 0.3s ease;
}

.flywheel__node-icon svg {
  width: 38px;
  height: 38px;
}

.flywheel__node-icon--accent {
  background: #F2D9A8;
  border-color: rgba(201, 151, 74, 0.58);
  color: #9B6E2C;
}

.flywheel__node-icon--amber {
  background: #F2D9A8;
  border-color: rgba(201, 151, 74, 0.58);
  color: #9B6E2C;
}

.flywheel__node:hover .flywheel__node-icon {
  transform: scale(1.12);
  box-shadow: var(--shadow-md);
}

/* Label */
.flywheel__node-label {
  display: block;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.2;
}

/* Phrase */
.flywheel__node-phrase {
  display: block;
  font-size: clamp(0.55rem, 0.9vw, 0.65rem);
  color: var(--color-text-light);
  line-height: 1.2;
}

/* Mobile: convert to vertical list */
@media (max-width: 640px) {
  .flywheel__container {
    width: 100%;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .flywheel__orbit,
  .flywheel__orbit-inner {
    display: none;
  }

  .flywheel__center {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
  }

  .flywheel__center-label {
    font-size: var(--text-sm);
  }

  .flywheel__node {
    position: static;
    transform: none;
    flex-direction: row;
    gap: var(--space-3);
    width: 100%;
    text-align: left;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
  }

  .flywheel__node-icon {
    flex-shrink: 0;
  }

  .flywheel__node-label {
    font-size: var(--text-sm);
    margin-bottom: 1px;
  }

  .flywheel__node-phrase {
    font-size: var(--text-xs);
  }
}

/* ----- 4. Project Cards — Reveal & Hover ----- */
.card--project {
  transition:
    transform 0.4s var(--motion-ease-spring),
    box-shadow 0.4s var(--motion-ease-out),
    border-color 0.3s ease;
  border: 1px solid transparent;
}

.card--project:hover {
  transform: var(--motion-lift);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-muted-amber);
}

.card--project .card__image {
  overflow: hidden;
}

.card--project .card__image img,
.card--project .card__image .image-placeholder {
  transition: transform 0.5s var(--motion-ease-out);
}

.card--project:hover .card__image img,
.card--project:hover .card__image .image-placeholder {
  transform: scale(1.03);
}

.card--project:hover .card__image--homepage-poster img {
  transform: scale(1.03);
}

/* Staggered reveal for project cards on scroll */

.cards-grid .card--project:nth-child(1) { animation-delay: 0s; }
.cards-grid .card--project:nth-child(2) { animation-delay: 0.15s; }
.cards-grid .card--project:nth-child(3) { animation-delay: 0.3s; }
.cards-grid .card--project:nth-child(4) { animation-delay: 0.45s; }

/* ----- 5. Memento Mori — Reflective Light ----- */
.philosophy-block {
  position: relative;
  overflow: hidden;
}

.reflective-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.reflective-light::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(201, 151, 74, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(183, 201, 214, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(169, 191, 168, 0.05) 0%, transparent 40%);
  animation: light-sweep 15s var(--motion-ease-reflective) infinite alternate;
}

.reflective-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 151, 74, 0.15) 20%,
    rgba(201, 151, 74, 0.3) 50%,
    rgba(201, 151, 74, 0.15) 80%,
    transparent 100%
  );
  animation: horizon-shimmer 6s var(--motion-ease-reflective) infinite alternate;
}

/* Philosophy content sits above the light */
.philosophy__inner,
.philosophy-block__label,
.philosophy-block__text,
.philosophy-block__cite {
  position: relative;
  z-index: 1;
}

/* ============================================
   Phase 1 — Missing Component Styles
   ============================================ */

/* ----- Card BEM sub-components ----- */
.card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.tag,
.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-light);
  background-color: rgba(31, 58, 52, 0.06);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-4);
}

.card__img-wrap--contain img {
  object-fit: contain;
}

/* ----- Portfolio Page ----- */
.portfolio-grid {
  align-items: stretch;
}

/* ----- Homepage positioning refresh ----- */
.hero__supporting-line {
  margin: var(--space-4) 0 0;
  color: var(--color-muted-amber);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.credibility__line {
  max-width: 920px;
  margin: var(--space-7) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  text-align: center;
}

.why-section__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1040px;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.why-section__visual {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1536 / 2752;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-muted-amber) 56%, var(--color-border));
  border-radius: 8px;
  background: var(--color-soft-ivory);
  box-shadow: var(--shadow-sm);
}

.why-section__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-section__visual figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.why-section__copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.why-section__copy p:first-child {
  max-width: 54ch;
  margin: 0;
  color: var(--color-forest-ink);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.48;
}

.why-section__copy p + p {
  max-width: 54ch;
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-sage-green);
}

.why-section--legacy,
.flywheel--full,
.journey--full,
.featured-projects--full {
  display: none;
}

.services-platform__grid--primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-platform__grid--primary .service-card--primary {
  border-color: rgba(201, 151, 74, 0.6);
}

.secondary-offering {
  padding-top: 0;
}

.secondary-offering__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-sage-green);
  background: var(--color-soft-ivory);
  box-shadow: var(--shadow-sm);
}

.secondary-offering__title {
  margin: var(--space-2) 0;
  font-family: var(--font-heading);
  color: var(--color-forest-ink);
  font-size: var(--text-2xl);
}

.secondary-offering__inner p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--color-text-muted);
}

.selected-work__grid,
.selected-thinking__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.selected-work__card,
.selected-thinking__grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft-ivory);
  box-shadow: var(--shadow-sm);
}

.selected-work__card,
.career-bridge__list li,
.selected-thinking__grid article,
.pub-featured__card,
.pub-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .selected-work__card:hover,
  .career-bridge__list li:hover,
  .selected-thinking__grid article:hover,
  .selected-thinking__grid article:focus-within,
  .pub-featured__card:hover,
  .pub-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 151, 74, 0.48);
    box-shadow: 0 14px 32px rgba(31, 58, 52, 0.09);
  }

  .selected-work__card--image:hover img,
  .selected-work__card--strategy:hover .selected-work__strategy-image,
  .career-bridge__list li:hover .career-bridge__image {
    transform: scale(1.02);
  }
}

.selected-work__card h3,
.selected-thinking__grid h3 {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--color-forest-ink);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.28;
}

.selected-work__card p,
.selected-thinking__grid p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.selected-work__card p + p {
  margin-top: var(--space-2);
}

.selected-work__eyebrow,
.selected-thinking__grid span {
  color: var(--color-muted-amber);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.selected-work__card .card__link,
.selected-thinking__cta {
  margin-top: auto;
  padding-top: var(--space-5);
}

.selected-thinking__card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.selected-work__card--image {
  padding: 0;
  overflow: hidden;
}

.selected-work__card--strategy {
  padding: 0;
  overflow: hidden;
}

.selected-work__card--image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: var(--color-warm-linen);
  transition: transform var(--transition-base);
}

.selected-work__card--image > div,
.selected-work__card--strategy > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-6);
}

.selected-work__strategy-image {
  display: block;
  width: 100%;
  height: 190px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-warm-linen);
  object-fit: cover;
  transition: transform var(--transition-base);
}

.career-bridge {
  background: rgba(169, 191, 168, 0.12);
}

.career-bridge__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 980px;
  margin: var(--space-7) auto 0;
  padding: 0;
  list-style: none;
  counter-reset: career-stage;
}

.career-bridge__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-soft-ivory);
  color: var(--color-forest-ink);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  line-height: 1.45;
  counter-increment: career-stage;
  box-shadow: 0 12px 24px rgba(31, 58, 52, 0.05);
  overflow: hidden;
}

.career-bridge__list li::before {
  content: "0" counter(career-stage);
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 151, 74, 0.45);
  border-radius: 50%;
  background: var(--color-warm-linen);
  color: var(--color-muted-amber);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
}

.career-bridge__image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: var(--color-warm-linen);
  transition: transform var(--transition-base);
}

.career-bridge__stage {
  display: block;
  flex: 1;
  padding: var(--space-5);
}

.career-bridge__link-wrap,
.selected-thinking__cta {
  margin: var(--space-7) 0 0;
  text-align: center;
}

.selected-thinking__grid article {
  min-height: 245px;
}

.cta-block__supporting {
  max-width: 620px;
  margin: var(--space-4) auto 0;
  color: rgba(255, 252, 245, 0.78);
  font-size: var(--text-sm);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .why-section__grid,
  .selected-work__grid,
  .selected-thinking__grid {
    grid-template-columns: 1fr;
  }

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

  .secondary-offering__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .career-bridge__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-section__grid {
    gap: var(--space-6);
  }

  .why-section__visual {
    max-width: 34rem;
  }

}

@media (max-width: 640px) {
  .hero__ctas,
  .hero__ctas .btn {
    width: 100%;
  }

  .hero__ctas .btn {
    justify-content: center;
  }

  .why-section__copy {
    font-size: var(--text-base);
    padding-inline: var(--space-5);
  }

  .why-section__grid {
    padding: var(--space-6) 0;
  }

  .why-section__visual { max-width: none; }

  .why-section__copy p:first-child {
    font-size: var(--text-lg);
  }

  .why-section__copy p + p {
    margin-top: var(--space-5);
    padding-left: var(--space-4);
  }

  .career-bridge__list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 100%;
    padding-left: 42px;
  }

  .career-bridge__list::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 15px;
    width: 1px;
    background: var(--color-sage-green);
  }

  .career-bridge__list li {
    font-size: var(--text-base);
  }

  .career-bridge__list li::before {
    top: var(--space-5);
    left: -42px;
    background: var(--color-soft-ivory);
  }

  .career-bridge__image {
    height: 240px;
  }

  .selected-work__card--image img {
    height: 220px;
  }

  .selected-work__strategy-image {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selected-work__card,
  .selected-work__card--image img,
  .career-bridge__list li,
  .career-bridge__image,
  .selected-thinking__grid article,
  .pub-featured__card,
  .pub-card {
    transition: none;
  }

  .selected-work__card:hover,
  .career-bridge__list li:hover,
  .selected-thinking__grid article:hover,
  .pub-featured__card:hover,
  .pub-card:hover {
    transform: none;
  }
}

.portfolio-grid > .portfolio-card {
  height: 100%;
}

.portfolio-grid--single {
  grid-template-columns: minmax(0, calc((100% - var(--space-6)) / 2));
  justify-content: center;
}

@media (max-width: 640px) {
  .portfolio-grid--single {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(169, 191, 168, 0.38);
}

.portfolio-card .card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
}

.portfolio-card__media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 151, 74, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(247, 242, 232, 0.84));
  border-bottom: 1px solid rgba(169, 191, 168, 0.34);
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.portfolio-card__media--poster {
  aspect-ratio: 3 / 5;
  align-items: start;
}

.portfolio-card__media--poster img {
  width: 100%;
  height: 100%;
  object-position: top center;
}

.portfolio-card__status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-3);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(201, 151, 74, 0.35);
  border-radius: var(--radius-full);
  color: var(--color-muted-amber);
  background: rgba(201, 151, 74, 0.08);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.portfolio-card .card__link {
  width: fit-content;
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(169, 191, 168, 0.28);
  color: var(--color-forest-ink);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.portfolio-card .card__title,
.portfolio-card .card__text,
.portfolio-card .card__tags {
  margin: 0;
}

.portfolio-card .card__text {
  flex: 1;
}

.portfolio-card .card__tags {
  margin-top: auto;
}

.portfolio-card__placeholder {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  height: 100%;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(169, 191, 168, 0.45);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(169, 191, 168, 0.22), rgba(183, 201, 214, 0.16)),
    var(--color-soft-ivory);
}

.portfolio-card__placeholder::before,
.portfolio-card__placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(31, 58, 52, 0.12);
  border-radius: 999px;
}

.portfolio-card__placeholder::before {
  inset: 24%;
}

.portfolio-card__placeholder::after {
  width: 68%;
  height: 1px;
  transform: rotate(-10deg);
  background: rgba(201, 151, 74, 0.22);
  border: 0;
}

.portfolio-card__placeholder span {
  position: relative;
  z-index: 1;
  color: var(--color-forest-ink);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
}

.portfolio-card--upcoming {
  background: linear-gradient(180deg, var(--color-soft-ivory), rgba(255, 252, 245, 0.82));
}

@media (max-width: 640px) {
  .portfolio-card__media {
    padding: var(--space-3);
  }
}

/* ----- Card Grid modifier ----- */
.card-grid--2col {
  display: grid;
  gap: var(--space-6);
}

.card-grid--3col {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 641px) {
  .card-grid--2col,
  .card-grid--3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ----- cta-final (index.html final CTA) ----- */
.cta-final {
  background: linear-gradient(135deg, var(--color-forest-ink) 0%, #152A26 100%);
  color: var(--color-soft-ivory);
  text-align: center;
}

/* ----- cta-section (work-with-me.html) ----- */

/* ----- section__subtitle, section__footer, section__intro ----- */
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: var(--space-2) auto 0;
  line-height: var(--leading-relaxed);
}

.section__footer {
  text-align: center;
  margin-top: var(--space-10);
}

.section__intro {
  margin-bottom: var(--space-8);
  text-align: center;
}

.section__intro .section__title {
  margin-bottom: var(--space-3);
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.section__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.section__text--center {
  text-align: center;
}

/* ----- section--alt (already has bg, ensure padding) ----- */
.section--alt {
  background-color: var(--color-bg-card);
}

/* ----- section--cta, section--philosophy ----- */
.section--cta {
  background: linear-gradient(135deg, var(--color-forest-ink) 0%, #152A26 100%);
  text-align: center;
  padding: var(--space-16) 0;
}

.section--philosophy {
  background-color: var(--color-bg-card);
}

/* ----- section-label (about.html uses this instead of section__label) ----- */

/* ----- contact-info ----- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-2);
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.contact-info__link {
  font-size: var(--text-base);
  color: var(--color-forest-ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ----- footer BEM sub-components ----- */
.footer__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 641px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__name {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-heading);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

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

.footer__connect {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__social-link {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ----- nav BEM sub-components ----- */
.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

@media (min-width: 901px) {
  .nav__list {
    flex-direction: row;
    gap: var(--space-1);
  }
}

.nav__item {
  margin: 0;
}

.nav__ctas {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 901px) {
  .nav__ctas {
    margin-top: 0;
    margin-left: auto;
  }
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-forest-ink);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ----- skip-link ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background: var(--color-forest-ink);
  color: var(--color-soft-ivory);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

/* ----- overlay (mobile nav) ----- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 58, 52, 0.3);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

/* ----- logo BEM sub-components ----- */
.logo__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: var(--tracking-tight);
}

.logo__title {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 400;
}

/* ----- philosophy section (index.html) ----- */
.philosophy {
  background-color: var(--color-bg-card);
}

.philosophy__label {
  color: var(--color-muted-amber);
}

.philosophy__title {
  font-size: var(--text-3xl);
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-6);
}

.philosophy__quote {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  font-style: italic;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

.philosophy__subline {
  max-width: 760px;
  margin: calc(-1 * var(--space-2)) auto var(--space-6);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.philosophy__subline p + p {
  margin-top: var(--space-2);
}

.philosophy__text {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0 auto;
}

/* ----- service-detail page (work-with-me) ----- */
.service-detail {
  padding: var(--space-12) 0;
}

.service-detail__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 901px) {
  .service-detail__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-detail__grid--reverse .service-detail__visual {
  order: 1;
}

@media (min-width: 901px) {
  .service-detail__grid--reverse .service-detail__visual {
    order: -1;
  }
}

.service-detail__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-detail__title {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.service-detail__description {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.service-detail__capabilities {
  margin: var(--space-4) 0;
}

.service-detail__cap-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.service-detail__list {
  list-style: none;
  padding: 0;
}

.service-detail__list li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  position: relative;
}

.service-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-sage-green);
}

.service-detail__note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: italic;
  border-left: 3px solid var(--color-sage-green);
  padding-left: var(--space-4);
}

.service-detail__visual {
  display: flex;
  justify-content: center;
}

.service-detail__image-card {
  width: min(100%, 560px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(169, 191, 168, 0.55);
  border-radius: var(--radius-lg);
  background: var(--color-soft-ivory);
  box-shadow: var(--shadow-md);
}

.service-detail__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .service-detail__image-card {
    width: 100%;
    border-radius: var(--radius-md);
  }
}

/* ----- service icon ----- */
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

/* ----- flywheel center text + node variants ----- */


/* ----- timeline extras (about.html) ----- */
.timeline__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.timeline__marker--current {
  background-color: var(--color-muted-amber);
  box-shadow: 0 0 0 4px rgba(201, 151, 74, 0.2);
}

/* ----- featured-projects, journey, services section IDs ----- */
.featured-projects {
  background-color: var(--color-bg-card);
}

.journey {
  background-color: var(--color-bg);
}

.services {
  background-color: var(--color-bg);
}

/* ----- image-placeholder__text ----- */
.image-placeholder__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ============================================
   Publications & Writing Page
   ============================================ */

/* ----- Hero ----- */
.pub-hero {
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
  background-color: var(--color-bg);
}

.pub-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.pub-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-heading);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.pub-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto var(--space-6);
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .pub-hero__title {
    font-size: var(--text-5xl);
  }
}

/* ----- Featured Knowledge Section ----- */
.pub-featured {
  padding: var(--space-12) 0;
}

.pub-featured__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 641px) {
  .pub-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pub-featured__card {
  background-color: var(--color-soft-ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(169, 191, 168, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.pub-featured__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border-radius: 12px;
  background-color: rgba(169, 191, 168, 0.1);
  color: var(--color-forest-ink);
}

.pub-featured__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
}

.pub-featured__desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

/* ----- Filterable Library ----- */
.pub-library {
  padding: var(--space-12) 0;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-6);
  align-items: center;
}

.pub-filters__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-light);
  margin-right: var(--space-2);
}

.pub-filter {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-light);
  background-color: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.pub-filter:hover,
.pub-filters__btn:hover {
  border-color: var(--color-sage-green);
  color: var(--color-forest-ink);
}

.pub-filter--active,
.pub-filters__btn--active {
  background-color: var(--color-forest-ink);
  color: var(--color-soft-ivory);
  border-color: var(--color-forest-ink);
}

/* Filter group layout */
.pub-filters__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pub-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pub-filters__search {
  margin-bottom: var(--space-4);
}

.pub-filters__input {
  width: 100%;
  max-width: 480px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-forest-ink);
  background-color: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.3);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast);
}

.pub-filters__input:focus {
  outline: none;
  border-color: var(--color-muted-amber);
  box-shadow: 0 0 0 3px rgba(201, 151, 74, 0.1);
}

.pub-filters__input::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

/* Map new filter button classes to old style */
.pub-filters__btn {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-light);
  background-color: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.pub-search {
  margin-bottom: var(--space-8);
}

.pub-search__input {
  width: 100%;
  max-width: 480px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-forest-ink);
  background-color: var(--color-soft-ivory);
  border: 1px solid rgba(169, 191, 168, 0.3);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast);
}

.pub-search__input:focus {
  outline: none;
  border-color: var(--color-muted-amber);
  box-shadow: 0 0 0 3px rgba(201, 151, 74, 0.1);
}

.pub-search__input::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

/* ----- Grid container ----- */
.pub-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 641px) {
  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pub-card {
  background-color: var(--color-soft-ivory);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(169, 191, 168, 0.2);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.pub-card__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.pub-card__badge--sci {
  background-color: rgba(183, 201, 214, 0.2);
  color: var(--color-forest-ink);
}

.pub-card__badge--article {
  background-color: rgba(201, 151, 74, 0.12);
  color: var(--color-muted-amber);
}

.pub-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.pub-card__journal {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.pub-card__relevance {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.pub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.pub-card__meta span {
  background-color: rgba(31, 58, 52, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.pub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ----- No Results ----- */
.pub-no-results {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-text-light);
  display: none;
}

.pub-no-results--visible {
  display: block;
}

/* ----- Mobile: filter wrapping ----- */
@media (max-width: 640px) {
  .pub-search__input {
    max-width: 100%;
  }

  .pub-filters {
    gap: var(--space-2);
  }

  .pub-filter {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-3);
  }
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  :root {
    --content-padding: var(--space-5);
  }

  .container {
    width: auto;
    max-width: none;
  }

  .hero__content,
  .hero__image {
    width: calc(100vw - (2 * var(--content-padding)));
    max-width: calc(100vw - (2 * var(--content-padding)));
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section {
    padding: var(--space-12) 0;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .hero__headline {
    font-size: var(--text-3xl);
  }

  .hero__subheadline {
    font-size: var(--text-base);
  }

  

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: var(--space-6);
  }

  .philosophy-block h2 {
    font-size: var(--text-3xl);
  }

  .cta-block h2 {
    font-size: var(--text-3xl);
  }

  .form {
    padding: var(--space-6);
  }

  
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero__headline {
    font-size: var(--text-4xl);
  }

  .hero__inner {
    gap: var(--space-8);
  }

  .philosophy-block h2 {
    font-size: var(--text-3xl);
  }
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----- SVG Icons inline fallback ----- */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* ----- Animations (subtle) ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ----- Print ----- */
@media print {
  .header,
  .nav__toggle,
  .nav,
  .footer,
  .btn {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hero .container,
  .page-header .container,
  .contact .container {
    width: auto !important;
    max-width: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero__content,
  .hero__image,
  .hero__image-frame,
  .hero__headline,
  .hero__subheadline,
  .hero__label {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero__headline,
  .page-header__title {
    overflow-wrap: anywhere !important;
  }
}

/* ponytail: desktop uses the green topbar; mobile uses the header hamburger. */
@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .header__inner {
    position: relative;
    align-items: center;
  }

  .logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .logo__title {
    display: inline;
  }

  .nav.nav--open {
    display: block;
    position: absolute;
    top: 100%;
    right: var(--content-padding);
    left: var(--content-padding);
    z-index: 110;
    padding: var(--space-2) 0 var(--space-4);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--color-soft-ivory);
    box-shadow: var(--shadow-lg);
  }

  .nav__list {
    display: block;
  }

  .nav__link {
    padding: var(--space-4) var(--space-5);
    line-height: 1.2;
    white-space: normal;
  }

  .nav__ctas {
    padding: var(--space-4) var(--space-5) 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
  }

  .nav__ctas .btn {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .nav__toggle {
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(31, 58, 52, 0.18);
    border-radius: var(--radius-full);
    background: var(--color-soft-ivory);
    box-shadow: var(--shadow-sm);
  }

  .nav__toggle-bar {
    position: static;
    width: 24px;
    height: 2px;
    background: var(--color-forest-ink);
    border-radius: 999px;
  }

  .nav__toggle-bar::before,
  .nav__toggle-bar::after {
    content: none;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 901px) {
  .header {
    display: none;
  }

  .nav {
    display: none;
  }
}

/* Homepage section bands keep long-form scrolling easy to scan. */
.hero,
.selected-work,
.selected-thinking {
  background-color: var(--color-warm-linen);
}

.credibility,
.flywheel {
  background-color: rgba(183, 201, 214, 0.1);
}

.why-section {
  background-color: rgba(183, 201, 214, 0.14);
}

.services,
.philosophy {
  background-color: var(--color-soft-ivory);
}

.secondary-offering {
  background-color: rgba(169, 191, 168, 0.1);
}

.career-bridge {
  background-color: rgba(169, 191, 168, 0.16);
}








