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

:root {
  --bg:      #1B1C1C;
  --black:   #f0efed;   /* inverted — light text on dark bg */
  --gray:    #888;
  --border:  rgba(255,255,255,0.12);
  --nav-bg:  #252727;   /* slightly lighter than bg for nav panels */
  --font:    'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

/* Case study pages: re-enable normal vertical scroll, dark mode */
html:has(body.case-body),
body.case-body {
  height: auto;
  overflow: auto;
  background: #1B1C1C;
  color: #f0efed;
}

a    { color: inherit; text-decoration: none; }
button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); color: inherit; padding: 0;
}

/* ── Page track (horizontal scroll) ────────────────────────── */
.page-track {
  display: flex;
  height: 100vh;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior: none;
}
.page-track::-webkit-scrollbar { display: none; }

/* ── Slides ─────────────────────────────────────────────────── */
.slide {
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* ── Nav panel (landing, fixed top-right) ───────────────────── */
.nav-panel {
  position: fixed;
  top: 0;
  right: 1.5rem;
  z-index: 200;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  min-width: 310px;
  transition: opacity 0.2s, pointer-events 0s;
}
.nav-panel.hidden { opacity: 0; pointer-events: none; }

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.4rem 1.8rem 1.2rem;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  color: var(--black);
}
.nav-item:hover { opacity: 0.5; }

.nav-arrow { margin-left: 0.5rem; font-weight: 400; }

.nav-sub {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: 0.45rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-sub a      { color: var(--gray); display: flex; }
.nav-sub a:hover { color: var(--black); }

.nav-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--black) !important;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-sub-btn:hover {
  background: #002AF4 !important;
  border-color: #002AF4 !important;
  color: #fff !important;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gray);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray);
  flex-shrink: 0;
}

.nav-dl-icon { margin-left: 0.4rem; vertical-align: middle; }
.nav-divider { height: 1px; background: var(--border); }

/* ── Compact nav (non-landing slides) ───────────────────────── */
.compact-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.compact-nav.visible { opacity: 1; pointer-events: all; }

.logo-mark {
  padding: 0.85rem 1.1rem;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark:hover { opacity: 0.7; }
.nav-favicon { height: 32px; width: auto; display: block; }

.where-wrap {
  position: relative;
  margin-right: 1.5rem;
}

.where-btn {
  padding: 1.0rem 1.8rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  color: var(--black);
  transition: opacity 0.12s ease;
}

.where-wrap:hover .where-btn {
  opacity: 0;
  pointer-events: none;
}

.where-menu {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  display: flex;
  flex-direction: column;
  width: 360px;
  /* clip reveal downward */
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.where-wrap:hover .where-menu {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

/* stagger each row in */
.where-menu .nav-item,
.where-menu .nav-divider {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.where-wrap:hover .where-menu .nav-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.where-wrap:hover .where-menu .nav-divider:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.13s; }
.where-wrap:hover .where-menu .nav-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.where-wrap:hover .where-menu .nav-divider:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.21s; }
.where-wrap:hover .where-menu .nav-item:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.24s; }

.where-menu .nav-item {
  font-size: 1.35rem;
}

/* ── LANDING SLIDE ──────────────────────────────────────────── */
.slide-landing { background: var(--bg); }

/*
  Layout mirrors diana.lu exactly:
  - Name: top-left, very large bold
  - Description: to the RIGHT of the name, same horizontal band
*/
/* Header row — matches diana.lu proportions exactly */
.landing-header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.landing-name {
  font-family: var(--font);
  font-size: clamp(3.1rem, 6vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--black);
  margin: 0;
  flex-shrink: 0;
}

.landing-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.55;
  max-width: 320px;
  flex-shrink: 0;
}

/* Visual layer (C shapes + dots + person) */
.landing-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

/* CCC: motif image — scales with viewport, anchored bottom-left with page padding */
.ccc-motif {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  height: clamp(260px, 68vh, 700px);
  width: auto;
  max-width: calc(100vw - 4rem);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* All sketch characters sit above C's */
.sketch { position: absolute; }

/* Landing person — in front of the C's, animated */
.sketch-landing-person {
  width: 120px;
  bottom: 0;
  left: 360px;
  z-index: 10;
  transform-origin: bottom center;
}

/* "Exhibition this way" CTA */
.exhibition-cta {
  position: absolute;
  bottom: 2.2rem;
  right: 256px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 5;
  color: var(--black);
  will-change: transform;
}
.cta-arrow { margin-left: 0.2rem; }

.landing-credit {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.03em;
  z-index: 5;
}

/* ── SKETCH ANIMATIONS ───────────────────────────────────────── */


/* ── PROJECT SLIDES ─────────────────────────────────────────── */
.slide-project {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  z-index: 2;
}
.project-thumb {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project-card:hover .project-thumb { transform: translateY(-8px) scale(1.02); }

.project-thumb {
  width: 600px;
  height: 450px;
  background: #2e2b2b;
  overflow: hidden;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Phone carousel thumbnail ───────────────────────────────── */
.phone-carousel-thumb {
  background: url('images/tla-bg.png') center center / cover no-repeat;
  padding: 0;
  border: none;
  overflow: hidden;
}

.phone-carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 40px 20px;
  width: max-content;
  will-change: transform;
}

.phone-mock {
  width: 110px;
  flex-shrink: 0;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #ffffff;
  border: 5px solid #ffffff;
  outline: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.05),
    0 12px 36px rgba(0,0,0,0.14),
    0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 8px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: #f0f0f0;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── MacBook thumbnail ───────────────────────────────────────── */
/* ── Freddie Mac browser thumbnail ── */
/* ── Freddie Mac screen carousel ── */
.fm-carousel-thumb {
  background: url('images/crashing.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.fm-carousel-track {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fm-screen-mock {
  flex-shrink: 0;
  width: 380px;
}

.fm-screen-mock img {
  width: 100%;
  height: auto;
  display: block;
}
/* ── end FM carousel ── */

/* ── KPMG Board AI thumbnail ── */
.board-ai-thumb {
  background: #0a0e1a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-ai-glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(80,120,255,0.35) 0%, rgba(255,120,60,0.18) 50%, transparent 75%);
  top: -60px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.board-ai-ui {
  position: relative;
  z-index: 1;
  display: flex;
  width: 88%;
  height: 72%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.board-ai-sidebar {
  width: 36px;
  background: #1a2540;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 10px;
  flex-shrink: 0;
}

.board-ai-logo-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #4A7FFF;
  margin-bottom: 6px;
}

.board-ai-nav-item {
  width: 18px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
.board-ai-nav-item.active { background: rgba(255,255,255,0.7); }

.board-ai-content {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f8fc;
}

.board-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-ai-header-title {
  height: 6px; width: 90px;
  background: #1a2540;
  border-radius: 3px;
}

.board-ai-header-badge {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #4A7FFF;
  padding: 2px 5px;
  border-radius: 3px;
}

.board-ai-metrics {
  display: flex;
  gap: 6px;
}

.board-ai-metric {
  flex: 1;
  background: #fff;
  border-radius: 5px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.board-ai-metric-val {
  font-size: 11px;
  font-weight: 700;
  color: #1a2540;
  line-height: 1;
}

.board-ai-metric-label {
  font-size: 6px;
  color: #888;
  line-height: 1;
}

.board-ai-chart {
  background: #fff;
  border-radius: 5px;
  padding: 6px;
  flex: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.board-ai-chart svg {
  width: 100%;
  height: 100%;
}

.board-ai-insight {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  background: #fff;
  border-radius: 5px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.board-ai-insight-bar {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: #4A7FFF;
  flex-shrink: 0;
}

.board-ai-insight-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-ai-insight-lines div {
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  width: 100%;
}
/* ── end Board AI thumbnail ── */

/* ── Freddie Mac angled MacBook mockup ── */
.fm-laptop-thumb {
  background: url('images/crashing.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}

.fm-macbook-wrap {
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateY(-28deg) rotateX(6deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 32px 56px rgba(0,0,0,0.6));
}

/* lid */
.fm-macbook-lid {
  width: 100%;
  background: linear-gradient(160deg, #2a2a2c 0%, #1c1c1e 100%);
  border-radius: 12px 12px 0 0;
  padding: 12px 10px 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 1px 0 0 rgba(255,255,255,0.06),
    inset -1px 0 0 rgba(0,0,0,0.3);
}

/* screen */
.fm-macbook-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.fm-macbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* base / keyboard deck */
.fm-macbook-base {
  width: 102%;
  background: linear-gradient(to bottom, #28282a 0%, #1e1e20 100%);
  padding: 8px 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.4);
}

.fm-macbook-keyboard {
  width: 92%;
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 10px,
    rgba(0,0,0,0.0) 10px, rgba(0,0,0,0.0) 13px
  ),
  repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 8px,
    rgba(0,0,0,0.0) 8px, rgba(0,0,0,0.0) 11px
  );
  border-radius: 3px;
  background-color: #222224;
}

.fm-macbook-trackpad {
  width: 30%;
  height: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
}

/* thin foot edge */
.fm-macbook-foot {
  width: 100%;
  height: 5px;
  background: linear-gradient(to bottom, #141416, #0e0e10);
  border-radius: 0 0 4px 4px;
}
/* ── end FM MacBook ── */

/* ── Freddie Mac tablet fan mockup ── */
.fm-tablet-thumb {
  background: url('images/crashing.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* fan wrapper — centered in the thumb */
.fm-fan {
  position: relative;
  width: 480px;
  height: 320px;
}

.fm-tablet {
  position: absolute;
  width: 300px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
}

.fm-tablet-screen {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.fm-tablet-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.fm-tablet-bar {
  height: 6px;
  margin-top: 6px;
  background: #2a2a2a;
  border-radius: 3px;
}

/* back-left */
.fm-tablet-1 {
  top: 50px; left: -20px;
  transform: rotate(-14deg);
  z-index: 1;
  animation: tabletBop 3.2s ease-in-out infinite;
  animation-delay: 0s;
}
/* middle */
.fm-tablet-2 {
  top: 15px; left: 85px;
  transform: rotate(-3deg);
  z-index: 2;
  animation: tabletBop 3.2s ease-in-out infinite;
  animation-delay: -1.1s;
}
/* front-right */
.fm-tablet-3 {
  top: -15px; left: 190px;
  transform: rotate(8deg);
  z-index: 3;
  animation: tabletBop 3.2s ease-in-out infinite;
  animation-delay: -2.1s;
}

@keyframes tabletBop {
  0%, 100% { margin-top: 0px; }
  50%       { margin-top: -12px; }
}
/* ── end FM tablet fan ── */

.fm-browser-thumb {
  background: url('images/freddie-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fm-browser {
  width: 88%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  background: #fff;
}

.fm-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8e8e8;
  padding: 9px 14px;
  flex-shrink: 0;
}

.fm-browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.fm-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}

.fm-browser-dots span:nth-child(1) { background: #ff5f57; }
.fm-browser-dots span:nth-child(2) { background: #febc2e; }
.fm-browser-dots span:nth-child(3) { background: #28c840; }

.fm-browser-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  font-size: 0.65rem;
  color: #888;
  padding: 4px 10px;
  font-family: var(--font);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-browser-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #fff;
}

.fm-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
}

/* ── end FM browser ── */

/* ── Project ROAR iMac desktop mockup ── */
.roar-imac-thumb {
  background: url('images/cloud.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.roar-imac {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 86%;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.38)) drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}

/* outer monitor shell — silver aluminum */
.roar-imac-screen {
  width: 100%;
  background: linear-gradient(175deg, #d8d8dc 0%, #c2c2c6 40%, #b6b6ba 100%);
  border-radius: 16px 16px 0 0;
  padding: 10px 10px 0;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 1px 0 0 rgba(255,255,255,0.5),
    inset -1px 0 0 rgba(0,0,0,0.08),
    0 -1px 0 rgba(255,255,255,0.6);
}

/* camera dot */
.roar-imac-screen::before {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #888, #555);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.2);
}

/* the actual screen */
.roar-imac-bezel {
  width: 100%;
  aspect-ratio: 16/10;
  background: #0a0a0a;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6);
}

/* screen glare */
.roar-imac-bezel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
  border-radius: 4px 4px 0 0;
}

.roar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* chin — slightly thicker with Apple logo hint */
.roar-imac-chin {
  width: 100%;
  height: 22px;
  background: linear-gradient(to bottom, #c4c4c8 0%, #b0b0b4 60%, #a8a8ac 100%);
  border-radius: 0 0 10px 10px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 4px 10px rgba(0,0,0,0.2);
}

/* Apple logo */
.roar-imac-chin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 12px;
  background: rgba(0,0,0,0.18);
  clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 90% 65%, 65% 90%, 50% 100%, 35% 90%, 10% 65%, 0% 35%, 20% 10%);
  border-radius: 2px;
}

/* stand — thin neck */
.roar-imac-stand-neck {
  width: 4%;
  height: 30px;
  background: linear-gradient(to right, #b0b0b4, #c8c8cc, #b0b0b4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* stand foot — oval base */
.roar-imac-stand-foot {
  width: 30%;
  height: 8px;
  background: linear-gradient(to bottom, #c4c4c8 0%, #b8b8bc 50%, #a8a8ac 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
/* ── end ROAR iMac ── */

.macbook-thumb {
  background: url('images/wb-bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: relative;
  overflow: hidden;
}

.macbook-wrap {
  width: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.18)) drop-shadow(0 4px 12px rgba(0,0,0,0.22));
  position: relative;
  z-index: 2;
  transform-origin: bottom center;
  animation: macbookTilt 4s ease-in-out infinite;
}

@keyframes macbookTilt {
  0%   { transform: rotate(-3deg) translateY(0px); }
  50%  { transform: rotate(3deg)  translateY(-6px); }
  100% { transform: rotate(-3deg) translateY(0px); }
}

/* ── Lid ── */
.macbook-lid {
  width: 100%;
  background: linear-gradient(160deg, #e8e8e8 0%, #d0d0d0 40%, #c4c4c4 100%);
  border-radius: 12px 12px 0 0;
  padding: 14px 12px 8px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    inset 1px 0 0 rgba(255,255,255,0.4),
    inset -1px 0 0 rgba(0,0,0,0.08);
}

/* Camera dot */
.macbook-lid::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #888;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.3);
}

/* Inner screen bezel */
.macbook-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}

.macbook-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Wavy gradient overlay using exact Cover.png hex colors */
.macbook-wave-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    125deg,
    rgba(124, 58, 237, 0.5) 0%,    /* #7C3AED */
    rgba(67, 56, 202, 0.35) 30%,   /* #4338CA */
    rgba(37, 99, 235, 0.28) 55%,   /* #2563EB */
    rgba(124, 58, 237, 0.42) 80%,  /* #7C3AED */
    rgba(67, 56, 202, 0.5) 100%    /* #4338CA */
  );
  background-size: 300% 300%;
  animation: waveGradient 5s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

/* Sparkles */
.macbook-sparkle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  color: #fff;
  font-size: 10px;
  opacity: 0;
  animation: sparkle 3s ease-in-out infinite;
}
.macbook-sparkle:nth-child(1)  { top: 8%;  left: 12%; animation-delay: 0s;    font-size: 7px; }
.macbook-sparkle:nth-child(2)  { top: 18%; left: 75%; animation-delay: 0.5s;  font-size: 11px; }
.macbook-sparkle:nth-child(3)  { top: 35%; left: 22%; animation-delay: 1.0s;  font-size: 8px; }
.macbook-sparkle:nth-child(4)  { top: 55%; left: 85%; animation-delay: 1.5s;  font-size: 9px; }
.macbook-sparkle:nth-child(5)  { top: 42%; left: 50%; animation-delay: 2.0s;  font-size: 7px; }
.macbook-sparkle:nth-child(6)  { top: 75%; left: 38%; animation-delay: 0.8s;  font-size: 10px; }
.macbook-sparkle:nth-child(7)  { top: 20%; left: 40%; animation-delay: 1.3s;  font-size: 8px; }
.macbook-sparkle:nth-child(8)  { top: 65%; left: 62%; animation-delay: 0.3s;  font-size: 7px; }
.macbook-sparkle:nth-child(9)  { top: 88%; left: 18%; animation-delay: 1.8s;  font-size: 9px; }
.macbook-sparkle:nth-child(10) { top: 10%; left: 55%; animation-delay: 2.3s;  font-size: 7px; }
.macbook-sparkle:nth-child(11) { top: 50%; left: 8%;  animation-delay: 0.7s;  font-size: 11px; }
.macbook-sparkle:nth-child(12) { top: 82%; left: 78%; animation-delay: 1.6s;  font-size: 8px; }

@keyframes sparkle {
  0%   { opacity: 0;    transform: scale(0.4) rotate(0deg); }
  30%  { opacity: 0.9;  transform: scale(1.2) rotate(15deg); }
  60%  { opacity: 0.5;  transform: scale(0.9) rotate(-10deg); }
  100% { opacity: 0;    transform: scale(0.4) rotate(0deg); }
}

/* ── Base / keyboard bottom ── */
.macbook-base {
  width: 105%;
  height: 10px;
  background: linear-gradient(to bottom, #c0c0c0 0%, #a8a8a8 50%, #b4b4b4 100%);
  border-radius: 0 0 6px 6px;
  position: relative;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Hinge groove */
.macbook-hinge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 3px;
  background: #909090;
  border-radius: 0 0 4px 4px;
}

/* Foot shadow */
.macbook-base::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 10%;
  width: 80%; height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.project-name    { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.project-tagline { font-size: 1rem; color: var(--gray); margin-bottom: 0.75rem; max-width: 600px; width: 100%; line-height: 1.5; }
.project-name    { max-width: 600px; width: 100%; }
.project-tags    { max-width: 600px; width: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags    { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.01em;
}

/* Sketch positions on project slides */
.sketch-glasses-right {
  width: 80px; right: 3.5rem; bottom: 0;
  transform-origin: bottom right;
}
.sketch-cat-right {
  width: 110px; right: 3rem; bottom: 3rem;
  transform-origin: bottom center;
}
.sketch-bird-left {
  width: 80px; left: 3rem; bottom: 3rem;
  transform-origin: bottom center;
}

/* ── ABOUT SLIDE ─────────────────────────────────────────────── */
.slide-about {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
  height: 100%;
  padding: 3rem 3.5rem;
  box-sizing: border-box;
}

.about-photo-placeholder {
  flex: 0 0 36%;
  height: 56%;
  align-self: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  transform: scale(1.02);
}

.about-statement {
  flex: 1;
  padding: 0;
  z-index: 2;
}
.about-statement p {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.highlight-blue  { color: #002AF4; }
.highlight-green { color: #34A853; }

.about-editor-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.about-subtext {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: var(--gray);
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  margin-top: 1.2rem;
  max-width: 520px;
}

.about-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}

.about-btn:hover {
  background: #002AF4;
  border-color: #002AF4;
  color: #fff;
}

/* Sketch + bubbles area */
.about-sketch-area {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Hanging person — uses a wrapper so transform-origin for animation doesn't
   fight with the centering translate */
.sketch-hanging-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}
.sketch-hanging {
  width: 130px;
  display: block;
  transform-origin: top center;
}

/* Speech bubbles */
.bubble {
  position: absolute;
  background: var(--nav-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 200px;
}

.bubble-left {
  left: calc(50% - 280px);
  top: 1.5rem;
}
.bubble-left::after {
  content: '';
  position: absolute;
  right: -14px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: var(--black);
}
.bubble-left::before {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: var(--nav-bg);
  z-index: 1;
}

.bubble-right {
  left: calc(50% + 90px);
  top: 1.5rem;
}
.bubble-right::after {
  content: '';
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: var(--black);
}
.bubble-right::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: var(--nav-bg);
  z-index: 1;
}

.bubble-contact {
  left: calc(50% + 80px);
  bottom: 2.5rem;
  border-radius: 50% 50% 50% 0;
  max-width: 220px;
}
.contact-icons {
  display: flex; gap: 0.6rem;
  margin-top: 0.6rem; align-items: center;
}
.contact-icons a { color: var(--black); transition: opacity 0.15s; }
.contact-icons a:hover { opacity: 0.5; }

/* Bottom info strip */
.about-bottom {
  display: flex;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 2;
}
.about-col {
  flex: 1;
  padding: 1.2rem 1.4rem;
  border-right: 1px solid var(--border);
}
.about-col:last-child { border-right: none; }
.about-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.about-col p {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── GOODBYE SLIDE ───────────────────────────────────────────── */
.slide-goodbye {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.goodbye-left {
  flex: 1;
  position: relative;
  height: 100%;
}

.bubble-goodbye {
  position: absolute;
  left: 10%;
  top: 32%;
  font-size: 0.9rem;
  max-width: 210px;
  border-radius: 50%;
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.sketch-goodbye-person {
  width: 58%;
  max-width: 460px;
  position: absolute;
  bottom: 0; left: 0;
  transform-origin: bottom left;
}

.goodbye-card {
  width: 340px;
  min-width: 300px;
  height: 100%;
  background: var(--nav-bg);
  border-left: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.goodbye-right {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  flex-shrink: 0;
}

.goodbye-wave-wrap {
  position: relative;
  width: 60px;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.goodbye-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 200%;
  animation: waveScroll 5s linear infinite;
}

@keyframes waveScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.goodbye-logo {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  justify-content: center;
}

.goodbye-tagline {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.goodbye-back {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.25;
  transition: color 0.15s;
  text-align: left;
}
.goodbye-back:hover { color: var(--black); }

/* ── CASE STUDY PAGES ────────────────────────────────────────── */
body.case-body {
  font-family: var(--font);
}

.case-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

.case-header { padding: 3rem 0 0; }

.case-back {
  font-size: 0.8rem;
  color: var(--gray);
  display: inline-block;
  margin-bottom: 2rem;
  transition: color 0.15s;
  font-weight: 400;
}
.case-back:hover { color: #f0efed; }

.case-meta { display: flex; gap: 2.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.case-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.case-meta-item .label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray);
}
.case-meta-item .value { font-size: 0.875rem; font-weight: 400; }

.case-title {
  font-size: 1.65rem; font-weight: 700;
  line-height: 1.22; letter-spacing: -0.01em;
  margin-bottom: 2.5rem; max-width: 580px;
}

.case-hero {
  width: 100%; height: 420px;
  background: #252727;
  overflow: hidden; margin-bottom: 3rem;
}
.case-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-body {
  display: flex; flex-direction: column;
  gap: 2.5rem; padding-bottom: 5rem;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem;
}

.case-section h3 {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 0.75rem;
}
.case-section p {
  font-size: 0.95rem; color: #b0b0b0;
  line-height: 1.8; max-width: 580px;
  font-weight: 400;
}
.case-section p + p { margin-top: 0.75rem; }

.case-img-placeholder {
  width: 100%; height: 320px;
  background: #252727;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #555; letter-spacing: 0.05em;
}

.case-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0 3.5rem;
  display: flex; gap: 2rem;
}
.case-footer a { font-size: 0.85rem; color: var(--gray); transition: color 0.15s; }
.case-footer a:hover { color: #f0efed; }

/* ── Responsive ─────────────────────────────────────────────── */
/*
  Name uses clamp(3.5rem, 9vw, 10rem) so it scales automatically.
  Desc sits below the name via top: clamp() so it tracks with it.
  Breakpoints only handle layout shifts and non-name elements.
*/

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
  .ccc-motif { height: 76vh; max-width: 72vw; }
}

/* Small laptop / large tablet landscape (768px–1023px) */
@media (max-width: 1023px) {
  .ccc-motif          { height: 56vh; max-width: 78vw; }
  .exhibition-cta     { font-size: 1.2rem; right: 160px; }
  .project-thumb      { width: 420px; height: 315px; }
  .goodbye-card       { width: 260px; }
}

/* Tablet portrait (600px–767px) */
@media (max-width: 767px) {
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
  }
  .landing-desc {
    font-size: 0.9rem;
    max-width: 85vw;
  }
  .ccc-motif          { height: 60vh; }
  .exhibition-cta     { display: none; }
  .project-thumb      { width: 82vw; height: 61vw; }
  .about-statement p  { font-size: 1.3rem; }
  .about-bottom       { flex-wrap: wrap; }
  .about-col          { min-width: 50%; }
  .goodbye-card       { width: 200px; padding: 1.5rem 1.2rem; }
  .goodbye-logo       { font-size: 2.4rem; }
  .goodbye-back       { font-size: 1.1rem; }
  .case-hero          { height: 280px; }
  .case-title         { font-size: 1.3rem; }
}

/* Mobile (max 599px) */
@media (max-width: 599px) {
  .landing-header { top: 1rem; left: 1rem; right: 1rem; gap: 0.5rem; flex-direction: column; }
  .landing-desc   { font-size: 0.78rem; padding-top: 0; }
  .ccc-motif { height: 50vh; left: 1rem; max-width: calc(100vw - 2rem); }

  .nav-panel    { min-width: 180px; }
  .nav-item     { font-size: 0.9rem; padding: 0.85rem 1rem 0.7rem; }

  .project-thumb  { width: 90vw; height: 67vw; }
  .about-col      { min-width: 100%; }
  .about-statement p { font-size: 1.1rem; }
  .goodbye-card   { width: 160px; padding: 1.2rem 1rem; }
  .goodbye-logo   { font-size: 2rem; }
  .case-hero      { height: 200px; }
  .case-title     { font-size: 1.15rem; }
  .case-meta      { gap: 1.2rem; }
}

/* ── XTANDI Desktop Browser Thumbnail ───────────────────────── */
.xtandi-thumb {
  background: #e8e9ea;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Browser chrome bar */
.xb-toolbar {
  background: #dcdcdc;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #c8c8c8;
}
.xb-dots { display: flex; gap: 5px; }
.xb-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.xb-dots span:nth-child(1) { background: #ff5f56; }
.xb-dots span:nth-child(2) { background: #ffbd2e; }
.xb-dots span:nth-child(3) { background: #27c93f; }
.xb-urlbar {
  flex: 1;
  background: #f0f0f0;
  border-radius: 5px;
  font-size: 9.5px;
  color: #555;
  padding: 4px 10px;
  font-family: var(--font);
  border: 1px solid #c8c8c8;
  animation: xbUrlChange 10s infinite;
}
@keyframes xbUrlChange {
  0%, 62%  { content: 'xtandi.com'; }
  65%, 100% { content: 'xtandi.com/patient-stories'; }
}

/* Browser screen area */
.xb-screen {
  flex: 1;
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* ── Site nav ── */
.xb-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  background: #003057;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  justify-content: space-between;
}
.xb-logo {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: var(--font);
}
.xb-logo sup { font-size: 7px; vertical-align: super; }
.xb-navlinks {
  display: flex;
  gap: 16px;
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font);
}
.xb-navlinks span { cursor: pointer; }
.xb-navlinks span.xb-active { color: #fff; font-weight: 600; }

/* ── Scrolling content (home view) ── */
.xb-home {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: xbHomeFade 10s ease-in-out infinite;
}
@keyframes xbHomeFade {
  0%, 58%  { opacity: 1; }
  65%, 100% { opacity: 0; }
}

.xb-scroll-area {
  position: absolute;
  top: 38px; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}
.xb-scroll-content {
  animation: xbScroll 10s ease-in-out infinite;
}
@keyframes xbScroll {
  0%, 18%  { transform: translateY(0); }
  38%, 90% { transform: translateY(-195px); }
  98%, 100% { transform: translateY(0); }
}

/* Hero section */
.xb-hero {
  background: linear-gradient(130deg, #003057 0%, #005082 40%, #00857C 100%);
  height: 210px;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  gap: 16px;
}
.xb-hero-copy { flex: 1; }
.xb-hero-eyebrow {
  font-size: 8px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font);
}
.xb-hero-h1 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: var(--font);
}
.xb-hero-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  line-height: 1.5;
  font-family: var(--font);
  max-width: 200px;
}
.xb-hero-btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font);
}
.xb-hero-visual {
  width: 110px;
  height: 170px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.xb-hero-figure {
  width: 60px;
  height: 140px;
  background: rgba(255,255,255,0.15);
  border-radius: 30px 30px 0 0;
}

/* Patient stories section */
.xb-stories {
  background: #fafafa;
  padding: 22px 20px 24px;
  border-top: 1px solid #eee;
}
.xb-stories-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.xb-stories-h2 {
  font-size: 15px;
  font-weight: 700;
  color: #003057;
  font-family: var(--font);
}
.xb-stories-sub {
  font-size: 9px;
  color: #888;
  margin-bottom: 16px;
  font-family: var(--font);
}
.xb-story-cards {
  display: flex;
  gap: 10px;
}
.xb-story-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  cursor: pointer;
}
.xb-story-card:first-child {
  border-color: #00857C;
  box-shadow: 0 0 0 1px #00857C;
}
.xb-story-vid {
  height: 82px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xb-story-card:nth-child(1) .xb-story-vid { background: linear-gradient(135deg, #003057 0%, #00857C 100%); }
.xb-story-card:nth-child(2) .xb-story-vid { background: linear-gradient(135deg, #1a5276 0%, #148f77 100%); }
.xb-story-card:nth-child(3) .xb-story-vid { background: linear-gradient(135deg, #005082 0%, #0e6655 100%); }
.xb-play {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xb-play::after {
  content: '';
  border-left: 9px solid #003057;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  margin-left: 2px;
}
.xb-card-name {
  font-size: 9px;
  font-weight: 700;
  color: #003057;
  margin: 8px 8px 2px;
  font-family: var(--font);
}
.xb-card-desc {
  font-size: 8px;
  color: #888;
  margin: 0 8px 8px;
  font-family: var(--font);
}

/* ── Story detail view ── */
.xb-story-detail {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: xbStoryFade 10s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}
@keyframes xbStoryFade {
  0%, 60%  { opacity: 0; transform: translateX(18px); }
  68%, 84% { opacity: 1; transform: translateX(0); }
  90%, 100% { opacity: 0; transform: translateX(0); }
}

.xb-detail-nav {
  background: #003057;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 18px;
}
.xb-back {
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 5px;
}
.xb-back::before {
  content: '←';
  font-size: 11px;
  color: #00857C;
}
.xb-detail-body { padding: 18px 20px; }
.xb-detail-video {
  width: 100%;
  height: 220px;
  background: linear-gradient(130deg, #003057 0%, #005082 45%, #00857C 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.xb-detail-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
}
.xb-play-lg {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.xb-play-lg::after {
  content: '';
  border-left: 18px solid #003057;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.xb-detail-name {
  font-size: 16px;
  font-weight: 700;
  color: #003057;
  margin-bottom: 8px;
  font-family: var(--font);
}
.xb-detail-quote {
  font-size: 11px;
  color: #555;
  font-style: italic;
  line-height: 1.6;
  font-family: var(--font);
  border-left: 3px solid #00857C;
  padding-left: 12px;
}

/* ── Mouse cursor ── */
.xb-cursor {
  position: absolute;
  width: 18px;
  height: 22px;
  z-index: 20;
  pointer-events: none;
  animation: xbCursorMove 10s ease-in-out infinite;
  opacity: 0;
}
.xb-cursor::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-left: 7px solid rgba(10,10,10,0.85);
  border-right: 3px solid transparent;
  border-bottom: 12px solid transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.xb-cursor::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(0,133,124,0.55);
  border-radius: 50%;
  left: -5px; top: -3px;
  transform: scale(0);
  animation: xbRipple 10s ease-in-out infinite;
}
@keyframes xbCursorMove {
  0%, 32%  { left: 72%; top: 32%; opacity: 0; }
  40%      { left: 72%; top: 32%; opacity: 0; }
  50%      { left: 22%;  top: 73%; opacity: 1; }
  57%      { left: 22%;  top: 73%; opacity: 1; }
  63%, 100% { left: 22%;  top: 73%; opacity: 0; }
}
@keyframes xbRipple {
  0%, 54%  { transform: scale(0); opacity: 0; }
  57%      { transform: scale(0.4); opacity: 1; }
  63%      { transform: scale(1.8); opacity: 0; }
  100%     { transform: scale(1.8); opacity: 0; }
}

/* ── XTANDI Screens Thumbnail ───────────────────────────────── */
.xtandi-thumb {
  background: url('images/xtandi-bg.png') center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.xtandi-screens-img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center;
  animation: xtandiPulse 3.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes xtandiPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.07); }
}

/* ── Password modal ── */
.pw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.pw-overlay.active {
  display: flex;
}
.pw-modal {
  background: #1e1f1f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.4rem 2.8rem 2.8rem;
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  position: relative;
}
.pw-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
}
.pw-close:hover { color: #f0efed; }
.pw-lock-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  margin-bottom: 0.4rem;
  color: #f0efed;
}
.pw-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f0efed;
  margin: 0;
}
.pw-sub {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 0.8rem;
}
.pw-label {
  width: 100%;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  color: #f0efed;
  margin-bottom: 0.2rem;
}
.pw-input-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.pw-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0.7rem 2.6rem 0.7rem 1rem;
  color: #f0efed;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.pw-input:focus {
  border-color: #002AF4;
}
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}
.pw-toggle:hover { color: #f0efed; }
.pw-error {
  font-size: 0.8rem;
  color: #ff5a5a;
  margin: 0;
  display: none;
  width: 100%;
  text-align: left;
}
.pw-error.visible {
  display: block;
}
.pw-go {
  margin-top: 0.4rem;
  width: 100%;
  background: #002AF4;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.pw-go:hover {
  background: #0020cc;
}
