/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --ink: #0F0F0F;
  --ink-2: #3A3A3A;
  --muted: #7A7266;
  --line: #E8E1D2;
  --accent: #C4361E;
  --accent-ink: #8B1B0A;
  --soft: #F2EDE1;
  --shadow-sm: 0 1px 2px rgba(40, 30, 15, 0.04), 0 2px 8px rgba(40, 30, 15, 0.04);
  --shadow-md: 0 4px 14px rgba(40, 30, 15, 0.08), 0 2px 4px rgba(40, 30, 15, 0.04);
  --radius: 6px;
  --radius-lg: 12px;
  --serif: 'Fraunces', 'New York', Georgia, 'Times New Roman', serif;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark .dot { color: var(--accent); }
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-link {
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.menu-btn {
  display: none;
  width: 28px; height: 28px;
  flex-direction: column; justify-content: center; gap: 4px;
}
.menu-btn span {
  display: block; height: 2px; width: 22px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 24px 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
}
.hero-feature {
  display: block;
  color: inherit;
  transition: transform 0.3s ease;
}
.hero-feature:hover .hero-title { color: var(--accent); }
.hero-feature:hover .hero-image img { transform: scale(1.02); }
.hero-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
  margin-bottom: 24px;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 4px;
}
.tag-sm {
  position: static;
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  transition: color 0.2s;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}
.hero-excerpt {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 20px;
}
.byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.dot-sep { color: var(--line); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.side-card {
  display: block;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s;
}
.hero-side .side-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.side-card:hover h3 { color: var(--accent); }
.side-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 8px;
  transition: color 0.2s;
}
.side-card .meta {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 24px;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.2s;
  display: inline-block;
}
.section-more:hover { transform: translateX(2px); }

/* ---------- Grid of cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }

.card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.25s ease;
}
.card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
  margin-bottom: 20px;
}
.card-image-sm { aspect-ratio: 3 / 2; margin-bottom: 16px; }
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img { transform: scale(1.04); }
.card:hover .card-title a { color: var(--accent); }

.card-body { display: flex; flex-direction: column; }
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.card-title a { color: var(--ink); transition: color 0.2s; }
.card-excerpt {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.card-flat .card-title { font-size: 19px; }

/* ---------- Newsletter ---------- */
.newsletter {
  margin: 72px 0 0;
  background: linear-gradient(135deg, #1C1815 0%, #2A211C 100%);
  color: #F5EDDE;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px;
}
.newsletter h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.newsletter p {
  color: #C9BFA8;
  margin: 0;
  max-width: 48ch;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.newsletter-form button:hover {
  background: #A82C16;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14110E;
  color: #A8A094;
  padding: 64px 0 24px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-mark { color: #F5EDDE; }
.footer-brand p {
  margin: 8px 0 0;
  color: #756D60;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  color: #F5EDDE;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  padding: 6px 0;
  color: #A8A094;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #6A6357;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Article page ---------- */
.article-top {
  padding: 56px 0 32px;
}
.article-top .wrap { max-width: 780px; }
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.article-breadcrumb:hover { color: var(--accent); }

.article-category {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.article-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}
.article-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 32px;
  max-width: 62ch;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 100%;
  background: linear-gradient(135deg, #E8C4BA, #C4361E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}
.author-name { color: var(--ink); font-weight: 500; }
.article-meta .dot-sep { color: var(--line); }

.article-hero {
  margin: 32px 0 48px;
}
.article-hero .wrap { max-width: 1100px; }
.article-hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
  max-width: 780px;
  margin-left: auto; margin-right: auto;
  padding: 0 24px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.article-body p {
  font-size: 19px;
  line-height: 1.65;
  color: #1A1713;
  margin: 0 0 24px;
}
.article-body p.lede {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.article-body p.lede::first-letter {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  margin: 8px 10px 0 0;
  color: var(--accent);
}

/* Listicle items */
.listicle-item {
  margin: 56px 0;
  scroll-margin-top: 100px;
}
.listicle-item:first-of-type { margin-top: 40px; }
.list-number {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.list-number .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-feature-settings: 'lnum';
}
.list-number .num-slash {
  color: var(--line);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
}
.list-number .num-total {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}
.list-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.list-image {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 16 / 10;
}
.list-image img { width: 100%; height: 100%; object-fit: cover; }
.image-credit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

.pullquote {
  margin: 40px -20px;
  padding: 24px 32px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px auto;
  max-width: 80px;
}
.divider-ornament {
  text-align: center;
  margin: 48px 0;
  color: var(--muted);
  letter-spacing: 1em;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.share-bar strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.share-btn {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.related {
  background: var(--soft);
  padding: 64px 24px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid, .grid-3, .related-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .pullquote { margin: 32px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 32px 20px 48px; }
  .wrap { padding: 0 20px; }
  .section { padding: 40px 20px; }
  .grid, .grid-3, .related-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 24px; }
  .article-body { padding: 0 20px 48px; }
  .article-body p { font-size: 17px; }
  .article-body p.lede { font-size: 19px; }
  .article-body p.lede::first-letter { font-size: 56px; }
  .list-title { font-size: 24px; }
  .list-number .num { font-size: 48px; }
  .pullquote p { font-size: 19px !important; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .newsletter-form { flex-direction: column; border-radius: 16px; }
  .newsletter-form button { border-radius: 12px; }
}

/* ---------- Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Content pages (team, standards, contact) ---------- */
.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-intro {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.page-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}
.page-body {
  padding: 56px 0 72px;
}
.page-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.page-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  color: var(--ink);
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-body a:hover { color: var(--accent-ink); }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  margin: 28px 0 40px;
}
.team-card {
  display: flex;
  flex-direction: column;
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.team-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.team-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.avatar-1 { background: linear-gradient(135deg, #E8C4BA, #C4361E); }
.avatar-2 { background: linear-gradient(135deg, #D4B79A, #8B6B4A); }
.avatar-3 { background: linear-gradient(135deg, #B4C8D9, #4A6B85); }
.avatar-4 { background: linear-gradient(135deg, #C9B89E, #6B5A3F); }
.avatar-5 { background: linear-gradient(135deg, #D7B8C4, #8B4E6B); }

/* ---------- Contact form ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 54, 30, 0.12);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.5;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-submit {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}
.form-success {
  text-align: center;
  padding: 40px 16px;
}
.form-success h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
.form-success p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 42ch;
}

/* ---------- Contact meta (direct emails) ---------- */
.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 20px;
  padding: 28px;
  background: var(--soft);
  border-radius: var(--radius-lg);
}
.contact-meta h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.contact-meta a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}
.contact-meta a:hover { color: var(--accent); }

/* ---------- Content page responsive ---------- */
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .form { padding: 24px 20px; }
  .page-intro { padding: 48px 0 36px; }
  .page-body { padding: 40px 0 56px; }
  .page-body p { font-size: 16px; }
  .page-body h2 { font-size: 22px; }
}

/* ---------- Page body extras (lists, footnote) ---------- */
.page-body ul {
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
}
.page-body ul li {
  position: relative;
  padding: 0 0 14px 28px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.page-body ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--accent);
}
.page-body ul li strong { color: var(--ink); font-weight: 600; }
.page-footnote {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Category filter header ---------- */
.filter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 56px 24px 32px;
  border-bottom: 1px solid var(--line);
  gap: 32px;
}
.filter-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.filter-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--ink);
}
.filter-count {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.filter-clear {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* When a filter is active: collapse the hero and the section heads */
body.is-filtered #heroSection { display: none; }
body.is-filtered .section { padding-top: 32px; }
body.is-filtered .section-head { display: none; }
/* Fade the filtered grid in */
body.is-filtered .section,
body.is-filtered .filter-header {
  animation: filterFade 0.35s ease;
}
@keyframes filterFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}
.empty-state a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 20px 24px;
    gap: 16px;
  }
  .filter-clear { align-self: flex-start; }
}

/* ---------- Quiz ---------- */
.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FDB833, #E85D3E);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.tag.quiz-tag-img {
  background: linear-gradient(135deg, #FDB833, #E85D3E);
}

.quiz-top { padding: 48px 0 24px; }
.quiz-top .wrap { max-width: 820px; }
.quiz-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.quiz-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.quiz-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 56ch;
  line-height: 1.4;
}
.quiz-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.quiz-meta strong { color: var(--ink); font-weight: 600; }

.quiz-hero { margin: 24px 0 24px; }
.quiz-hero .wrap { max-width: 1000px; }
.quiz-hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.quiz-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.quiz-intro-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.quiz-intro-text p {
  font-size: 19px;
  line-height: 1.65;
  color: #1A1713;
  margin: 0 0 20px;
}
.quiz-intro-text p.lede {
  font-size: 22px;
}

/* Sticky progress */
.quiz-progress {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
}
.quiz-progress-inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.quiz-progress-inner strong { color: var(--ink); font-weight: 600; }
.quiz-progress-track {
  height: 6px;
  background: var(--soft);
  border-radius: 100px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FDB833, #E85D3E);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 100px;
}

/* Questions */
.quiz-questions {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.quiz-question {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 140px;
  transition: opacity 0.3s, transform 0.3s;
}
.quiz-q-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.quiz-q-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--ink);
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--ink);
  background: #FAFAFA;
  transform: translateX(2px);
}
.quiz-option:disabled { cursor: default; }
.quiz-option .opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 100%;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.quiz-option.is-correct {
  border-color: #2D8B3F;
  background: #EAF6EC;
  color: #1A5A28;
}
.quiz-option.is-correct .opt-letter {
  background: #2D8B3F;
  color: #fff;
}
.quiz-option.is-incorrect {
  border-color: #C4361E;
  background: #FBEBE7;
  color: #6E1C0D;
}
.quiz-option.is-incorrect .opt-letter {
  background: #C4361E;
  color: #fff;
}
.quiz-option.is-correct::after {
  content: '✓';
  margin-left: auto;
  font-weight: 700;
  color: #2D8B3F;
}
.quiz-option.is-incorrect::after {
  content: '✗';
  margin-left: auto;
  font-weight: 700;
  color: #C4361E;
}
.quiz-option.is-fade { opacity: 0.55; }

.quiz-feedback {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  background: var(--soft);
  color: var(--ink-2);
}
.quiz-feedback strong {
  color: var(--ink);
  font-weight: 600;
}
.quiz-feedback.is-wrong { background: #FBEBE7; }
.quiz-feedback.is-right { background: #EAF6EC; }

/* Result screen */
.quiz-result {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 48px 32px;
  background: linear-gradient(135deg, #FFF7E8 0%, #FBE6DC 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  scroll-margin-top: 140px;
}
.quiz-result-score {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0 0 8px;
}
.quiz-result-score .slash { color: rgba(196, 54, 30, 0.4); font-weight: 400; }
.quiz-result-score .total { color: rgba(196, 54, 30, 0.55); font-size: 0.55em; font-weight: 600; }
.quiz-result-verdict {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
.quiz-result-message {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 auto 28px;
}
.quiz-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-result-actions a, .quiz-result-actions button {
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.quiz-result-actions a.secondary, .quiz-result-actions button.secondary {
  background: transparent;
  color: var(--ink);
}
.quiz-result-actions a:hover, .quiz-result-actions button:hover {
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .quiz-question { padding: 24px 20px; }
  .quiz-q-text { font-size: 21px; }
  .quiz-option { padding: 12px 14px; font-size: 15px; }
  .quiz-progress { top: 64px; padding: 8px 16px; }
  .quiz-progress-inner { font-size: 12px; gap: 10px; }
  .quiz-result { padding: 36px 20px; }
}

/* ---------- Quiz Today section (on index) ---------- */
.quiz-today {
  background: linear-gradient(135deg, #FFF4E4 0%, #FCE3D1 100%);
  padding: 56px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 64px 0 0;
}
.quiz-today-inner { max-width: 1200px; margin: 0 auto; }
.quiz-today-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.quiz-today-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.quiz-today-sub {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0;
  max-width: 46ch;
}
.quiz-today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quiz-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  min-height: 200px;
}
.quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.quiz-card:hover .quiz-card-title { color: var(--accent); }
.quiz-card-image {
  flex: 0 0 40%;
  overflow: hidden;
  background: var(--soft);
}
.quiz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.quiz-card:hover .quiz-card-image img { transform: scale(1.05); }
.quiz-card-body {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.quiz-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FDB833, #E85D3E);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  width: fit-content;
}
.quiz-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 6px 0 6px;
  color: var(--ink);
  transition: color 0.2s;
}
.quiz-card-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .quiz-today-head { flex-direction: column; align-items: flex-start; }
  .quiz-today-grid { grid-template-columns: 1fr; gap: 16px; }
  .quiz-card { flex-direction: column; min-height: auto; }
  .quiz-card-image { flex: 0 0 180px; }
  .quiz-card-body { padding: 20px 22px 22px; }
  .quiz-card-title { font-size: 19px; }
}
