/* ==========================================================
   Aaron White — site styles
   Colors and sizes live in :root so they're easy to tweak.
   ========================================================== */
:root {
  --bg: #1c1f26;
  --bg-2: #22262e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f1f2f4;
  --muted: #a3a8b3;
  --faint: #6d727d;
  --accent: #e3f85a;
  --accent-soft: rgba(227, 248, 90, 0.35);
  --radius: 14px;
  --container: 1270px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.lead.narrow, .narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }
.lead { color: var(--muted); margin: 18px 0 40px; font-size: 16px; }

/* ---------- Background ---------- */
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.glow {
  position: fixed; z-index: -2; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; pointer-events: none;
}
.glow--left { left: -30vw; top: 10vh; background: radial-gradient(circle, rgba(120, 140, 60, 0.18), transparent 65%); }
.glow--right { right: -25vw; bottom: -20vh; background: radial-gradient(circle, rgba(160, 190, 60, 0.16), transparent 65%); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 22px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 76px; height: auto; }
.nav {
  display: flex; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(28, 31, 38, 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  margin-right: auto; margin-left: auto;
  transform: translateX(-38px); /* visually center against the logo */
}
.nav a {
  padding: 10px 16px; border-radius: 999px; font-size: 15.5px; font-weight: 500;
  color: #e6e7ea; transition: background .2s, color .2s;
}
.nav a:hover, .nav a.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 90px; padding-bottom: 60px; }
.avatar { position: relative; width: 128px; height: 128px; margin: 0 auto 30px; }
.avatar__photo { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.avatar__photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar__photo { box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0,0,0,.4); }
.avatar__wave {
  position: absolute; right: -14px; bottom: -6px; font-size: 52px; line-height: 1;
  transform-origin: 70% 80%; animation: wave 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
}
.hero__title { font-size: clamp(44px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.03em; }
.hero__title .fade {
  background: linear-gradient(180deg, #fff 10%, #9da2ab 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tags {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin: 34px 0 16px; font-size: clamp(18px, 1.8vw, 23px); color: #d8dade;
}
.pill {
  position: relative; padding: 6px 16px; border-radius: 999px; color: #fff; font-size: 1.05em;
  background: var(--pill-bg); border: 1px solid var(--pill-border);
}
.pill--orange { --pill-bg: linear-gradient(135deg, rgba(220,120,60,.22), rgba(220,120,60,.04)); --pill-border: rgba(230,140,80,.45); }
.pill--green  { --pill-bg: linear-gradient(135deg, rgba(160,210,70,.22), rgba(160,210,70,.04)); --pill-border: rgba(180,220,90,.45); }
.pill--blue   { --pill-bg: linear-gradient(135deg, rgba(80,110,230,.28), rgba(80,110,230,.06)); --pill-border: rgba(110,140,240,.5); }
.hero__sub { font-size: clamp(17px, 1.6vw, 22px); color: #d8dade; margin: 0; }

.press { margin-top: 150px; }
.press__label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--faint); margin: 0 0 22px; }
.press__logos { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.press__logos img {
  height: 44px; width: auto; opacity: .55; transition: opacity .25s;
}
.press__logos img:hover { opacity: 1; }

/* ---------- Work ---------- */
.work {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start;
  padding-top: 100px; padding-bottom: 100px;
}
.work__intro { position: sticky; top: 120px; }
.work__intro h2 { margin-bottom: 4px; }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--text); font-size: 14px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.timeline { position: relative; display: grid; gap: 18px; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--accent) 0%, var(--accent-soft) 50%, var(--border) 60%);
}
.job {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: background .2s;
}
.job:hover { background: var(--surface-hover); }
.job::before {
  content: ""; position: absolute; left: -40px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: #d9dadd; border: 3px solid var(--bg);
}
.job--current { border-color: rgba(227, 248, 90, .3); }
.job--current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(227,248,90,.15), 0 0 18px var(--accent); }
.job img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.job time { display: block; color: var(--muted); font-size: 15px; margin-bottom: 2px; }
.job h3 { font-size: 19px; display: inline; margin-right: 12px; }
.job h3 em { font-style: normal; color: var(--muted); }
.job p { display: inline; margin: 0; color: var(--muted); font-size: 16px; }
/* Exited company: violet instead of the lime "current" color */
.job--acquired {
  border-color: rgba(167, 139, 250, .45);
  background: linear-gradient(100deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, .02) 60%), var(--surface);
}
.job--acquired::before { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167,139,250,.15), 0 0 18px #a78bfa; }
.job__badge {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: 1px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #ddd2ff; background: rgba(139, 92, 246, .25); border: 1px solid rgba(167, 139, 250, .5);
}
.job__note { display: table; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.job__note:hover { text-decoration: underline; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 40px; padding-bottom: 120px;
}
.gallery > img, .gallery__stack img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  transition: transform .4s ease;
}
.gallery > img:hover, .gallery__stack img:hover { transform: scale(1.02); }
.gallery__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery__stack img { aspect-ratio: auto; height: 100%; min-height: 0; }

/* ---------- Awards / Speaker lists ---------- */
.block { padding-top: 40px; padding-bottom: 80px; }
.block__head {
  display: flex; align-items: center; gap: 24px; padding-bottom: 40px; margin-bottom: 40px;
  border-bottom: 1px solid; border-image: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent) 1;
}
.block__icon {
  display: grid; place-items: center; width: 52px; height: 52px; font-size: 24px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.list-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.list li { display: flex; gap: 18px; padding: 9px 0; font-size: 17px; color: #dcdee2; }
.list time { color: var(--faint); min-width: 42px; font-variant-numeric: tabular-nums; }
.list b { color: #fff; font-weight: 600; }
.list i { color: var(--muted); }
.and-more { text-align: center; color: var(--faint); margin: 30px 0 0; }

/* ---------- Play ---------- */
#play { padding-top: 60px; padding-bottom: 120px; }
.play {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px;
  padding: 64px 84px; border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(160, 190, 70, .12), transparent 55%), var(--bg-2);
  border: 1px solid rgba(255,255,255,.06);
  border-bottom: 2px solid rgba(227, 248, 90, .55);
  box-shadow: 0 40px 120px -40px rgba(180, 210, 60, .25);
}
.play h2 { margin-bottom: 24px; }
.play p { color: #d6d8dc; margin: 0 0 28px; }
.play__art { position: relative; height: 240px; }
.float { position: absolute; line-height: 1; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); animation: bob 5s ease-in-out infinite; }
.f1 { font-size: 110px; left: 10%; top: 18%; transform: rotate(-10deg); }
.f2 { font-size: 130px; left: 55%; top: -30%; animation-delay: -1.5s; }
.f3 { font-size: 76px; left: 52%; top: 62%; animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -12px; } }

.game__options { display: grid; gap: 10px; }
.game__opt {
  font: inherit; text-align: left; color: var(--text); cursor: pointer;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); transition: background .2s, border-color .2s, transform .15s;
}
.game__opt:hover:not(:disabled) { background: rgba(255,255,255,.07); transform: translateX(4px); }
.game__opt:disabled { cursor: default; }
.game__opt.is-lie { border-color: #ff7a6b; background: rgba(255,122,107,.12); }
.game__opt.is-truth { border-color: rgba(227,248,90,.45); background: rgba(227,248,90,.06); }
.game__opt.is-picked { outline: 2px solid #fff; outline-offset: 2px; }
.game__result { min-height: 1.5em; margin: 16px 0 0 !important; font-weight: 600; }
.btn {
  font: inherit; font-weight: 600; cursor: pointer; padding: 10px 18px; border-radius: 999px;
  border: 0; background: var(--accent); color: #1c1f26; transition: transform .15s;
}
.btn:hover { transform: translateY(-1px); }

/* ---------- Shop ---------- */
.shop { padding-bottom: 120px; }
.books { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.books > * { flex: 1 1 560px; max-width: 640px; }
.book {
  display: grid; grid-template-columns: 240px 1fr; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: background .2s, transform .2s;
}
.book:hover { background: var(--surface-hover); transform: translateY(-3px); }
.book img { width: 100%; height: 100%; object-fit: cover; }
.book__body { padding: 40px 36px; display: flex; flex-direction: column; }
.book h3 { font-size: 26px; margin-bottom: 12px; }
.book p { color: #cfd2d7; margin: 0 0 12px; }
.book__tags { color: var(--faint) !important; font-size: 15px; }
.book__buy { margin-top: auto; padding-top: 24px; color: var(--accent); font-weight: 500; }
.book__buy:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 60px; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__nav a { font-weight: 500; color: #e3e4e7; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { margin: 0 0 0 auto; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .work { grid-template-columns: 1fr; gap: 24px; }
  .work__intro { position: static; }
  .play { padding: 48px; }
}

@media (max-width: 940px) {
  .header { padding: 16px 0; background: linear-gradient(var(--bg) 55%, transparent); }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
    background: rgba(28,31,38,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 74px; left: 16px; right: 16px; transform: none; margin: 0;
    flex-direction: column; padding: 10px; border-radius: 20px;
    background: rgba(28,31,38,.92);
    opacity: 0; pointer-events: none; translate: 0 -8px; transition: opacity .2s, translate .2s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; translate: 0 0; }
  .nav a { padding: 14px 16px; font-size: 17px; }

  .container { padding: 0 16px; }
  .hero { padding-top: 50px; }
  .press { margin-top: 90px; }
  .press__logos { justify-content: center; gap: 20px 28px; }
  .press__logos img { height: 34px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__stack { gap: 12px; }
  .list-cols { grid-template-columns: 1fr; }
  .play { grid-template-columns: 1fr; padding: 36px 24px; }
  .play__art { display: none; }
  .book { grid-template-columns: 1fr; }
  .book img { aspect-ratio: 5 / 7; max-height: 420px; object-position: top; }
  .book__body { padding: 28px 24px; }
  .footer__copy { margin-left: 0; width: 100%; }
  .job { padding: 16px; }
  .job h3, .job p { display: block; }
}

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

/* ---------- Stories ---------- */
.stories { padding-top: 60px; padding-bottom: 60px; }
.stories__head { text-align: center; margin-bottom: 56px; }
.stories__head .fade, .story h3 em {
  background: linear-gradient(90deg, var(--accent), #b9e05a);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(227, 248, 90, .3); background: rgba(227, 248, 90, .06);
}

/* Shared story pieces (used by both the tile and the full view) */
.story__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: #15171c;
}
.story__media > img, .story__media > video, .story__media > iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
}
.story__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(227, 248, 90, .14), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
}
.story__placeholder span { font-size: 96px; line-height: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: bob 5s ease-in-out infinite; }
.story__placeholder small { color: var(--faint); font-size: 14px; }
.story__eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.story h3 { font-weight: 600; letter-spacing: -0.025em; }
.story__intro { color: #d6d8dc; }
.story__steps { margin: 0 0 32px; display: grid; gap: 18px; }
.story__steps > div { padding-left: 22px; border-left: 2px solid var(--border); }
.story__steps > div:last-child { border-left-color: var(--accent); }
.story__steps dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.story__steps dd { margin: 0; color: var(--muted); }
.story__steps strong { color: #fff; }
.story__stats { display: flex; flex-wrap: wrap; gap: 12px; }
.story__stats li {
  flex: 1 1 120px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.story__stats b { display: block; font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.story__stats span { font-size: 13px; color: var(--muted); }

/* Tile view (on the page) */
.stories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stories__grid .story {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  padding: 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(90% 80% at 0% 0%, rgba(160, 190, 70, .08), transparent 60%), var(--bg-2);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.stories__grid .story:hover {
  transform: translateY(-4px); border-color: rgba(227, 248, 90, .35);
  box-shadow: 0 30px 60px -30px rgba(180, 210, 60, .3);
}
.stories__grid .story__media { aspect-ratio: 16 / 11; }
.stories__grid .story__media > * { pointer-events: none; }
.stories__grid .story__placeholder span { font-size: 64px; }
.stories__grid .story__placeholder small { display: none; }
.stories__grid .story__body { display: flex; flex-direction: column; flex: 1; padding: 20px 8px 8px; }
.stories__grid .story__eyebrow { font-size: 12.5px; }
.stories__grid .story h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.stories__grid .story__intro {
  margin: 0 0 18px; font-size: 15px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.stories__grid .story__steps, .stories__grid .story__stats { display: none; }
.story__open {
  margin-top: auto; align-self: flex-start; font: inherit; font-weight: 600; font-size: 15px;
  padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer;
}
.story__open::after { content: ""; position: absolute; inset: 0; border-radius: 20px; } /* whole tile is clickable */
.story__open:focus-visible { outline: none; }
.story:has(.story__open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Full view (in the pop-up) */
.story-modal {
  width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--border); border-radius: 24px;
  background: var(--bg-2); color: var(--text); overflow: auto; overscroll-behavior: contain;
}
.story-modal::backdrop { background: rgba(10, 12, 16, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story-modal[open] { animation: modal-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.story-modal__bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; background: linear-gradient(var(--bg-2) 70%, transparent);
}
.story-modal__count { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; margin-right: auto; padding: 0 6px; }
.story-modal__bar button {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s;
}
.story-modal__bar button:hover { background: rgba(255,255,255,.1); }
.story-modal__close { margin-left: 8px; }
.story-modal__content .story {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; padding: 4px 48px 48px;
}
.story-modal__content .story__aside { position: sticky; top: 72px; width: 100%; max-width: max(280px, calc(100dvh - 340px)); justify-self: center; }
.story-modal__content .story__media { aspect-ratio: 1; }
.story-modal__content .story__embed { margin-top: 16px; }
.story-modal__content .story__link { margin-top: 12px; }
.story-modal__content .story h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.story-modal__content .story__intro { font-size: 18px; margin: 0 0 28px; }
.story-modal__content .story__open { display: none; }

.story-link:hover b { color: var(--accent); }
body.modal-open { overflow: hidden; }

@media (max-width: 1080px) {
  .stories__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  /* Swipeable row of tiles on phones */
  .stories__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none;
  }
  .stories__grid::-webkit-scrollbar { display: none; }
  .stories__grid .story { flex: 0 0 82%; max-width: 360px; scroll-snap-align: center; }
  .stories__grid .story:hover { transform: none; }
  .story-modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .story-modal__content .story { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 40px; }
  .story-modal__content .story__aside { position: static; max-width: none; }
  .story-modal__content .story__media { aspect-ratio: 16 / 11; }
}

/* Optional extras inside a story: an embedded player and an outbound link.
   Both only show in the full story, not on the tile. */
.story__embed { display: block; width: 100%; height: 152px; margin-top: 28px; border: 0; border-radius: 12px; background: transparent; }
.story__link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; }
.story__link:hover { text-decoration: underline; }
.story__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 0; font-size: 14px; color: var(--faint); }
.story__links a { color: var(--accent); font-weight: 600; }
.story__links a:hover { text-decoration: underline; }
.stories__grid .story__embed, .stories__grid .story__link, .stories__grid .story__links,
.stories__grid .story__gallery, .stories__grid .story__featuring { display: none; }

/* "My role" tags on a story (shown on the tile and in the full story) */
.story__roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.story__roles li {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #eef6c8;
  border: 1px solid rgba(227, 248, 90, .35); background: rgba(227, 248, 90, .08);
}
.stories__grid .story__roles { margin: 0 0 18px; gap: 6px; }
.stories__grid .story__roles li { font-size: 12px; padding: 4px 10px; }

/* Video stories: the tile shows a thumbnail with a play button;
   the full story swaps in the real player (see data-video in index.html). */
.story-modal__content .story__media--video { aspect-ratio: 16 / 9; }
.story__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(20, 22, 28, .7); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .2s, background .2s;
}
.story__play::after {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.story:hover .story__play { transform: scale(1.08); background: var(--accent); }
.story:hover .story__play::after { border-left-color: #1c1f26; }
.story-modal__content .story__aside:has(.story__media--video) { max-width: none; }

/* Story extras: "featuring" credit line and photo gallery thumbnails */
.story__featuring { margin: 24px 0 0; font-size: 14px; color: var(--faint); }
.story__gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.story__gallery button {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--border); background: #15171c; opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.story__gallery button:hover { opacity: 1; }
.story__gallery .is-active button { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.story__gallery img { width: 100%; height: 100%; object-fit: cover; }
.story__gallery .is-video button { position: relative; }
.story__gallery .is-video button::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 14px; background: rgba(0,0,0,.35);
}
.story__media > img.is-photo { object-fit: contain; background: #0f1115; }

/* Book covers: show the whole cover on a soft backdrop instead of cropping it */
.story__media--book {
  display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(227, 248, 90, .12), transparent 70%), #15171c;
}
.story__media--book > img {
  width: auto !important; height: 82% !important; object-fit: contain !important;
  border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

/* Before/after comparison slider (data-compare on .story__media) */
.compare { position: absolute; inset: 0; --pos: 50%; user-select: none; }
.compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none;
}
.compare__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #1c1f26; font-weight: 700; font-size: 18px; letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.compare__labels {
  position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between;
  pointer-events: none;
}
.compare__labels span {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(15, 17, 21, .7); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(.compare__range:focus-visible) .compare__handle::after { outline: 2px solid #fff; outline-offset: 3px; }

.legend--acquired i { background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }

/* Wide stories (class="story story--wide"): big centered media on top, text below */
.story-modal__content .story--wide { grid-template-columns: 1fr; gap: 32px; }
.story-modal__content .story--wide .story__aside { position: static; width: 100%; max-width: 720px; justify-self: center; }
.story-modal__content .story--wide .story__body {
  max-width: 920px; width: 100%; justify-self: center;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0 48px; align-items: start;
}
.story-modal__content .story--wide .story__body > :not(.story__steps) { grid-column: 1; }
.story-modal__content .story--wide .story__steps { grid-column: 2; grid-row: 1 / span 6; }
@media (max-width: 940px) {
  .story-modal__content .story--wide .story__body { display: block; }
}

/* ---------- Hero snapshots ---------- */
.hero { position: relative; }
.hero > :not(.hero__photos) { position: relative; z-index: 1; }
.hero__photos { position: absolute; inset: 40px 24px auto; height: 560px; pointer-events: none; }
.snap {
  --r: 0deg;
  position: absolute; margin: 0; padding: 7px 7px 7px; border-radius: 6px; pointer-events: auto;
  background: #f4f1ea; box-shadow: 0 24px 50px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  transform: rotate(var(--r));
  animation: snap-in .9s cubic-bezier(.2,.8,.2,1) both, snap-float 7s ease-in-out infinite;
  transition: transform .35s ease, box-shadow .35s ease;
}
.snap img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.snap:hover { transform: rotate(0deg) scale(1.06); z-index: 2; animation-play-state: paused; box-shadow: 0 30px 70px -10px rgba(0,0,0,.7); }

.snap--1 { --r: -7deg; left: 0;    top: 30px;  width: clamp(170px, 17vw, 240px); aspect-ratio: 3 / 2; animation-delay: .1s, 0s; }
.snap--2 { --r: 5deg;  left: 4%;   top: 290px; width: clamp(115px, 11vw, 150px); aspect-ratio: 2 / 3; animation-delay: .25s, -2s; }
.snap--3 { --r: 6deg;  right: 1%;  top: 10px;  width: clamp(130px, 12.5vw, 175px); aspect-ratio: 2 / 3; animation-delay: .4s, -4s; }
.snap--4 { --r: -5deg; right: -1%; top: 320px; width: clamp(185px, 17.5vw, 255px); aspect-ratio: 3 / 2; animation-delay: .55s, -5.5s; }
.snap--3 img { object-position: center 30%; }

@keyframes snap-in { from { opacity: 0; transform: translateY(24px) rotate(0deg) scale(.9); } }
@keyframes snap-float { 50% { translate: 0 -8px; } }

/* Narrower screens: a small fanned stack under the intro instead */
@media (max-width: 1180px) {
  .hero { display: flex; flex-direction: column; align-items: center; }
  .hero__photos {
    position: relative; inset: auto; height: auto; order: 10; z-index: 1;
    display: flex; justify-content: center; margin-top: 44px;
  }
  .snap { position: relative; left: auto; right: auto; top: auto; width: 150px; margin: 0 -14px; }
  .snap--1, .snap--4 { aspect-ratio: 4 / 3; }
  .snap--2, .snap--3 { aspect-ratio: 3 / 4; width: 112px; }
  .snap--1 { order: 1; } .snap--3 { order: 2; } .snap--4 { order: 3; } .snap--2 { order: 4; }
  .hero > .press { order: 11; width: 100%; }
}
@media (max-width: 600px) {
  .snap { width: 120px; margin: 0 -18px; padding: 5px; }
  .snap--2, .snap--3 { width: 88px; }
  .snap--2 { display: none; }
}

.list .role { color: var(--muted); font-size: 15px; }
.list .role i { color: #dcdee2; }
.list a.role:hover { color: var(--accent); }

/* A project with several awards under it (awards list) */
.list__project > div { color: #dcdee2; }
.list__project .role { display: block; margin-top: 2px; }
.list__sub { margin-top: 8px; display: grid; gap: 4px; }
.list__sub li { position: relative; padding: 0 0 0 18px; font-size: 15.5px; color: var(--muted); display: block; }
.list__sub li::before { content: "•"; position: absolute; left: 4px; color: var(--faint); }
.list__sub li.is-win { color: #fff; }
.list__sub li.is-win::before { content: "🏆"; left: -2px; font-size: 12px; top: 2px; }

/* Work / Personal tabs above the story tiles */
.stories__tabs {
  display: inline-flex; gap: 4px; margin-top: 4px; padding: 5px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.03);
}
.stories__tabs button {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 9px 22px; border-radius: 999px; border: 0; background: none; color: var(--muted);
  transition: background .2s, color .2s;
}
.stories__tabs button:hover { color: #fff; }
.stories__tabs button[aria-selected="true"] { background: var(--accent); color: #1c1f26; }
.stories__grid .story[hidden] { display: none; }

/* Landscape photo stories keep their shape in the pop-up */
.story-modal__content .story__media--landscape { aspect-ratio: 3 / 2; }

/* "That's me" marker on a photo (position with left/top in percent) */
.story__callout { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.story__callout i {
  display: block; width: clamp(34px, 9vw, 74px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 24px rgba(227,248,90,.6);
  animation: callout-pulse 2.4s ease-in-out infinite;
}
.story__callout b {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: #1c1f26; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.stories__grid .story__callout i { width: 34px; border-width: 2px; }
.stories__grid .story__callout b { font-size: 10.5px; padding: 3px 8px; right: calc(100% + 6px); }
@keyframes callout-pulse { 50% { transform: scale(1.12); } }

/* Two truths and a lie: round counter and A/B/C letters */
.game__round { margin: 0 0 12px !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; }
.game__opt { display: flex; align-items: center; gap: 12px; }
.game__letter {
  flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); font-size: 13px; font-weight: 600;
}

/* Game answer: give the reveal room to breathe */
.game__result {
  min-height: 0; margin: 24px 0 24px !important; padding: 16px 20px; border-radius: 12px;
  font-weight: 500; line-height: 1.6; color: #e6e8eb !important;
  background: rgba(255,255,255,.04); border-left: 3px solid var(--accent);
}
.game__result:empty { display: none; }
.game__score { display: block; margin-top: 10px; color: var(--accent); }

/* Tweet screenshot: show the whole tweet on black instead of cropping it */
.gallery__stack img.is-tweet { object-fit: contain; background: #000; padding: 6px 10px; }

/* Photo strip: five across on desktop */
.gallery { grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 940px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery > .gallery__wide { grid-column: span 2; aspect-ratio: 3 / 2; }
}
.gallery__stack { aspect-ratio: 1; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 940px) { .gallery__stack { gap: 12px; } }

/* "As seen in" wordmarks (vector/text, so they stay crisp at any size) */
.pl {
  display: inline-flex; align-items: center; gap: 8px; color: #7d828c; line-height: 1;
  transition: color .25s; white-space: nowrap; user-select: none;
}
.pl:hover { color: #c9cdd4; }
.pl svg { display: block; flex-shrink: 0; }
.pl--tc { font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
.pl--tc svg { width: 34px; height: 34px; }
.pl--yahoo { font-family: "Fredoka", var(--font); font-weight: 700; font-size: 36px; letter-spacing: -.03em; }
.pl--bj { font-family: "Oswald", var(--font); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-align: center; line-height: 1.05; }
.pl--ms { font-size: 23px; font-weight: 300; letter-spacing: -.01em; gap: 6px; }
.pl--ms b { font-weight: 700; }
.pl--ms svg { width: 30px; height: 20px; }
.pl--abc { gap: 6px; }
.pl--abc i {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: currentColor; font-style: normal;
}
.pl--abc i::first-letter { }
.pl--abc i { color: #7d828c; }
.pl--abc i { -webkit-text-fill-color: var(--bg); font-weight: 800; font-size: 17px; letter-spacing: -.04em; }
.pl--abc span { font-family: "Oswald", var(--font); font-weight: 700; font-size: 16px; text-transform: uppercase; line-height: .95; letter-spacing: .02em; }
.pl--abc:hover i { color: #c9cdd4; }
@media (max-width: 940px) {
  .pl--tc, .pl--ms { font-size: 18px; } .pl--tc svg { width: 26px; height: 26px; }
  .pl--yahoo { font-size: 28px; } .pl--bj, .pl--abc span { font-size: 12.5px; } .pl--abc i { width: 34px; height: 34px; font-size: 14px; }
}

/* ---------- Logo: AW mark + name ---------- */
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo img { width: 50px; height: auto; }
.logo__name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
@media (min-width: 941px) {
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header .nav { transform: none; margin: 0; justify-self: center; }
}
/* Mid-size screens: not enough room beside the menu, so show the mark only */
@media (min-width: 941px) and (max-width: 1220px) { .header .logo__name { display: none; } }

/* ---------- @aaronwhite handle + "Let's connect" arrow (replaces logo) ---------- */
.handle-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.handle {
  font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; white-space: nowrap;
  transition: color .2s;
}
.handle:hover { color: var(--accent); }
/* The note hangs just below the handle, with the arrow curving up to it */
.connect {
  position: absolute; left: 62px; top: calc(100% + 6px); display: flex; align-items: flex-end; gap: 4px;
  color: var(--accent); transform: rotate(-7deg); transform-origin: left top; pointer-events: none;
}
.connect__arrow { width: 46px; height: 40px; flex-shrink: 0; }
.connect__text { font-family: "Caveat", cursive; font-weight: 600; font-size: 23px; line-height: 1; white-space: nowrap; transform: translateY(10px); }
.footer .handle { font-size: 18px; }
@media (min-width: 941px) and (max-width: 1100px) { .header .handle { font-size: 17px; } }
.connect { transition: opacity .3s, translate .3s; }
.header.is-scrolled .connect { opacity: 0; translate: 0 -6px; }
