/* ==========================================================================
   Op. Dr. Abdullah Harun Kınık — Kişisel Web Sitesi
   Tasarım sistemi: renkler, tipografi, düzen, bileşenler, koyu mod.
   Framework yok — sade, bağımlılıksız, statik CSS (GitHub Pages uyumlu).
   ========================================================================== */

:root {
  /* Renk paleti */
  --bg: #FAFAF7;
  --bg-elevated: #FFFFFF;
  --text: #111111;
  --text-muted: #666666;
  --accent: #153F32;
  --accent-soft: #1F5744;
  --sage: #A8B8A8;
  --warm-neutral: #E8E4DC;
  --dark-section: #181A18;
  --dark-section-text: #F2F1EC;
  --border: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.14);
  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px -12px rgba(17, 17, 17, 0.10);
  --shadow-lift: 0 4px 8px rgba(17, 17, 17, 0.05), 0 24px 48px -16px rgba(17, 17, 17, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --container-narrow: 760px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg: #181A18;
  --bg-elevated: #1F221E;
  --text: #F2F1EC;
  --text-muted: #A7ABA3;
  --accent: #9FD6B8;
  --accent-soft: #7FBF9C;
  --sage: #7E9284;
  --warm-neutral: #26281F;
  --border: rgba(242, 241, 236, 0.10);
  --border-strong: rgba(242, 241, 236, 0.18);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, 0.25), 0 24px 48px -16px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181A18;
    --bg-elevated: #1F221E;
    --text: #F2F1EC;
    --text-muted: #A7ABA3;
    --accent: #9FD6B8;
    --accent-soft: #7FBF9C;
    --sage: #7E9284;
    --warm-neutral: #26281F;
    --border: rgba(242, 241, 236, 0.10);
    --border-strong: rgba(242, 241, 236, 0.18);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 4px 8px rgba(0, 0, 0, 0.25), 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.h-display { font-size: clamp(2.6rem, 6vw, 5rem); }
.h-xl { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h-md { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.text-muted { color: var(--text-muted); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 62ch;
}
.section-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.05em;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 24px; }
main { display: block; }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 10vw, 128px); }
.section-pad-sm { padding-block: clamp(40px, 6vw, 72px); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.grid-2.asym-left { grid-template-columns: 1.1fr 0.9fr; }
.grid-2.asym-right { grid-template-columns: 0.9fr 1.1fr; }

@media (max-width: 860px) {
  .grid-2, .grid-2.asym-left, .grid-2.asym-right {
    grid-template-columns: 1fr;
  }
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #FAFAF7;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-soft); }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  color: var(--text);
  padding: 8px 0;
  border-radius: 0;
  gap: 8px;
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.link-underline {
  position: relative;
  display: inline-block;
  font-weight: 600;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  opacity: 0.4;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); opacity: 1; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.navbar.is-scrolled {
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--border);
}
.navbar .container {
  max-width: 1360px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.monogram {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.nav-brand-text strong { font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
.nav-brand-text span { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links a { color: var(--text-muted); transition: color 0.25s var(--ease); white-space: nowrap; flex-shrink: 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; white-space: nowrap; }
.nav-lang {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav-lang:hover { color: var(--text); }
.nav-lang b { color: var(--text); }

.theme-toggle, .menu-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle svg, .menu-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }

@media (max-width: 1320px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
}

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-links {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu-links a {
  font-size: clamp(1.6rem, 8vw, 2.2rem);
  font-weight: 700;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}
.mobile-menu-footer .btn { width: 100%; }

body.menu-open { overflow: hidden; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 300;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 14% 18%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%),
    radial-gradient(50% 45% at 90% 82%, color-mix(in srgb, var(--sage) 22%, transparent) 0%, transparent 70%);
  animation: driftMesh 22s ease-in-out infinite alternate;
}
@keyframes driftMesh {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-headline { margin-top: 18px; }
.hero-headline .accent-line { color: var(--accent); }
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-muted);
}
.hero-desc {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}
.hero-portrait-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}
.hero-portrait-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21,63,50,0.35) 100%);
}
.hero-badge {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-indicator .line {
  width: 1px; height: 32px;
  background: linear-gradient(var(--text-muted), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator .line { animation: none; }
}

/* ---------- Marquee ribbon ---------- */
.ribbon {
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding-block: 20px;
  background: var(--warm-neutral);
}
.ribbon-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 34s linear infinite;
}
.ribbon:hover .ribbon-track,
.ribbon:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon-track span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.ribbon-track span::after { content: "•"; color: var(--sage); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; overflow-x: auto; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: blur(6px);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Intro / stat ---------- */
.intro-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-card {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
}
.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
}
.stat-label { margin-top: 6px; color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 700px) {
  .intro-stats { grid-template-columns: 1fr; }
}

/* ---------- Editorial clinical blocks ---------- */
.clinical-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--border);
}
.clinical-block:nth-child(even) .clinical-media { order: 2; }
.clinical-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-soft);
}
.clinical-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.clinical-media:hover img { transform: scale(1.05); }
.clinical-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.05em;
}
.clinical-title { margin-top: 12px; }
.clinical-desc { margin-top: 16px; color: var(--text-muted); max-width: 48ch; }
.clinical-link { margin-top: 24px; color: var(--accent); }

@media (max-width: 860px) {
  .clinical-block, .clinical-block:nth-child(even) .clinical-media {
    grid-template-columns: 1fr;
    order: initial;
  }
}

/* ---------- Dark feature section (robotic) ---------- */
.feature-dark {
  background: var(--dark-section);
  color: var(--dark-section-text);
  padding-block: clamp(72px, 10vw, 140px);
}
.feature-dark .eyebrow { color: var(--sage); }
.feature-dark .text-muted { color: rgba(242,241,236,0.66); }
.feature-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-point {
  border-top: 1px solid rgba(242,241,236,0.18);
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.98rem;
}
.feature-media {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/8;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-disclaimer {
  margin-top: 28px;
  font-size: 0.88rem;
  color: rgba(242,241,236,0.55);
  max-width: 56ch;
}
@media (max-width: 760px) {
  .feature-points { grid-template-columns: 1fr; }
}

/* ---------- Cards / tiles ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.research-tile {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.research-tile:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.research-tile .tile-num { font-size: 0.8rem; color: var(--sage); font-weight: 700; }
.research-tile h3 { margin-top: 14px; font-size: 1.2rem; }
.research-tile p { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }
.research-tile .tile-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.research-tile:hover .tile-meta { opacity: 1; transform: translateY(0); }

.featured-project {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--warm-neutral);
}
.featured-project .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.featured-project .fp-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.featured-project .fp-media img { width: 100%; height: 100%; object-fit: cover; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 860px) {
  .featured-project { grid-template-columns: 1fr; }
}

/* ---------- Timeline ---------- */
.timeline { margin-top: 48px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border-strong);
}
.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-period { font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.timeline-item h3 { margin-top: 6px; font-size: 1.1rem; }
.timeline-item p { margin-top: 6px; color: var(--text-muted); font-size: 0.94rem; max-width: 56ch; }

@media (max-width: 720px) {
  .timeline { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .timeline::before { display: none; }
  .timeline-item {
    flex: 0 0 82%;
    padding-left: 0;
    padding-bottom: 0;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
  }
  .timeline-item::before { display: none; }
}

/* ---------- Publications ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.filter-chip:hover { color: var(--text); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FAFAF7; }

.pub-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.pub-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.pub-card .pub-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pub-card h3 { font-size: 1.08rem; font-weight: 700; max-width: 62ch; }
.pub-meta { margin-top: 8px; font-size: 0.86rem; color: var(--text-muted); }
.pub-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pub-abstract {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.pub-card.is-open .pub-abstract { max-height: 400px; }
.pub-toggle { font-size: 0.86rem; font-weight: 600; color: var(--accent); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.pub-toggle svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.pub-card.is-open .pub-toggle svg { transform: rotate(180deg); }
.sample-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--sage);
  font-style: italic;
}

/* ---------- Metrics ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.metric-item { text-align: left; }
.metric-value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.metric-label { margin-top: 6px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Media gallery ---------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
  margin-top: 32px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; display: block; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-within .gallery-caption { opacity: 1; }
@media (max-width: 720px) { .gallery-grid { columns: 2 180px; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,8,0.92);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: 90vw; max-height: 82vh; }
.lightbox img { max-width: 90vw; max-height: 72vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #E8E4DC; margin-top: 14px; text-align: center; font-size: 0.92rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

/* ---------- Video cards ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
  margin-top: 32px;
}
.video-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.video-thumb { aspect-ratio: 16/9; position: relative; background: var(--warm-neutral); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-play span {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.video-play svg { width: 20px; height: 20px; color: var(--accent); margin-left: 3px; }
.video-duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.74rem; padding: 3px 8px; border-radius: 5px;
}
.video-body { padding: 18px 20px; }
.video-cat { font-size: 0.76rem; color: var(--sage); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.video-body h3 { margin-top: 8px; font-size: 1.02rem; }

/* ---------- Blog ---------- */
.blog-search {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}
.blog-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.blog-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { font-size: 1.1rem; }
.blog-excerpt { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.blog-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.blog-empty { margin-top: 24px; color: var(--text-muted); }

.featured-article {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-article img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.featured-article .fa-body { padding: 32px; }
@media (max-width: 860px) { .featured-article { grid-template-columns: 1fr; } }

/* ---------- Article page ---------- */
.article-hero { padding-top: 140px; padding-bottom: 40px; }
.article-meta-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text-muted);
  margin-top: 20px;
}
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
  aspect-ratio: 21/9;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 120px;
  font-size: 0.86rem;
}
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; color: var(--text-muted); border-left: 2px solid var(--border); padding-left: 12px; }
.toc a:hover, .toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.article-body { max-width: 68ch; font-size: 1.05rem; line-height: 1.85; }
.article-body h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.5rem; }
.article-body h3 { margin-top: 32px; margin-bottom: 10px; font-size: 1.2rem; }
.article-body p { margin-bottom: 18px; color: var(--text); }
.article-body ul { margin: 0 0 18px 20px; list-style: disc; color: var(--text); }
.article-body li { margin-bottom: 8px; }
.article-draft-note {
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--warm-neutral);
  font-size: 0.88rem;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-top: 1px solid var(--border); padding-top: 16px; }
}

.article-nav {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-nav a { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: block; }
.article-nav .nav-dir { font-size: 0.78rem; color: var(--sage); text-transform: uppercase; letter-spacing: 0.05em; }
.article-nav .nav-title { margin-top: 8px; font-weight: 600; }
.article-nav .next-post { text-align: right; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } }

.share-row { display: flex; gap: 10px; margin-top: 32px; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.share-btn svg { width: 17px; height: 17px; }

.related-posts { margin-top: 72px; }

/* ---------- Disclaimer ---------- */
.disclaimer-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--warm-neutral);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.disclaimer-box svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--sage); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .ci-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--warm-neutral);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .ci-icon svg { width: 18px; height: 18px; color: var(--accent); }
.contact-info-item .ci-label { font-size: 0.8rem; color: var(--text-muted); }
.contact-info-item .ci-value { font-weight: 600; margin-top: 2px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .field-error { color: #B4413B; font-size: 0.82rem; margin-top: 6px; display: none; }
.form-field.has-error input, .form-field.has-error textarea { border-color: #B4413B; }
.form-field.has-error .field-error { display: block; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.checkbox-field label { font-size: 0.88rem; color: var(--text-muted); }
.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--warm-neutral);
}
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--warm-neutral);
  color: var(--accent);
  font-weight: 600;
  display: none;
}
.form-success.is-visible { display: block; }
.emergency-note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: #8A5A2A;
  background: color-mix(in srgb, #E8E4DC 60%, #fff6e8);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { width: 52px; height: 52px; object-fit: contain; margin-bottom: 14px; }
.footer-brand h3 { font-size: 1.15rem; }
.footer-brand p { margin-top: 6px; color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.92rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.error-code {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
