:root {
  --navy-950: #0a1b32;
  --navy-900: #0e2644;
  --navy-800: #153862;
  --blue-700: #1b4f88;
  --blue-600: #1f5ea1;
  --aqua-400: #6fd3e8;
  --aqua-300: #9de5f3;
  --aqua-100: #e8f6fb;
  --aqua-50: #f3fafd;
  --crimson: #dc2638;
  --crimson-soft: #ff5b6b;
  --surface: #ffffff;
  --paper: #f6f9fc;
  --ink: #112238;
  --ink-secondary: #2e4259;
  --muted: #4b6179;
  --line: #ccd8e4;
  --line-strong: #8fa6bc;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 4px 16px rgba(14, 38, 68, 0.06);
  --shadow-md: 0 16px 40px rgba(14, 38, 68, 0.11);
  --shadow-lg: 0 28px 72px rgba(10, 27, 50, 0.22);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  color-scheme: light;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  line-height: 1.65;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:is(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--surface);
  color: var(--navy-900);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy-900);
  z-index: 50;
}

.skip-link:focus {
  top: 1rem;
}

.section-wrap {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-block-size: 4.75rem;
  background: rgba(14, 38, 68, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
}

.header-inner {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.09em;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--aqua-400);
  border-radius: 50%;
  position: relative;
  flex: none;
  display: block;
}

.brand-mark span {
  position: absolute;
  height: 2.5px;
  width: 1.2rem;
  background: var(--aqua-400);
  border-radius: 2px;
  transform: rotate(-32deg);
  left: 0.35rem;
}

.brand-mark span:nth-child(1) {
  top: 0.55rem;
}

.brand-mark span:nth-child(2) {
  top: 0.92rem;
  width: 0.95rem;
}

.brand-mark span:nth-child(3) {
  top: 1.28rem;
  width: 0.68rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d8eaf6;
}

.main-nav a {
  padding-block: 0.25rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 229, 243, 0.55);
  background: rgba(111, 211, 232, 0.12);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: rgba(111, 211, 232, 0.24);
  border-color: var(--aqua-300);
  transform: translateY(-1px);
}

.cta-spark {
  color: var(--aqua-400);
}

/* ===== Eyebrows & Headings ===== */
.eyebrow,
.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.eyebrow.light,
.section-kicker.light {
  color: var(--aqua-300);
}

.eyebrow-line {
  width: 1.5rem;
  height: 2px;
  background: var(--crimson-soft);
  flex: none;
}

.tiny-square {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--crimson);
  border-radius: 2px;
  flex: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.accent-dot {
  color: var(--crimson-soft);
}

.works .accent-dot {
  color: var(--crimson);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 75% 65% at 80% 18%, rgba(74, 179, 213, 0.28), transparent 62%),
    radial-gradient(ellipse 50% 60% at 12% 85%, rgba(31, 94, 161, 0.36), transparent 65%),
    linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 48%, #163d6b 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-grid {
  padding-block: clamp(3.25rem, 2rem + 3.5vw, 5.5rem) clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.45rem + 3.2vw, 4.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 1.35rem 0 1.5rem;
}

.hero h1 em,
.intro h2 em,
.ask-copy h2 em,
.section-heading h2 em,
.group-copy h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--aqua-400);
}

.intro h2 em {
  color: var(--aqua-300);
}

.ask-copy h2 em,
.section-heading h2 em {
  color: var(--blue-700);
}

.hero-lead {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
  line-height: 1.75;
  color: #dcebf6;
  max-width: 54ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(5, 16, 32, 0.22);
}

.button-primary:hover {
  background: var(--aqua-100);
  transform: translateY(-2px);
}

.button-ghost {
  border: 1.5px solid rgba(157, 229, 243, 0.55);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.button-ghost:hover {
  background: rgba(111, 211, 232, 0.18);
  border-color: var(--aqua-300);
  transform: translateY(-2px);
}

/* Hero Editorial Photo Showcase */
.hero-showcase {
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  box-shadow: var(--shadow-lg);
}

.hero-photo-main {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  background: rgba(10, 27, 50, 0.84);
  backdrop-filter: blur(8px);
  color: var(--aqua-300);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 229, 243, 0.35);
}

.hero-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-photo-sub {
  position: relative;
  border-radius: 0.65rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero-photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-sub::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 27, 50, 0.86) 100%);
}

.hero-photo-sub span {
  position: absolute;
  left: 0.7rem;
  bottom: 0.5rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f0f8fc;
}

.hero-caption {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #bfd8ea;
  margin-top: 0.75rem;
  padding-inline: 0.25rem;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #cde3f2;
}

.hero-media-list strong {
  color: var(--aqua-300);
  margin-right: 0.35rem;
}

.hero-scroll {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.hero-scroll:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Intro / Story Section ===== */
.intro {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  padding-block: clamp(4.5rem, 3rem + 4vw, 7rem);
  background:
    linear-gradient(105deg, rgba(10, 27, 50, 0.94) 0%, rgba(16, 46, 80, 0.88) 54%, rgba(15, 47, 74, 0.74) 100%),
    url('assets/andry-cerita-01.jpg') center 45% / cover no-repeat;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
  margin-top: 1.25rem;
}

.intro h2,
.ask-copy h2,
.section-heading h2,
.group-copy h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
  margin: 0.75rem 0 1.25rem;
}

.intro-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
  max-width: 58ch;
}

.intro-muted {
  color: #cfe3f0;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(10, 27, 50, 0.45);
  border: 1px solid rgba(157, 229, 243, 0.22);
}

.stat-item dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cfe4f2;
  letter-spacing: 0.02em;
}

.stat-item dd {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--aqua-300);
  line-height: 1.15;
}

.stat-item dd span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.intro-credit {
  text-align: right;
  font-size: 0.75rem;
  color: #c8dfee;
  margin: 1.25rem 0 0;
}

/* ===== Chatbot Section ===== */
.ask-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(111, 211, 232, 0.22), transparent 50%),
    linear-gradient(180deg, var(--aqua-50) 0%, #eaf5fb 100%);
  padding-block: clamp(4.25rem, 2.75rem + 3.5vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 1.2rem + 3vw, 4.5rem);
  align-items: center;
}

.ask-lead {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 50ch;
  margin: 0 0 1.5rem;
}

.ask-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.ask-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.ask-highlights span {
  color: var(--blue-700);
  font-weight: 800;
  flex: none;
}

.chat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #f4fafd 100%);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: var(--aqua-300);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex: none;
}

.chat-identity strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.chat-identity small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0e5a3b;
  background: #e4f7ee;
  border: 1px solid #8ad4b3;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.chat-status.is-offline {
  color: #7c4706;
  background: #fef4e2;
  border-color: #e4ba75;
}

.status-dot {
  font-size: 0.65rem;
}

.chat-reset {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-reset:hover {
  background: var(--aqua-100);
  color: var(--navy-900);
}

.chat-messages {
  padding: 1.25rem;
  min-block-size: 16rem;
  max-block-size: 24rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: #fafdff;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.9rem 1.05rem;
  font-size: 0.9125rem;
  line-height: 1.65;
  border-radius: 1rem;
}

.chat-bubble p {
  margin: 0 0 0.55rem;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble ul {
  margin: 0.45rem 0 0.55rem;
  padding-left: 1.2rem;
}

.chat-bubble li {
  margin-bottom: 0.3rem;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(14, 38, 68, 0.04);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--navy-900);
  color: #ffffff;
  border-top-right-radius: 0.25rem;
}

.chat-bubble.error {
  background: #fff4f5;
  border-color: #f1a7ae;
  color: #8b1422;
}

.chat-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
}

.source-pill {
  border: 1px solid var(--line-strong);
  background: var(--aqua-50);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.source-pill:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
  display: inline-block;
  animation: pulseDot 1.1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.18s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes pulseDot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chip {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: var(--aqua-100);
  border-color: var(--blue-600);
  color: var(--navy-900);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: #ffffff;
}

.chat-form input::placeholder {
  color: var(--muted);
}

.chat-form input:focus {
  border-color: var(--blue-600);
}

.chat-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.72rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.chat-form button:hover:not(:disabled) {
  background: var(--blue-600);
  transform: translateY(-1px);
}

.chat-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ===== Works Section ===== */
.works {
  padding-block: clamp(4.5rem, 3rem + 3.5vw, 6.75rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-subtitle {
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.author-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2.25rem 0 2.5rem;
}

.author-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.author-index a strong {
  font-size: 0.72rem;
  color: var(--blue-700);
}

.author-index a span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.author-index a:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.author-index a:hover strong,
.author-index a:hover span {
  color: var(--aqua-300);
}

.author-block {
  padding-block: clamp(2.75rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.author-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-number {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--blue-700);
}

.author-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-pill,
.format-pill {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.36rem 0.8rem;
}

.media-pill {
  background: var(--aqua-100);
  color: var(--navy-900);
  border: 1px solid #b5dce9;
}

.format-pill {
  border: 1px solid var(--line-strong);
  color: var(--blue-700);
  background: #ffffff;
}

.author-main {
  display: grid;
  grid-template-columns: minmax(0, 0.37fr) minmax(0, 0.63fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
  margin-top: 1.75rem;
}

.author-role {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--blue-700);
  margin: 0 0 0.85rem;
}

.author-info h3 {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.15rem;
  color: var(--ink);
}

.author-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38ch;
  margin: 0;
}

/* Work Cards */
.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.work-card {
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.work-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.card-media img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .card-media img {
  transform: scale(1.03);
}

.epaper-card .card-media img {
  object-fit: contain;
  background: #edf3f8;
  padding: 0.35rem;
}

.ratna-photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9f1f7;
}

.ratna-photo img,
.ratna-reader-photo img {
  position: absolute;
  left: -3.5%;
  top: -8%;
  width: 107%;
  height: auto;
  max-height: none;
  object-fit: initial;
}

.ratna-reader-photo {
  border-radius: var(--radius-sm);
  aspect-ratio: 1122 / 495;
  margin-block: 1.25rem;
}

.card-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.work-type {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-700);
}

.work-card strong {
  font-size: 1.03rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}

.work-excerpt {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-open {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--blue-700);
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.video-card {
  cursor: default;
}

.video-card:hover {
  transform: none;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--navy-950);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Group Section ===== */
.group-section {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #ffffff;
  padding-block: clamp(4.5rem, 3rem + 3.5vw, 6.75rem);
}

.group-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1.2rem + 3vw, 4.5rem);
  align-items: center;
}

.group-copy > p:not(.eyebrow) {
  color: #d4e5f2;
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 48ch;
  margin: 0 0 1rem;
}

.group-copy .group-note {
  font-size: 0.875rem;
  color: var(--aqua-300);
}

.group-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.group-video-real {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #051122;
}

.group-video-real video {
  width: 100%;
  display: block;
  max-height: 360px;
}

.group-photo {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  cursor: pointer;
  background: var(--navy-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.group-photo:hover {
  transform: translateY(-2px);
  border-color: var(--aqua-400);
}

.group-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* ===== Reader Modal Dialog (Modern Web Guidance compliant) ===== */
.reader {
  width: min(920px, calc(100% - 1.75rem));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

/* MANDATORY: prevent background page scrolling when modal is open */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(10, 27, 50, 0.76);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.reader-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.reader-topbar-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.reader-close {
  border: 1.5px solid var(--navy-900);
  background: var(--navy-900);
  color: #ffffff;
  border-radius: 50%;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.reader-close:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

.reader-scroll {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem) clamp(1.25rem, 1rem + 3vw, 3.25rem);
}

.reader h1 {
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0.65rem 0 1rem;
  color: var(--ink);
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.reader-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.reader-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--aqua-100);
  border: 1px solid #a9d5e6;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.84rem;
}

.reader-links a:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.reader-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-block: 1rem;
}

.reader-source-note {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper);
  border-left: 3px solid var(--blue-600);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0 1.5rem;
}

.reader-body {
  max-width: 62ch;
  margin: 1.75rem auto 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
}

.reader-body p {
  margin: 0 0 1.35em;
}

.reader-body p:first-child {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--navy-900);
}

.reader-body h2 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 2rem 0 0.75rem;
  color: var(--navy-900);
}

.reader-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.reader-caption-box {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.reader-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.75rem;
}

.reader-gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.reader-gallery img {
  width: 100%;
  height: auto;
}

.reader-gallery figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.reader-gallery figcaption strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.35rem;
}

/* ===== Footer ===== */
.site-footer {
  background: #071426;
  color: #bfd4e5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  font-size: 0.84rem;
}

.footer-brand {
  color: #ffffff;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 700;
}

.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid,
  .intro-grid,
  .ask-grid,
  .group-grid,
  .author-main {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    gap: 1.25rem;
  }
}

@media (max-width: 680px) {
  .section-wrap,
  .header-inner {
    width: calc(100% - 2rem);
  }

  .main-nav {
    display: none;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

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

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .chat-form button span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .site-header,
  .hero-showcase,
  .stat-item,
  .chat-card,
  .chat-bubble,
  .work-card,
  .reader,
  .button,
  .header-cta,
  .chip,
  .source-pill,
  .media-pill,
  .format-pill {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .chat-bubble.user,
  .button-primary,
  .chat-form button {
    border: 2px solid ButtonText;
  }

  .eyebrow-line,
  .tiny-square {
    background: CanvasText;
  }
}
