/* =============================================================
   Rajiv CG Photography — Editorial dark theme
   ============================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --text: #e8e6e1;
  --text-muted: #a8a39b;
  --text-faint: #8a857d;
  --divider: rgba(232, 230, 225, 0.08);
  --accent: #d4b88a;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1600px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 400ms var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: contain;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Casual image-save deterrents (not real protection — DevTools/screenshots bypass these) */
img,
video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* -- Typography ---------------------------------------------- */
.serif {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -- Layout primitives --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 10vw, 9rem);
}

/* -- Scroll progress ----------------------------------------- */
.scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

/* -- Navigation ---------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 1rem;
  transition:
    transform 300ms var(--ease),
    background-color var(--transition),
    backdrop-filter var(--transition),
    padding var(--transition);
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 0.625rem;
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.wordmark a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem clamp(1rem, 3vw, 2.5rem);
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
}

.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--text); }
}

/* Narrow phones: stack wordmark above the links so neither overflows */
@media (max-width: 540px) {
  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .nav__links {
    width: 100%;
    gap: 0.25rem 1.25rem;
  }
  .nav__links a {
    font-size: 0.72rem;
    min-height: 40px;
  }
}

/* -- Hero ---------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;        /* fallback for browsers without svh */
  height: 100svh;       /* small viewport: stable when mobile URL bar shows/hides */
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

@supports (height: 100dvh) {
  .hero { height: 100dvh; }
}

.hero__media,
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layered crossfade hero */
.hero__media[data-crossfade] .hero__media__img {
  opacity: 0;
  transition: opacity 1500ms var(--ease);
}

.hero__media[data-crossfade] .hero__media__img.is-active {
  opacity: 1;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 18%, rgba(10,10,10,0) 60%, rgba(10,10,10,0.75) 100%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 9vh, 6rem);
  z-index: 2;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  max-width: 36ch;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
}

/* On phones, the scroll hint collides with the tagline. Hide it; scrolling is intuitive on touch. */
@media (max-width: 600px) {
  .hero__scroll { display: none; }
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* -- Video hero (video.html) --------------------------------- */
.video-hero {
  background: #000;
}

.video-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -- Video cards grid (video.html) --------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

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

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

.video-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transition: filter 400ms var(--ease);
}

.video-card__duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  line-height: 1;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 3rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.video-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
  margin-top: 0.85rem;
  letter-spacing: 0.005em;
}

@media (hover: hover) and (pointer: fine) {
  .video-card:hover .video-card__thumb img { filter: brightness(1.05); }
  .video-card:hover .video-card__play { opacity: 1; }
  .video-card:hover .video-card__title { color: var(--accent); }
}

/* -- Featured (home below-fold) ------------------------------ */
.featured {
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
}

.featured__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 880px) {
  .featured__item {
    grid-template-columns: 1.4fr 1fr;
  }
  .featured__item:nth-child(even) {
    grid-template-columns: 1fr 1.4fr;
  }
  .featured__item:nth-child(even) .featured__text {
    order: -1;
  }
}

.featured__media img {
  width: 100%;
  object-fit: cover;
}

/* First featured (1.png): 1:1 square */
.featured__item:nth-child(1) .featured__media img {
  aspect-ratio: 1 / 1;
}

/* Second featured (21.png): 5:4 landscape */
.featured__item:nth-child(2) .featured__media img {
  aspect-ratio: 5 / 4;
}

/* Fourth featured (30.jpg): tall vertical composition — show in full, never crop */
.featured__item:nth-child(4) .featured__media img {
  max-height: none;
}

.featured__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 38ch;
}

.featured__caption {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* -- Section heads ------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  max-width: 60ch;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  align-items: center;
}

/* -- Buttons / links ----------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  min-height: 44px;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--divider);
  align-self: flex-start;
}

.link-arrow::after {
  content: '\2192';
  transition: transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
  }
  .link-arrow:hover::after {
    transform: translateX(4px);
  }
}

/* -- Flickr strip -------------------------------------------- */
.flickr-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

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

.flickr-strip__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
}

.flickr-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 400ms var(--ease), transform 700ms var(--ease);
}

.flickr-strip__item:focus-visible img {
  opacity: 1;
  transform: scale(1.03);
}

.flickr-strip__item:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .flickr-strip__item:hover img {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* -- Portfolio gallery (masonry + 3D lift) ------------------- */
.gallery {
  column-count: 1;
  column-gap: clamp(1rem, 2.5vw, 2rem);
  perspective: 900px;
  perspective-origin: 50% 50%;
}

@media (min-width: 720px) {
  .gallery { column-count: 2; }
}
@media (min-width: 1200px) {
  .gallery { column-count: 3; }
}

.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 clamp(1rem, 2.5vw, 2rem);
  break-inside: avoid;
  position: relative;
  background: var(--bg-elevated);
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft shadow rendered on a pseudo-element so we can animate opacity
   (GPU-cheap) instead of box-shadow (paint-heavy) */
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 45px 90px -12px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gallery__item img {
  width: 100%;
  height: auto;
  opacity: 0.95;
  transition:
    opacity 450ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Desktop: hover lifts the tile */
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover {
    transform: translateZ(50px);
    will-change: transform;
  }
  .gallery__item:hover::after { opacity: 1; }
  .gallery__item:hover img {
    opacity: 1;
    filter: brightness(1.1) contrast(1.06);
  }
}

/* Touch: lifted state controlled by IntersectionObserver in main.js */
@media (hover: none) and (pointer: coarse) {
  .gallery__item.is-lifted {
    transform: translateZ(50px);
    will-change: transform;
  }
  .gallery__item.is-lifted::after { opacity: 1; }
  .gallery__item.is-lifted img {
    opacity: 1;
    filter: brightness(1.1) contrast(1.06);
  }
}

/* Reduced motion: flat tiles, no animation, no shadow */
@media (prefers-reduced-motion: reduce) {
  .gallery__item,
  .gallery__item img,
  .gallery__item::after { transition: none; }
  .gallery__item:hover,
  .gallery__item.is-lifted { transform: none; will-change: auto; }
  .gallery__item:hover::after,
  .gallery__item.is-lifted::after { opacity: 0; }
  .gallery__item:hover img,
  .gallery__item.is-lifted img { filter: none; }
}

/* -- About page ---------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .about {
    grid-template-columns: 5fr 7fr;
  }
}

.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--text);
  padding-left: 1.25rem;
  border-left: 1px solid var(--accent);
  margin-block: 1rem;
  max-width: none;
}

.about__body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 60ch;
}

.about__meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.about__meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2rem;
  row-gap: 0.5rem;
  font-size: 1rem;
}

.about__meta dt {
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

@media (max-width: 540px) {
  .about__meta dl {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }
  .about__meta dt {
    margin-top: 0.75rem;
  }
  .about__meta dt:first-child {
    margin-top: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .about__meta dd a:hover { color: var(--accent); }
}

/* -- Contact ------------------------------------------------- */
.contact {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0.25rem;
  min-height: 44px;
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  list-style: none;
}

.contact__socials a {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 44px;
  padding: 0.5rem 0.25rem;
}

@media (hover: hover) and (pointer: fine) {
  .contact__email:hover {
    color: var(--accent);
    border-color: var(--accent);
  }
  .contact__socials a:hover { color: var(--text); }
}

/* -- Footer -------------------------------------------------- */
.footer {
  border-top: 1px solid var(--divider);
  padding-block: 2.5rem;
  margin-top: clamp(4rem, 10vw, 9rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer__inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.25rem;
}

@media (hover: hover) and (pointer: fine) {
  .footer a:hover { color: var(--text); }
}

/* -- Reveal-on-scroll --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* -- Body lock when mobile nav open -------------------------- */
body.no-scroll {
  overflow: hidden;
}

/* -- Mobile polish ------------------------------------------ */
@media (max-width: 600px) {
  :root {
    --gutter: 1.25rem;
  }

  /* Compact nav so it eats less vertical real estate on phones */
  .nav { padding-block: 0.75rem; }
  .nav.is-scrolled { padding-block: 0.5rem; }
  .wordmark { font-size: 1.25rem; }

  /* Hero: 5:4 landscape on phones */
  .hero {
    height: 80vw;        /* 5:4 landscape: width × 4/5 */
    min-height: 0;
    max-height: 80vh;
    aspect-ratio: auto;
  }

  /* Anchor the title + tagline flush against the bottom of the hero */
  .hero__content {
    padding-bottom: 1.25rem;
  }

  /* Tighter section rhythm */
  .section { padding-block: 3.5rem; }

  /* Keep portrait images from dominating the whole viewport */
  .featured__media img { max-height: 70vh; }
  .about__portrait img { max-height: 60vh; }

  /* Featured items closer together on a single column */
  .featured { gap: 3.5rem; }

  /* Centered footer reads better when items stack */
  .footer__inner {
    justify-content: center;
    text-align: center;
    gap: 0.5rem 1.25rem;
  }

  /* Faster reveals so content isn't held back on a slow phone */
  .reveal {
    transform: translateY(16px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  }

  /* Smaller margin on the masonry gallery */
  .gallery__item { margin-bottom: 0.75rem; }
}

/* Tap feedback on touch devices (no hover state to lean on) */
@media (hover: none) {
  .nav__links a:active,
  .link-arrow:active,
  .contact__email:active,
  .contact__socials a:active,
  .footer__inner a:active,
  .wordmark a:active,
  .about__meta dd a:active {
    opacity: 0.65;
    transition: opacity 80ms var(--ease);
  }
}

/* -- Hero cinematic loading sequence (home page only) ------- */
.loading-overlay {
  transition: opacity 1200ms cubic-bezier(0, 0, 0.2, 1);
}

html.is-content-revealing .nav,
html.is-content-revealing .hero__content {
  opacity: 1;
  transition: opacity 600ms cubic-bezier(0, 0, 0.2, 1);
}

/* -- Consulting page (cybersecurity) ------------------------ */
/* More business-leaning register: same palette, Inter for headlines,
   tighter type, structured borders.                                  */

.consulting-hero {
  padding-block: clamp(6rem, 14vw, 10rem) clamp(3rem, 7vw, 5rem);
}

.consulting-hero__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 22ch;
  margin-top: 0.75rem;
}

.consulting-hero__creds {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.awareness {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 10vw, 8rem);
}

.awareness__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.awareness__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 0.5rem;
  max-width: 36ch;
}

/* -- Carousel ----------------------------------------------- */
.carousel {
  position: relative;
  outline: none;
}

.carousel__viewport {
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--bg-elevated);
}

.carousel__track {
  display: flex;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  min-height: clamp(280px, 36vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel__number {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.carousel__slide-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 1rem;
}

.carousel__slide-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 60ch;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.carousel__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .carousel__btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
  }
}

.carousel__dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 0.25rem;
}

.carousel__dot {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 20px 6px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel__dot::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--divider);
  transition: background 300ms var(--ease), width 300ms var(--ease);
}

.carousel__dot--active::before {
  background: var(--accent);
  width: 28px;
}

/* Consulting CTA at the bottom of the page */
.consulting-cta {
  border-top: 1px solid var(--divider);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.consulting-cta h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}

.consulting-cta p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 1.5rem;
}

/* =============================================================
   AISMM EXECUTIVE BRIEFING LAYER
   Long-scroll port of the AI Security Maturity Model deck.
   Scoped entirely to body.is-consulting (CS.html + aismm.html only).
   Photography pages are unaffected.
   ============================================================= */

.is-consulting {
  /* AISMM palette */
  --bg-deep: #050b18;
  --bg-slate: #0a1628;
  --bg-elevated: #0f1d33;
  --line: rgba(148, 184, 230, 0.12);
  --line-strong: rgba(148, 184, 230, 0.28);
  --cyan: #00d4ff;
  --cobalt: #3b82f6;
  --purple: #8b5cf6;
  --rust: #ef4444;
  --text: #e8eef7;
  --text-soft: #b6c4d8;
  --text-muted: #6f7f96;

  /* Map AISMM tokens onto the site-wide tokens so shared selectors look right */
  --bg: #02070f;
  --bg-elevated: #0f1d33;
  --accent: #00d4ff;
  --text-faint: rgba(232, 238, 247, 0.45);
  --divider: rgba(148, 184, 230, 0.12);

  /* AISMM typography */
  --display: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Page background — layered cinematic navy */
.is-consulting {
  background:
    radial-gradient(circle at 85% 12%, rgba(0, 212, 255, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 10% 88%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #02070f 0%, #050b18 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* Intelligence grid overlay (subtle, masked toward edges) */
.is-consulting::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, #000 30%, transparent 100%);
}

/* Ambient particle field */
.is-consulting .intel-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.is-consulting .intel-particles span {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
  animation: intel-drift 22s linear infinite;
}

.is-consulting .intel-particles span:nth-child(1) { left:  7%; animation-duration: 24s; animation-delay:  0s; }
.is-consulting .intel-particles span:nth-child(2) { left: 19%; animation-duration: 18s; animation-delay:  4s; }
.is-consulting .intel-particles span:nth-child(3) { left: 33%; animation-duration: 26s; animation-delay:  9s; }
.is-consulting .intel-particles span:nth-child(4) { left: 48%; animation-duration: 21s; animation-delay: 14s; }
.is-consulting .intel-particles span:nth-child(5) { left: 64%; animation-duration: 28s; animation-delay:  2s; }
.is-consulting .intel-particles span:nth-child(6) { left: 78%; animation-duration: 20s; animation-delay:  7s; }
.is-consulting .intel-particles span:nth-child(7) { left: 91%; animation-duration: 25s; animation-delay: 11s; }

@keyframes intel-drift {
  0%   { transform: translateY(0);       opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translateY(-110vh);  opacity: 0; }
}

/* Lift content above ambient layers */
.is-consulting main,
.is-consulting .footer { position: relative; z-index: 1; }

/* Re-tone the photography-era nav glass for the navy palette */
.is-consulting .nav.is-scrolled {
  background: rgba(2, 7, 15, 0.7);
}

/* -- Executive eyebrow with status dot ---------------------- */
.is-consulting .exec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.is-consulting .exec-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.16);
  animation: exec-pulse 2.6s ease-in-out infinite;
}

@keyframes exec-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.16); opacity: 1; }
  50%      { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.04); opacity: 0.55; }
}

/* =============================================================
   AISMM COVER (page hero — replaces consulting-hero)
   ============================================================= */
.aismm-cover {
  position: relative;
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.aismm-cover__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 184, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 230, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

.aismm-cover__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .aismm-cover__inner { grid-template-columns: 1.6fr 1fr; }
}

.aismm-cover__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin-top: 1rem;
}

.aismm-cover__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
}

.aismm-cover__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 300;
  max-width: 60ch;
}

.aismm-cover__meta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.aismm-cover__meta .pipe { color: var(--text-muted); }

.aismm-cover__illus {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1;
}

.aismm-cover__illus svg { width: 100%; height: auto; display: block; }

/* =============================================================
   AISMM SECTIONS — common card pattern
   ============================================================= */
.aismm-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.aismm-card {
  background: var(--bg-slate);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.aismm-header-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: flex-start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 720px) {
  .aismm-header-row { grid-template-columns: 1fr auto; }
}

.aismm-header-illus {
  width: clamp(140px, 18vw, 200px);
  aspect-ratio: 1;
  justify-self: center;
}

.aismm-header-illus svg { width: 100%; height: auto; display: block; }

.h-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-top: 0.75rem;
}

.h-section--small {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.aismm-closing {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.aismm-closing b { color: var(--cyan); font-weight: 700; }
.aismm-closing em {
  display: block;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85em;
  margin-top: 0.75rem;
}

/* -- Slide 02 — Timeline strip ------------------------------ */
.timeline-strip {
  position: relative;
  padding-left: 8px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.timeline-strip::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--rust));
}

.timeline-event {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .timeline-event {
    grid-template-columns: 14px 160px 1fr;
    gap: 1.5rem;
  }
}

.timeline-event .node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 6px;
  margin-left: -11px;
  box-shadow: 0 0 12px var(--cyan);
}

.timeline-event--late .node {
  background: var(--rust);
  box-shadow: 0 0 14px var(--rust);
}

.timeline-event .label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 0.25rem;
}

.timeline-event--late .label { color: var(--rust); }

.timeline-event .desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

/* -- Slide 03 — Two-column compare + anchor question -------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.compare-col__head {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.compare-col__head--yes { color: var(--cyan); }
.compare-col__head--no  { color: var(--text-muted); }

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.625rem 0;
  font-size: 1rem;
  line-height: 1.45;
}

.compare-col--yes .compare-item { color: var(--text); }
.compare-col--no  .compare-item { color: var(--text-muted); }
.compare-col--no  .compare-item .text {
  text-decoration: line-through;
  text-decoration-color: rgba(148, 184, 230, 0.25);
}

.compare-item .glyph {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.compare-col--yes .glyph { color: var(--cyan); }
.compare-col--no  .glyph { color: var(--text-muted); }

.anchor-question {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(to right, rgba(0, 212, 255, 0.08), transparent);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.01em;
}

/* -- Slide 04 — Structure grid (domains + sidebar) ---------- */
.structure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .structure-grid {
    grid-template-columns: 1fr 280px;
    gap: 1.75rem;
  }
}

.domains { display: flex; flex-direction: column; gap: 0.875rem; }

.domain {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}

.domain--cobalt { border-left-color: var(--cobalt); }
.domain--purple { border-left-color: var(--purple); }

.domain-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.875rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.domain-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.domain-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

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

.cat {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.625rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  line-height: 1.25;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.structure-sidebar {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.sidebar-item {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-item:last-of-type { border-bottom: none; }

.sidebar-item small {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.summary-pill {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.6;
}

.summary-pill b { color: var(--cyan); font-weight: 700; font-size: 1.1rem; }

/* -- Slide 05 — Staircase + target band --------------------- */
.staircase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .staircase { grid-template-columns: repeat(5, 1fr); }
}

.step {
  padding: 1.25rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--text-muted);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.step--target {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.10), rgba(0, 212, 255, 0.02));
  border-color: rgba(0, 212, 255, 0.4);
  border-bottom-color: var(--cyan);
}

.step .num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  letter-spacing: -0.04em;
}

.step--target .num { color: var(--cyan); }

.step .lvl-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-top: 0.625rem;
  letter-spacing: -0.005em;
}

.step .lvl-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
  margin-top: 0.625rem;
}

.target-band {
  margin: 1rem 0 1.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px dashed rgba(0, 212, 255, 0.4);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
}

/* -- Slide 06 — Capability grid ----------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.cap {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}

.cap-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
  flex-shrink: 0;
}

.cap-text { flex: 1; }

.cap-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.cap-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 0.25rem;
}

.cap-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-soft);
}

/* -- Slide 07 — Gap grid + key insight ---------------------- */
.gap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.gap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--rust);
  border-radius: 0 3px 3px 0;
}

.gap .id {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rust);
  background: rgba(239, 68, 68, 0.14);
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.gap .risk-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.005em;
}

.gap .risk-where {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.key-insight {
  padding: clamp(1.5rem, 3vw, 1.875rem);
  background: linear-gradient(to right, rgba(239, 68, 68, 0.10), transparent);
  border-left: 3px solid var(--rust);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.3;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.key-insight b { color: var(--rust); }

/* -- Slide 08 — Pull quote + governance network + pillars --- */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.pull-quote em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 400;
}

.gov-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .gov-frame { grid-template-columns: minmax(0, 440px) 1fr; }
}

.gov-network {
  max-width: 440px;
  width: 100%;
  aspect-ratio: 1;
  justify-self: center;
}

.gov-network svg { width: 100%; height: auto; display: block; }

.gov-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.gov-pillars__lead {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.375rem;
}

.pillar {
  padding: 0.875rem 1.125rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 3px;
}

.pillar .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.005em;
}

.pillar .desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.coda {
  padding-top: clamp(1.5rem, 3vw, 1.75rem);
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.4;
}

.coda b { color: #fff; font-style: normal; font-weight: 700; }

/* -- Slide 09 — Takeaways grid ------------------------------ */
.takeaways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-content: start;
}

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

.takeaway {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.takeaway:nth-child(1) { border-top: none; padding-top: 0; }

@media (min-width: 720px) {
  .takeaway:nth-child(2) { border-top: none; padding-top: 0; }
}

.takeaway .numeral {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--cyan);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  min-width: 44px;
}

.takeaway .body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
  padding-top: 0.25rem;
}

.takeaway .body b {
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
}

/* -- Slide 10 — Close --------------------------------------- */
.close-stage {
  position: relative;
  text-align: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.close-illus {
  width: 180px;
  height: 180px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.close-illus svg { width: 100%; height: auto; display: block; }

.close-line-1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.025em;
  font-style: italic;
}

.close-line-2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.03em;
  margin-top: 0.375rem;
}

.close-descender {
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 300;
}

.close-question {
  display: inline-block;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1rem 2rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: #fff;
  background: rgba(0, 212, 255, 0.05);
}

.close-tags {
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  max-width: 800px;
}

.close-tags span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.close-tags span.hot { color: var(--cyan); }

/* -- CTA at the end of the page ----------------------------- */
.is-consulting .consulting-cta {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.is-consulting .consulting-cta h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-top: 1rem;
}

.is-consulting .consulting-cta p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 1rem 0 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .is-consulting .link-arrow:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  }
}

/* =============================================================
   INTELLIGENCE HUB — landing page (CS.html)
   ============================================================= */

.is-consulting .hub-hero {
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(2rem, 4vw, 3rem);
}

.is-consulting .hub-hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-top: 0.75rem;
  max-width: 22ch;
}

.is-consulting .hub-hero__lede {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 300;
  margin-top: 1.25rem;
  max-width: 60ch;
}

.is-consulting .hub-hero__creds {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: inline-block;
}

/* Briefings grid */
.briefings-section {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.briefings-section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.briefings-section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin-top: 0.75rem;
}

.briefings-section__count {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.briefings-section__count b { color: var(--cyan); font-weight: 700; }

.briefing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

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

/* Briefing card — premium intelligence dossier */
.briefing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 1.875rem);
  background: rgba(14, 27, 46, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.04),
    0 18px 60px -12px rgba(2, 7, 15, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 80px rgba(0, 212, 255, 0.025);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  isolation: isolate;
}

/* Glow-sweep on hover (pseudo, cheap GPU) */
.briefing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(0, 212, 255, 0.10) 50%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .briefing-card--available:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.42);
    box-shadow:
      0 0 0 1px rgba(0, 212, 255, 0.22),
      0 32px 80px -10px rgba(2, 7, 15, 0.85),
      0 0 70px rgba(0, 212, 255, 0.18);
  }
  .briefing-card--available:hover::after {
    transform: translateX(110%);
  }
  .briefing-card--available:hover .briefing-card__cta {
    color: #fff;
    gap: 0.7rem;
  }
}

.briefing-card__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.briefing-card__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.briefing-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.875rem;
}

.briefing-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  flex: 1;
}

.briefing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.briefing-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.briefing-card__cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: gap 360ms cubic-bezier(0.22, 1, 0.36, 1), color 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Severity indicator */
.severity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.severity::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.severity--critical { color: var(--rust); }
.severity--elevated { color: var(--cyan); }
.severity--moderate { color: #d4a14a; }
.severity--routine  { color: var(--text-muted); }

/* In-production placeholder card */
.briefing-card--in-production {
  opacity: 0.5;
  cursor: default;
}

.briefing-card--in-production .briefing-card__cta {
  color: var(--text-muted);
}

.briefing-card--in-production:hover {
  transform: none;
}

/* =============================================================
   BRIEFING PAGE — header bar + return button
   ============================================================= */

.briefing-page-header {
  position: relative;
  padding: clamp(6rem, 11vw, 8rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}

.briefing-page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.briefing-page-header__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.briefing-page-header__id {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.briefing-page-header__id::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.briefing-page-header__back {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 320ms var(--ease), gap 320ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .briefing-page-header__back:hover {
    color: var(--cyan);
    gap: 0.75rem;
  }
}

.briefing-page-header__meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Return to hub at bottom of briefing */
.briefing-return {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  border-top: 1px solid var(--line);
}

.briefing-return__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 3px;
  background: rgba(14, 27, 46, 0.4);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 320ms var(--ease),
    border-color 320ms var(--ease),
    box-shadow 320ms var(--ease),
    gap 320ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .briefing-return__link:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
    gap: 0.85rem;
  }
}

/* Intelligence divider (kept for optional inter-section use) */
.intel-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.35) 50%,
    transparent
  );
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
  opacity: 0.55;
}

/* =============================================================
   CDR briefing — data visualization components (cdr2026.html)
   Scoped to .is-consulting; cdr- prefix avoids any collision
   with photography + aismm classes. Charts animate on scroll.
   ============================================================= */
.is-consulting {
  --cdr-amber: #f5b544;
  --cdr-green: #5dd39e;
}

/* Optional cyan accent inside section headers (aismm headers don't use <em>) */
.h-section em {
  color: var(--cyan);
  font-style: italic;
  font-weight: inherit;
}

/* Intro paragraph under an insight header */
.cdr-lede {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 62ch;
}

/* Hero stat */
.cdr-bigstat {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(3.5rem, 9vw, 6rem);
  color: var(--cyan);
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 1rem;
}
.cdr-bigstat--amber { color: var(--cdr-amber); }
.cdr-substat {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 58ch;
}

/* Mono chart caption */
.cdr-chart-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cdr-chartwrap { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }

/* Vertical bar chart */
.cdr-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5%;
  height: clamp(170px, 26vw, 250px);
}
.cdr-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.cdr-bar {
  width: 64%;
  background: rgba(0, 212, 255, 0.32);
  border-radius: 3px 3px 0 0;
  height: 0;
  transition: height 1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cdr-bar.is-hot { background: var(--cdr-amber); }
.cdr-bar.is-pos { background: var(--cdr-green); }
.cdr-bar-yr { font-family: var(--mono); font-size: 0.55rem; color: var(--text-muted); margin-top: 0.5rem; }
.cdr-bar-val {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  opacity: 0;
  transition: opacity 0.4s 0.8s;
}
.cdr-bar-val.show { opacity: 1; }

/* Horizontal ranked bars */
.cdr-listrow { margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.cdr-listrow:last-child { margin-bottom: 0; }
.cdr-listrow .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.cdr-listrow .name { font-size: clamp(0.85rem, 1.4vw, 0.95rem); font-weight: 500; color: var(--text); }
.cdr-listrow .pct { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; color: var(--cyan); }
.cdr-hbar-track {
  height: 10px;
  background: rgba(148, 184, 230, 0.12);
  border-radius: 5px;
  overflow: hidden;
}
.cdr-hbar-track + .cdr-hbar-track { margin-top: 5px; }
.cdr-hbar {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: var(--cyan);
  transition: width 1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cdr-hbar.is-hot { background: var(--cdr-amber); }
.cdr-hbar-split {
  display: flex;
  height: 100%;
  width: 0;
  border-radius: 5px;
  overflow: hidden;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cdr-hbar-split .a { background: var(--cyan); height: 100%; }
.cdr-hbar-split .b { background: rgba(0, 212, 255, 0.4); height: 100%; }

/* Stat cards */
.cdr-statrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 600px) { .cdr-statrow { grid-template-columns: 1fr 1fr; } }
.cdr-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.cdr-stat__label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.cdr-stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.cdr-stat__delta { font-size: 0.78rem; font-weight: 600; margin-top: 0.75rem; }

/* Inline figure: big number beside supporting text */
.cdr-figure {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.cdr-figure__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--cdr-amber);
  flex-shrink: 0;
}
.cdr-figure__text { font-size: clamp(0.95rem, 1.6vw, 1.08rem); line-height: 1.5; color: var(--text-soft); }
.cdr-figure__text small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

/* Color utilities for deltas/labels */
.t-cyan { color: var(--cyan); }
.t-amber { color: var(--cdr-amber); }
.t-green { color: var(--cdr-green); }
.t-coral { color: var(--rust); }

/* Donut */
.cdr-donutwrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.cdr-donut { width: clamp(160px, 22vw, 210px); aspect-ratio: 1; flex-shrink: 0; position: relative; }
.cdr-donut svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.cdr-donut__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cdr-donut__num b { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; color: #fff; }
.cdr-donut__num span {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 130px;
  margin-top: 0.35rem;
}
.cdr-donut circle.track { stroke: var(--line-strong); }
.cdr-donut circle.val { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset 1.3s cubic-bezier(0.2, 0.7, 0.3, 1); }
.cdr-donut__aside { flex: 1; min-width: 240px; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.55; color: var(--text-soft); }

/* Stacked timeline */
.cdr-stack { display: flex; height: clamp(64px, 9vw, 84px); width: 100%; border-radius: 6px; overflow: hidden; }
.cdr-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cdr-seglabels { display: flex; margin-top: 0.6rem; }
.cdr-seglabel { text-align: center; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.08em; color: var(--text-muted); }

/* Legend */
.cdr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin: 1.25rem 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.cdr-legend .sw { display: inline-block; width: 13px; height: 13px; border-radius: 2px; margin-right: 0.5rem; vertical-align: middle; }

/* Note + quote */
.cdr-note {
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-left: 3px solid var(--cyan);
  padding-left: 1.1rem;
}
.cdr-note b { font-style: normal; color: var(--cdr-amber); }
.cdr-quote {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
.cdr-quote__label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.cdr-quote__body {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  color: #fff;
  margin-top: 0.9rem;
}
.cdr-quote__body .cyan { color: var(--cyan); font-style: normal; font-weight: 700; }
.cdr-quote__attr { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--cyan); margin-top: 0.9rem; }

/* -- Page transitions --------------------------------------- */
.page-fade {
  animation: page-fade-in 300ms var(--ease) both;
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Fade-out on navigation (swipe or menu click) */
body {
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-leaving {
  opacity: 0;
}

/* -- Edge / top-band swipe navigation hint ------------------- */
.swipe-hint {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 48px;
  opacity: 0;
  z-index: 70;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.swipe-hint.is-dragging {
  transition: none;
}

.swipe-hint.from-left {
  left: 0;
  right: auto;
  background: linear-gradient(to right, rgba(212, 184, 138, 0.5), transparent);
}

.swipe-hint.from-right {
  left: auto;
  right: 0;
  background: linear-gradient(to left, rgba(212, 184, 138, 0.5), transparent);
}
