/* Oyewole Joledo site styles. Black and neon white, one gold accent. */

:root {
  color-scheme: dark;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --mentrack: #22c55e;
  --page-bg: #000;
  --bg: #000;
  --panel: #0a0a0a;
  --glow-rgb: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --text: #fff;
  --soft: #e6e6e6;
  --muted: #c9c9c9;
  --accent: #e0b84c;
  --glow-text: 0 0 26px rgba(255, 255, 255, 0.55);
  --glow-box: 0 0 16px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.12);
  --glow-box-strong: 0 0 36px rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { color-scheme: light;
  --page-bg: #fff;
  --bg: #fff;
  --panel: #f3f3f3;
  --glow-rgb: 10, 10, 10;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.32);
  --text: #0a0a0a;
  --soft: #1e1e1e;
  --muted: #4d4d4d;
  --accent: #8a6410;
  --glow-text: 0 0 22px rgba(10, 10, 10, 0.18);
  --glow-box: 0 0 14px rgba(10, 10, 10, 0.18), inset 0 0 8px rgba(10, 10, 10, 0.05);
  --glow-box-strong: 0 0 26px rgba(10, 10, 10, 0.35);
  }
}

:root[data-theme="light"] { color-scheme: light;
  --page-bg: #fff;
  --bg: #fff;
  --panel: #f3f3f3;
  --glow-rgb: 10, 10, 10;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.32);
  --text: #0a0a0a;
  --soft: #1e1e1e;
  --muted: #4d4d4d;
  --accent: #8a6410;
  --glow-text: 0 0 22px rgba(10, 10, 10, 0.18);
  --glow-box: 0 0 14px rgba(10, 10, 10, 0.18), inset 0 0 8px rgba(10, 10, 10, 0.05);
  --glow-box-strong: 0 0 26px rgba(10, 10, 10, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--text); }
a:hover { color: var(--muted); }

h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; color: var(--bg); }

/* Layout */

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--line { border-top: 0; }
/* Lighter bands fade in and out of the black instead of starting at a hard edge */
.section--panel {
  background: linear-gradient(180deg, rgba(var(--glow-rgb), 0) 0%, rgba(var(--glow-rgb), 0.045) 28%, rgba(var(--glow-rgb), 0.045) 72%, rgba(var(--glow-rgb), 0) 100%);
}
.stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.section-head--split {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
}

/* Type */

.h2 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h2--glow { text-shadow: 0 0 22px rgba(var(--glow-rgb), 0.4); }
.h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}
.h3--lg { font-size: 28px; line-height: 1.15; }
.accent-serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.eyebrow { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); }
.body { color: var(--soft); }
.small { font-size: 16px; color: var(--muted); }
.tiny { font-size: 14px; color: var(--muted); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--glow-box);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--text); color: var(--bg); box-shadow: var(--glow-box-strong); }
.btn--s { min-height: 46px; padding: 8px 18px; font-size: 15px; }

/* Header and navigation */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }

/* Green buttons for links to Mentrack, taken from its brand green */
.btn--mentrack {
  border-color: var(--mentrack);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.55), inset 0 0 10px rgba(34, 197, 94, 0.18);
}
.btn--mentrack:hover, .btn--mentrack:focus-visible {
  background: var(--mentrack);
  color: #03140a;
  box-shadow: 0 0 36px rgba(34, 197, 94, 0.9);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; }
.brand img { width: auto; height: 40px; filter: drop-shadow(0 0 8px rgba(var(--glow-rgb), 0.45)); }
.brand span { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current="page"] {
  color: var(--text);
  border-color: var(--text);
  box-shadow: var(--glow-box);
}
.nav__toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--glow-box);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu .btn, .nav__link { width: 100%; justify-content: center; }
}

/* Home hero carousel */

.hero { position: relative; height: 860px; max-height: 100svh; min-height: 640px; overflow: hidden; background: #000; }
/* Every block in the page stacks in order, so text after a hero sits above the hero's fade */
main > * { position: relative; }
/* A soft black shadow under each photo hero lets the grain fade in instead of starting at a hard edge */
.hero, .page-hero { box-shadow: 0 80px 80px -10px var(--page-bg); }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__img.is-active { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.88) 18%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0) 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 18%);
}
.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding-top: 72px;
  padding-bottom: 32px;
}
.hero__name {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(40px, 6.9vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: var(--glow-text);
  animation: neon-on 1.8s ease-out 1;
}
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hero__title { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.1; color: var(--accent); }
.hero__line { font-size: clamp(17px, 1.5vw, 21px); max-width: 620px; }
.hero__slide .btn { flex: none; }
.hero__tabs { display: flex; flex-wrap: wrap; gap: 4px 36px; }
.hero__tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.hero__tab::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(var(--glow-rgb), 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.hero__tab[aria-pressed="true"] { color: var(--text); }
.hero__tab[aria-pressed="true"]::before { background: var(--text); box-shadow: 0 0 12px 3px rgba(var(--glow-rgb), 0.85); }

/* Inner page header */

.page-hero { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; background: #000; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.page-hero__img--top { object-position: 50% 25%; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.3) 100%); }
.page-hero__inner { position: relative; width: 100%; display: flex; flex-direction: column; gap: 14px; padding-block: 120px 56px; }
.page-hero--plain { min-height: 0; background: transparent; box-shadow: none; }
.page-hero--plain .page-hero__inner { padding-block: clamp(72px, 9vw, 120px) 24px; }
.page-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: var(--glow-text);
  animation: neon-on 1.8s ease-out 1;
}
.page-hero__line { max-width: 640px; font-size: clamp(17px, 1.6vw, 22px); color: var(--soft); }

/* Rolling bands */

.marquee { overflow: hidden; padding-block: 44px 20px; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  padding-block: 0.35em;
}
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee--titles .marquee__track {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee .solid { text-shadow: 0 0 20px rgba(var(--glow-rgb), 0.7); }
.marquee .outline { color: transparent; -webkit-text-stroke: 1px var(--text); text-shadow: 0 0 12px rgba(var(--glow-rgb), 0.35); }
.recognition { padding-block: 20px 64px; }
.recognition__label { text-align: center; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); padding-bottom: 22px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text); box-shadow: 0 0 12px 3px rgba(var(--glow-rgb), 0.85); }

/* Count-up rings */

.rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 32px; }
.ring-item { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  animation: breathe 4s ease-in-out infinite;
}
.ring--xl { font-size: 56px; }
.ring--l { font-size: 48px; }
.ring-item:nth-child(2) .ring { animation-delay: 1s; }
.ring-item:nth-child(3) .ring { animation-delay: 2s; }
.ring-item:nth-child(4) .ring { animation-delay: 3s; }
.ring-item p { max-width: 230px; }
.rings--section { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 104px); }

/* About */

.about { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.about__media { flex: 0 1 380px; min-width: 0; display: flex; justify-content: center; }
.about__text { flex: 1 1 480px; min-width: 0; }
.portrait-ring {
  width: min(380px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--text);
  box-shadow: 0 0 30px rgba(var(--glow-rgb), 0.6);
  object-fit: cover;
  object-position: 50% 8%;
}

/* Venture tiles (home) */

.tiles { display: flex; flex-wrap: wrap; gap: 24px; }
.tile {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.tile .logo-box { height: 200px; border: 0; border-radius: 0; }
.tile__foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.tile__foot .h3 { font-size: 19px; }
.tile__foot .btn { margin-top: auto; }
.logo-box {
  display: block;
  align-self: stretch;
  height: 220px;
  padding: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  filter: grayscale(1) brightness(0.78);
  transition: filter 0.5s ease;
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-box--cover { padding: 0; }
.logo-box--cover img { object-fit: cover; }
.tile:hover .logo-box, .venture:hover .logo-box { filter: none; }
.bg-servelead { background: #0f1b11; }
.bg-white { background: #fff; }
.bg-rescuetap { background: #d8dbe4; }
.bg-respectech { background: #ecebf0; }
.bg-respectech img { object-position: 4% 50%; }
.bg-aidos { background: #f1f1f3; }
.bg-timewise { background: linear-gradient(100deg, #395c84, #6081a4); }

/* Cards */

.pair { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 480px;
  min-width: 0;
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  background: var(--bg);
}
.card--book { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.card--book .stack { flex: 1 1 240px; min-width: 0; gap: 14px; }
.book-mini {
  flex: none;
  width: 190px;
  height: 268px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(var(--glow-rgb), 0.2);
  transition: transform 0.4s ease;
}
.book-mini:hover { transform: translateY(-10px); }
.card .stack { gap: 14px; }
.essay-list { align-self: stretch; margin: 0; padding: 0; list-style: none; }
.essay-list li { padding: 14px 0; border-top: 1px solid rgba(var(--glow-rgb), 0.18); display: flex; flex-direction: column; gap: 2px; }
.essay-list li:last-child { border-bottom: 1px solid rgba(var(--glow-rgb), 0.18); }
.essay-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; }

/* Photo strip (home preview) */

.strip { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding-bottom: 40px; }
.strip__item {
  position: relative;
  flex: 1 1 180px;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  transition: transform 0.4s ease;
}
.strip__item:nth-child(even) { margin-top: 40px; }
.strip__item:hover { transform: translateY(-10px); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
.strip__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mono img { filter: grayscale(1) brightness(0.78); transition: filter 0.5s ease, transform 0.7s ease; }
.mono:hover img, .mono:focus-visible img { filter: none; transform: scale(1.04); }

/* Split call to action */

.split { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 80px; }
.split__main { flex: 1 1 560px; min-width: 0; }
.split__side { flex: 1 1 300px; min-width: 0; }

/* Footer */

.site-footer { border-top: 0; }
.footer { display: flex; flex-direction: column; gap: 40px; padding-block: 72px 32px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.footer__top .stack { flex: 1 1 420px; max-width: 560px; }
.footer__title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(var(--glow-rgb), 0.5);
}
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  background: linear-gradient(90deg, rgba(var(--glow-rgb), 0), var(--line) 20%, var(--line) 80%, rgba(var(--glow-rgb), 0)) top / 100% 1px no-repeat;
  font-size: 15px;
  color: var(--muted);
}
.footer__bottom a { padding-block: 12px; }
.credit { color: var(--muted); text-underline-offset: 4px; }
.credit:hover { color: var(--text); }

/* Film grain on the plain black backdrop only. Anything with its own surface sits on top and stays smooth. */
body.grain { background-image: url("../img/grain.png"); background-size: 256px 256px; }
.grain .ring, .grain .strength, .grain .essay, .grain .chip, .grain .nav__toggle { background-color: var(--bg); }

/* Work page */

.ventures { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 88px); }
.venture { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 6vw, 80px); scroll-margin-top: 24px; }
.venture:nth-child(even) { flex-direction: row-reverse; }
.venture .logo-box { flex: 1 1 380px; height: 300px; }
.venture__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.venture__link { text-decoration: none; }
.venture__link:hover, .venture__link:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-shadow: 0 0 18px rgba(var(--glow-rgb), 0.5); }
.venture__arrow { display: inline-block; font-size: 0.8em; transition: transform 0.25s ease; }
.venture__link:hover .venture__arrow { transform: translate(3px, -3px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.venture__index { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.18em; color: var(--accent); }

.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 80px; }
.feature__media { flex: 0 1 420px; min-width: 0; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 0 30px rgba(var(--glow-rgb), 0.25); }
.feature__text { flex: 1 1 440px; min-width: 0; }

.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.record { display: flex; flex-direction: column; gap: 14px; padding: 36px; border: 1px solid rgba(var(--glow-rgb), 0.22); border-radius: var(--radius); background: var(--panel); }
.record__figure {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(var(--glow-rgb), 0.55);
}

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 80px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts .dot { width: 9px; height: 9px; margin-top: 11px; }
.facts strong { display: block; font-family: var(--display); font-stretch: 110%; font-size: 20px; line-height: 1.3; }

.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 48px; }
.strength {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  box-shadow: var(--glow-box);
}

/* Writing page */

.book-feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.book-feature__media { flex: 1 1 520px; min-width: 0; }
.book-feature__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 0 40px rgba(var(--glow-rgb), 0.2); }
.book-feature__text { flex: 1 1 420px; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--muted); }
.essays { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.essay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 180px;
  padding: 28px;
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.essay:hover, .essay:focus-visible { color: var(--text); border-color: var(--text); box-shadow: var(--glow-box); }
.essay__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }

/* Life in Pictures page */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(var(--glow-rgb), 0.4);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.chip:hover, .chip[aria-pressed="true"] { color: var(--text); border-color: var(--text); box-shadow: var(--glow-box); }
.masonry { columns: 3 300px; column-gap: 20px; }
.shot {
  display: block;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  background: var(--panel);
}
.shot[hidden] { display: none; }
.shot__img { overflow: hidden; }
.shot__img img { width: 100%; height: auto; }
.shot__cap { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.shot__tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.shot__title { font-size: 16px; line-height: 1.4; }
.shot__open { font-size: 13px; color: var(--muted); }

/* 404 */

.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: flex-start; }

/* Phone layout */
@media (max-width: 600px) {
  .hero { height: calc(100svh - 72px); min-height: 600px; }
  .hero__inner { padding-top: 96px; padding-bottom: 28px; gap: 16px; }
  .hero__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .hero__tab { font-size: 13px; letter-spacing: 0.1em; min-height: 44px; }
  .page-hero { min-height: 380px; }
  .ring { width: 150px; height: 150px; font-size: 32px; }
  .ring--xl { font-size: 44px; }
  .ring--l { font-size: 40px; }
  .rings { gap: 40px 24px; }
  .strip { gap: 14px; }
  .strip__item { flex: 1 1 150px; height: 260px; }
  .strip__item:nth-child(even) { margin-top: 24px; }
}

/* Motion */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes neon-on { 0% { opacity: 0.15; } 8% { opacity: 1; } 12% { opacity: 0.35; } 22% { opacity: 1; } 30% { opacity: 0.7; } 36%, 100% { opacity: 1; } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.45), inset 0 0 14px rgba(var(--glow-rgb), 0.22); }
  50% { box-shadow: 0 0 34px rgba(var(--glow-rgb), 0.85), inset 0 0 24px rgba(var(--glow-rgb), 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Added for the corrections round ---- */

/* Theme toggle in the persistent nav, on every page */
.nav__toggle { order: 2; }
.nav__menu { order: 3; }
.theme-toggle {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--glow-box);
  cursor: pointer;
}
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--text); color: var(--bg); box-shadow: var(--glow-box-strong); }

/* Photo heroes stay dark in light mode, so their white type always reads */
.hero, .page-hero:not(.page-hero--plain) {
  --bg: #000;
  --panel: #0a0a0a;
  --glow-rgb: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --text: #fff;
  --soft: #e6e6e6;
  --muted: #c9c9c9;
  --accent: #e0b84c;
  --glow-text: 0 0 26px rgba(255, 255, 255, 0.55);
  --glow-box: 0 0 16px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.12);
  --glow-box-strong: 0 0 36px rgba(255, 255, 255, 0.9);
  color: var(--text);
}

/* Recognition: three glass tiles, one lit at a time */
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.award {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-align: center;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(115deg, rgba(var(--glow-rgb), 0.14) 0%, rgba(var(--glow-rgb), 0.14) 40%, rgba(var(--glow-rgb), 0.9) 50%, rgba(var(--glow-rgb), 0.14) 60%, rgba(var(--glow-rgb), 0.14) 100%) border-box;
  background-size: 100% 100%, 300% 100%;
  box-shadow: inset 0 0 22px rgba(var(--glow-rgb), 0.06);
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 0 0, 100% 0; } to { background-position: 0 0, 0% 0; } }
.award__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1.5px solid rgba(var(--glow-rgb), 0.3);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.award__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.5s ease, filter 0.5s ease; }
.award.is-lit .award__icon, .award:hover .award__icon { color: var(--text); border-color: var(--text); box-shadow: var(--glow-box-strong); }
.award.is-lit .award__icon svg, .award:hover .award__icon svg { fill: currentColor; filter: drop-shadow(0 0 8px rgba(var(--glow-rgb), 0.9)); }
.award__name { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; }

/* About: four pillars drawn from the About copy, one lit at a time */
.pillars { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  box-shadow: var(--glow-box);
  color: var(--text);
  text-decoration: none;
  animation: breathe 4s ease-in-out infinite;
}
.pillar__icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); transition: color 0.4s ease, filter 0.4s ease; }
.pillar__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar.is-lit .pillar__icon, .pillar:hover .pillar__icon, .pillar:focus-visible .pillar__icon { color: var(--accent); filter: drop-shadow(0 0 8px rgba(224, 184, 76, 0.7)); }
.pillar__title { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 18px; line-height: 1.2; }
.pillar__text { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Life in Pictures strip: the colour passes along the row */
.mono.is-lit img { filter: none; }

/* Scroll reveal: blocks rise into place. The "translate" property keeps hover transforms working. */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s ease var(--reveal-delay, 0ms), translate 0.8s ease var(--reveal-delay, 0ms), transform 0.4s ease;
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* Floating book photo */
.book-mini { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* The brand mark is white on transparent, so it turns dark on the light background */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand img { filter: invert(1); } }
:root[data-theme="light"] .brand img { filter: invert(1); }

/* Ventures: the logo colour passes along the tiles, one at a time */
.tile.is-lit .logo-box { filter: none; }

/* Theme toggle: sun or moon icon only. It shows the mode it will switch to. */
.theme-toggle { justify-content: center; min-width: 44px; padding: 0 12px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
.theme-toggle[data-current="dark"] .icon-sun { display: block; }
.theme-toggle[data-current="light"] .icon-moon { display: block; }

/* Phone-only fit: narrower recognition and about tiles, and photo crops that keep faces in frame */
@media (max-width: 600px) {
  .awards { max-width: 340px; margin-inline: auto; gap: 14px; }
  .award { padding: 26px 20px; gap: 14px; }
  .award__icon { width: 56px; height: 56px; }
  .award__name { font-size: 18px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pillar { padding: 16px; gap: 8px; }
  .pillar__icon { width: 36px; height: 36px; }
  .pillar__icon svg { width: 26px; height: 26px; }
  .pillar__title { font-size: 16px; }
  .pillar__text { font-size: 14px; }
  .hero__img--fellow { object-position: 30% 30%; }
  .strip__item img[src$="g-sculpture.jpg"] { object-position: 50% 0%; }
}

/* Phone header: hamburger icon, smaller name, and only the logo once the page has scrolled */
@media (max-width: 820px) {
  .brand span { font-size: 12px; letter-spacing: 0.14em; }
  .site-header.is-scrolled .brand span { display: none; }
  .nav { gap: 8px; }
  .nav__toggle { order: 3; width: 44px; height: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .nav__toggle .burger { position: relative; display: block; width: 20px; height: 2px; background: currentColor; transition: background 0.2s ease; }
  .nav__toggle .burger::before, .nav__toggle .burger::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s ease; }
  .nav__toggle .burger::before { top: -6px; }
  .nav__toggle .burger::after { top: 6px; }
  .nav.is-open .nav__toggle .burger { background: transparent; }
  .nav.is-open .nav__toggle .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle .burger::after { transform: translateY(-6px) rotate(-45deg); }
}

/* Theme toggle and hamburger: icons only, no box */
.theme-toggle, .nav__toggle { border: 0; background: transparent; box-shadow: none; color: var(--text); }
.theme-toggle:hover, .theme-toggle:focus-visible, .nav__toggle:hover, .nav__toggle:focus-visible { background: transparent; color: var(--accent); box-shadow: none; }
.theme-toggle svg { width: 24px; height: 24px; }

/* Recognition: year line under each award */
.award__meta { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }

/* Hero tabs: five tabs */
@media (max-width: 600px) {
  .hero__tabs { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Business Kinetics community page ---- */
.community { --bk: #f9df4e; }
.cx-accent { color: var(--bk); }
.cx-rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--bk); }
.cx-intro { max-width: 760px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--text); }

.cx-logos-section { padding-block: 8px 40px; }
.cx-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); }
.cx-logo { height: 68px; display: flex; align-items: center; animation: cxfloat 6s ease-in-out infinite; }
.cx-logo img { height: 100%; width: auto; max-width: 220px; object-fit: contain; }
.cx-logo:nth-child(2) { animation-delay: -2s; }
.cx-logo:nth-child(3) { animation-delay: -4s; }
.cx-logo--oj img { height: 84px; filter: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .cx-logo--oj img { filter: invert(1); } }
:root[data-theme="light"] .cx-logo--oj img { filter: invert(1); }
@keyframes cxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.cx-grid { display: grid; gap: 18px; }
.cx-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-tile {
  display: flex; flex-direction: column; gap: 14px; padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.cx-tile:hover { transform: translateY(-8px); border-color: var(--bk); box-shadow: 0 18px 36px rgba(249, 223, 78, 0.18); }
.cx-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease; }
.cx-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cx-tile:hover .cx-icon { color: #0a0a0a; background: var(--bk); border-color: var(--bk); }
.cx-title { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 20px; line-height: 1.2; }
.cx-text { font-size: 16px; line-height: 1.55; color: var(--muted); }

.cx-quote { margin: 0; position: relative; padding: clamp(32px, 5vw, 60px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; gap: 28px; }
.cx-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--bk); }
.cx-quote__line { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; color: var(--text); }
.cx-quote .stack { max-width: 760px; }

.cx-member { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); background: var(--panel); }
.cx-member .stack { max-width: 640px; }
.cx-soon, .cx-soon:hover { cursor: default; opacity: 0.7; background: transparent; color: var(--text); box-shadow: none; }

@media (max-width: 820px) {
  .cx-grid--two, .cx-grid--three { grid-template-columns: 1fr; }
}

