:root {
    --ink: #1a1d24;
    --ink-soft: #454b58;
    --paper: #f3efe6;
    --paper-soft: #e6e0d1;
    --paper-dim: #d8cfb9;
    --accent: #9a4e22;
    --accent-soft: #c97a3f;
    --signal: #2f5568;
    --signal-soft: #4d7386;
    --surface: #ffffff;
    --surface-raised: #faf8f2;
    --line: rgba(26,29,36,0.12);
    --shadow: rgba(26,29,36,0.14);

    /* fixed-dark surface tokens: used by blocks that stay dark in both themes */
    --dusk: #14171d;
    --dusk-text: #f3efe6;
    --dusk-text-soft: #c9c2b0;
    --dusk-accent: #e08a4f;
    --dusk-line: rgba(243,239,230,0.16);
    --dusk-surface: rgba(243,239,230,0.05);

    --bg: var(--paper);
    --bg-raised: var(--surface-raised);
    --text: var(--ink);
    --text-soft: var(--ink-soft);
    --border: var(--line);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #efe9dc;
      --ink-soft: #b9b2a0;
      --paper: #14171d;
      --paper-soft: #1d212a;
      --paper-dim: #262b35;
      --accent: #e6975a;
      --accent-soft: #c97a3f;
      --signal: #9dc2d1;
      --signal-soft: #6f9aab;
      --surface: #191c23;
      --surface-raised: #1f2330;
      --line: rgba(239,233,220,0.12);
      --shadow: rgba(0,0,0,0.45);

      --bg: var(--paper);
      --bg-raised: var(--surface-raised);
      --text: var(--ink);
      --text-soft: var(--ink-soft);
      --border: var(--line);
    }
  }

  :root[data-theme="dark"] {
    --ink: #efe9dc;
    --ink-soft: #b9b2a0;
    --paper: #14171d;
    --paper-soft: #1d212a;
    --paper-dim: #262b35;
    --accent: #e6975a;
    --accent-soft: #c97a3f;
    --signal: #9dc2d1;
    --signal-soft: #6f9aab;
    --surface: #191c23;
    --surface-raised: #1f2330;
    --line: rgba(239,233,220,0.12);
    --shadow: rgba(0,0,0,0.45);

    --bg: var(--paper);
    --bg-raised: var(--surface-raised);
    --text: var(--ink);
    --text-soft: var(--ink-soft);
    --border: var(--line);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

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

  h1, h2, h3 {
    font-family: "Fraunces", ui-serif, Georgia, serif;
    font-weight: 600;
    text-wrap: balance;
    margin: 0;
    color: var(--text);
  }

  .eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }

  a { color: inherit; }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
  }

  /* ---------- NAV ---------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .nav-mark {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -0.01em;
  }
  .nav-mark span { color: var(--accent); }
  .nav-links {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    transition: color 0.15s ease;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-toggle { display: none; }

  @media (max-width: 720px) {
    .nav-links { display: none; }
  }

  /* ---------- HERO ---------- */
  /* Deliberately theme-fixed: sits over a dark video, so text always
     uses --dusk-* tokens regardless of light/dark mode. */
  .hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--dusk-text);
    isolation: isolate;
  }
  .hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: saturate(0.85) brightness(0.55);
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(180deg, rgba(15,17,22,0.55) 0%, rgba(15,17,22,0.72) 55%, rgba(15,17,22,0.92) 100%),
      linear-gradient(90deg, rgba(12,14,18,0.55) 0%, rgba(12,14,18,0.1) 55%);
  }
  .hero-inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
    max-width: 760px;
  }
  .hero .eyebrow { color: var(--dusk-accent); }
  .hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.03;
    margin-top: 0.9rem;
    letter-spacing: -0.01em;
    color: var(--dusk-text);
  }
  .hero h1 em {
    font-style: normal;
    color: var(--dusk-accent);
  }
  .hero-role {
    margin-top: 1.4rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--dusk-text-soft);
    max-width: 46ch;
  }
  .hero-actions {
    margin-top: 2.4rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
  }
  .btn {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.5rem;
    border-radius: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
  }
  .btn-primary {
    background: var(--dusk-accent);
    color: #1a1208;
    border: 1px solid var(--dusk-accent);
    font-weight: 600;
  }
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-ghost {
    background: transparent;
    color: var(--dusk-text);
    border: 1px solid var(--dusk-line);
  }
  .btn-ghost:hover { border-color: rgba(243,239,230,0.75); }

  .hero-meta {
    margin-top: 3.5rem;
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    font-family: "IBM Plex Mono", monospace;
  }
  .hero-meta .num {
    font-size: 1.5rem;
    color: var(--dusk-accent);
    display: block;
  }
  .hero-meta .lbl {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dusk-text-soft);
  }

  /* ---------- SECTION SHELL ---------- */
  section { padding: clamp(4rem, 9vw, 7rem) 0; }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }
  .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .section-index {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-soft);
    white-space: nowrap;
  }

  /* ---------- ABOUT ---------- */
  .about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }
  .about-photo {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 24px 48px -18px var(--shadow);
  }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .about-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
  }
  .about-copy p {
    font-size: 1.08rem;
    color: var(--text-soft);
    max-width: 58ch;
  }
  .about-copy p + p { margin-top: 1.1rem; }
  .about-copy strong { color: var(--text); font-weight: 600; }
  .pull {
    margin: 1.8rem 0;
    padding-left: 1.2rem;
    border-left: 3px solid var(--accent);
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text);
  }
  .credentials {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .credential {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-soft);
    background: var(--bg-raised);
  }

  /* ---------- EXPERTISE ---------- */
  .expertise-bg {
    background: var(--paper-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .expertise-card {
    background: var(--bg-raised);
    padding: 2rem 1.75rem;
  }
  .expertise-card .idx {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--accent);
  }
  .expertise-card h3 {
    font-size: 1.2rem;
    margin-top: 0.9rem;
  }
  .expertise-card p {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-soft);
  }

  /* ---------- EVENTS BENTO ---------- */
  .events-bento {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }
  .event-date {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    color: var(--accent);
  }

  /* wide feature card: landscape photo alongside copy */
  .event-feature {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-raised);
  }
  .event-feature-photo {
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .event-feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .event-feature-copy h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0 0.6rem;
  }
  .event-feature-copy p {
    color: var(--text-soft);
    font-size: 0.98rem;
  }

  /* three portrait cards in a row */
  .events-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .event-card {
    display: flex;
    flex-direction: column;
  }
  .event-card-photo {
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0.9rem;
  }
  .event-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .event-card h3 {
    font-size: 1.1rem;
    margin: 0.4rem 0 0.4rem;
  }
  .event-card p {
    color: var(--text-soft);
    font-size: 0.92rem;
  }

  @media (max-width: 860px) {
    .event-feature { grid-template-columns: 1fr; }
    .events-row { grid-template-columns: 1fr; gap: 2rem; }
  }

  /* ---------- MEDIA ---------- */
  /* Deliberately theme-fixed: this block stays a dark "press clipping"
     surface in both light and dark mode, so it uses --dusk-* tokens
     instead of the theme-swapping --ink/--paper pair. */
  .media-bg {
    background: var(--dusk);
    color: var(--dusk-text);
  }
  .media-bg .eyebrow { color: var(--dusk-accent); }
  .media-bg .section-head { border-bottom-color: var(--dusk-line); }
  .media-bg .section-index { color: var(--dusk-text-soft); }
  .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  .media-card {
    background: var(--dusk-surface);
    border: 1px solid var(--dusk-line);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
  }
  .media-card:hover {
    border-color: var(--dusk-accent);
    transform: translateY(-2px);
  }
  .media-thumb {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
  }
  .media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
  }
  .media-card:hover .media-thumb img { transform: scale(1.05); }
  .media-body { padding: 1.5rem; }
  .media-kicker {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dusk-accent);
  }
  .media-card h3 {
    color: var(--dusk-text);
    font-size: 1.1rem;
    margin-top: 0.6rem;
    line-height: 1.3;
  }
  .media-links {
    margin-top: 1.1rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  .media-card .read-more {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--dusk-accent);
    text-decoration: none;
    transition: opacity .15s ease;
  }
  .media-card .read-more:hover { opacity: 0.75; }
  .media-card .archive-link {
    color: var(--dusk-text-soft);
  }
  .media-note {
    margin-top: 1.75rem;
    font-size: 0.82rem;
    color: var(--dusk-text-soft);
    font-style: italic;
  }
  .linkedin-proof {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
  }
  .linkedin-proof-shot {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--dusk-line);
  }
  .linkedin-proof-shot img { width: 100%; height: auto; display: block; }
  .linkedin-proof-copy .media-kicker { color: var(--dusk-accent); }
  .linkedin-proof-copy h3 {
    color: var(--dusk-text);
    font-size: 1.4rem;
    margin-top: 0.7rem;
    line-height: 1.3;
  }
  .linkedin-stats {
    margin-top: 1.75rem;
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
  }
  .linkedin-stat {
    font-family: "IBM Plex Mono", monospace;
  }
  .linkedin-stat .num {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.7rem;
    color: var(--dusk-accent);
    font-variant-numeric: tabular-nums;
  }
  .linkedin-stat .lbl {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dusk-text-soft);
  }

  @media (max-width: 720px) {
    .linkedin-proof { grid-template-columns: 1fr; }
  }

  /* ---------- CONTACT ---------- */
  .contact {
    text-align: center;
  }
  .contact h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    max-width: 18ch;
    margin: 0 auto;
  }
  .contact p {
    margin-top: 1.2rem;
    color: var(--text-soft);
    font-size: 1.05rem;
  }
  .contact-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .btn-dark {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
  }
  .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
  }

  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
  }
  footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-soft);
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- UZMAN GÖRÜŞÜ (topic pages) ---------- */
  .topic-header {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border);
  }
  .breadcrumb {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
  }
  .breadcrumb a { color: var(--text-soft); text-decoration: none; }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }

  .topic-header h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.08;
    max-width: 20ch;
  }
  .topic-lede {
    margin-top: 1.4rem;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-soft);
    max-width: 62ch;
  }
  .topic-meta {
    margin-top: 1.75rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-soft);
  }

  .topic-body { padding: clamp(3rem, 6vw, 4.5rem) 0; }
  .topic-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  @media (max-width: 860px) {
    .topic-grid { grid-template-columns: 1fr; }
  }

  .qa-block { border-top: 1px solid var(--border); padding: 2rem 0; }
  .qa-block:first-child { border-top: none; padding-top: 0; }
  .qa-block h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 1.1rem;
  }
  .qa-quote {
    margin: 0;
    padding-left: 1.3rem;
    border-left: 3px solid var(--accent);
    font-size: 1.05rem;
    color: var(--text);
  }
  .qa-quote p + p { margin-top: 0.9rem; }
  .qa-source {
    margin-top: 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    color: var(--text-soft);
  }
  .qa-source a { color: var(--accent); text-decoration: none; }
  .qa-source a:hover { text-decoration: underline; }

  .topic-aside {
    position: sticky;
    top: 90px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--bg-raised);
  }
  .topic-aside h3 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  .topic-aside p {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin: 0 0 1rem;
  }
  .topic-aside ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .topic-aside li a {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
  }
  .topic-aside li a:hover { text-decoration: underline; }

  /* hub listing */
  .hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  .hub-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.75rem;
    background: var(--bg-raised);
    transition: border-color .15s ease, transform .15s ease;
  }
  .hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .hub-card .idx {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.06em;
  }
  .hub-card h2 {
    font-size: 1.2rem;
    margin: 0.7rem 0 0.6rem;
    line-height: 1.3;
  }
  .hub-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin: 0;
  }
