/* ============================================================
   AUTOCHAINER — styles.css
   Self-hosted IBM Plex (latin + latin-ext) + tasarim sistemi
   ============================================================ */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* swap aninda olceklenmis yerel fallback — CLS'i sifira yaklastirir */
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 100.4%;
  ascent-override: 102%;
  descent-override: 27.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback';
  src: local('Menlo'), local('Consolas'), local('Courier New');
  ascent-override: 103.5%;
  descent-override: 27.3%;
  line-gap-override: 0%;
}

  /* ============================================================
     DESIGN TOKENS
     paper/gri skala + tek imza aksanı (sinyal turuncusu)
     tip: IBM Plex Sans (gövde) / IBM Plex Mono (veri dili)
     ============================================================ */
  :root {
    color-scheme: light;

    --bg: #f3f2ed;
    --surface: #fbfaf7;
    --surface-2: #ecebe3;
    --ink: #191d21;
    --ink-2: #464e57;
    --ink-3: #5f666d;
    --line: #d9d6cc;
    --line-2: #b8b4a6;
    --accent: #c24d00;
    --accent-ink: #9c3e00;
    --accent-soft: rgba(194, 77, 0, .09);
    --cta-ink: #ffffff;

    --term-bg: #0a0f0c;
    --term-line: #182720;
    --term-green: #45d877;
    --term-dim: #3e7e56;
    --term-bright: #97f2b9;

    --shadow: 0 30px 60px -30px rgba(25, 29, 33, .35);

    --font-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", -apple-system, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;

    /* modüler, akışkan tip ölçeği */
    --fs--2: clamp(.7rem, .68rem + .1vw, .76rem);
    --fs--1: clamp(.79rem, .77rem + .12vw, .86rem);
    --fs-sm: clamp(.86rem, .83rem + .16vw, .95rem);
    --fs-0: clamp(.97rem, .93rem + .2vw, 1.06rem);
    --fs-1: clamp(1.08rem, 1.02rem + .3vw, 1.25rem);
    --fs-2: clamp(1.28rem, 1.18rem + .55vw, 1.6rem);
    --fs-3: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
    --fs-4: clamp(2.1rem, 1.55rem + 2.8vw, 3.6rem);

    /* 8px taban boşluk skalası */
    --s1: .5rem;
    --s2: 1rem;
    --s3: 1.5rem;
    --s4: 2rem;
    --s5: 3rem;
    --s6: 4rem;
    --s7: 6rem;
    --sec-pad: clamp(3rem, 2.2rem + 3.5vw, 5.5rem);

    --radius: 2px;
    --radius-lg: 6px;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      color-scheme: dark;
      --bg: #131518;
      --surface: #1a1d21;
      --surface-2: #22262b;
      --ink: #e8e6e1;
      --ink-2: #b4b1aa;
      --ink-3: #8e949b;
      --line: #2a2e33;
      --line-2: #3c4147;
      --accent: #ff8a3d;
      --accent-ink: #ffa061;
      --accent-soft: rgba(255, 138, 61, .12);
      --cta-ink: #131518;
      --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    }
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f2ed; --surface: #fbfaf7; --surface-2: #ecebe3;
    --ink: #191d21; --ink-2: #464e57; --ink-3: #5f666d;
    --line: #d9d6cc; --line-2: #b8b4a6;
    --accent: #c24d00; --accent-ink: #9c3e00; --accent-soft: rgba(194, 77, 0, .09);
    --cta-ink: #ffffff;
    --shadow: 0 30px 60px -30px rgba(25, 29, 33, .35);
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #131518; --surface: #1a1d21; --surface-2: #22262b;
    --ink: #e8e6e1; --ink-2: #b4b1aa; --ink-3: #8e949b;
    --line: #2a2e33; --line-2: #3c4147;
    --accent: #ff8a3d; --accent-ink: #ffa061; --accent-soft: rgba(255, 138, 61, .12);
    --cta-ink: #131518;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  }

  /* ============================================================
     BASE
     ============================================================ */
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, p, dl, dd { margin: 0; }
  p, dd { text-wrap: pretty; }
  b { font-weight: 600; }
  .mono { font-family: var(--font-mono); }
  ::selection { background: var(--accent); color: var(--cta-ink); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

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

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

  .skip-link {
    position: fixed; top: .75rem; left: .75rem; z-index: 100;
    background: var(--ink); color: var(--bg);
    font-family: var(--font-mono); font-size: var(--fs--1); font-weight: 500;
    letter-spacing: .06em; text-decoration: none;
    padding: .6rem 1rem; border-radius: var(--radius);
    transform: translateY(-300%);
  }
  .skip-link:focus-visible { transform: none; }

  /* language switching */
  [data-lang="tr"] .en { display: none !important; }
  [data-lang="en"] .tr { display: none !important; }

  /* ============================================================
     HEADER
     ============================================================ */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  header {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s2); flex-wrap: wrap;
  }
  /* .wrap'in padding kisayolunu ezmek icin ayni ozgullukte ust seviye kural */
  header.wrap { padding-top: .95rem; padding-bottom: .95rem; }
  .site-nav { display: none; }
  /* dar ekranda alt yazi bara sigmiyor; tek satir kalsin */
  @media (max-width: 599px) {
    .brand-sub { display: none; }
  }
  @media (min-width: 1150px) {
    .site-nav { display: flex; align-items: baseline; gap: clamp(1rem, 1.6vw, 1.8rem); }
    /* menü görünürken marka alt yazısı gizlenir; tek satır kalır */
    .brand-sub { display: none; }
  }
  .site-nav a {
    display: inline-flex; align-items: baseline; gap: .4rem;
    color: var(--ink-2); text-decoration: none;
    font-size: var(--fs--2); font-weight: 500;
    letter-spacing: .09em; text-transform: uppercase;
    padding: .2rem 0;
  }
  .site-nav .nav-num { color: var(--accent-ink); font-size: .82em; }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a[aria-current="true"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .55em;
  }

  /* okuma ilerlemesi — yalnizca scroll-timeline destekleyen tarayicilarda gorunur */
  .progress {
    position: fixed; top: 0; left: 0; z-index: 200;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: 0 50%;
    pointer-events: none;
  }
  @supports (animation-timeline: scroll()) {
    .progress { animation: progress-grow linear both; animation-duration: auto; animation-timeline: scroll(root); }
  }
  @keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .brand {
    display: flex; align-items: center; gap: .7rem;
    font-size: var(--fs--2); letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-2);
  }
  .brand svg { display: block; flex: 0 0 auto; }
  .brand b { color: var(--accent-ink); font-weight: 600; }
  .controls { display: flex; align-items: center; gap: .6rem; }
  .lang-toggle {
    display: flex; gap: 2px;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 2px;
  }
  .lang-toggle button {
    border: 0; background: transparent; color: var(--ink-2);
    font-family: var(--font-mono); font-size: var(--fs--2); font-weight: 500;
    letter-spacing: .08em; line-height: 1;
    padding: .5rem .75rem; border-radius: 1px; cursor: pointer;
  }
  .lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.15rem; height: 2.15rem; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; color: var(--ink-2); cursor: pointer;
  }
  .theme-toggle:hover, .lang-toggle button:hover { color: var(--ink); }
  .theme-toggle:hover { border-color: var(--line-2); }
  .theme-toggle svg { width: 1rem; height: 1rem; }
  .theme-toggle .icon-moon { display: block; }
  .theme-toggle .icon-sun { display: none; }
  @media (prefers-color-scheme: dark) {
    .theme-toggle .icon-sun { display: block; }
    .theme-toggle .icon-moon { display: none; }
  }
  :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
  :root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
  :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

  /* ============================================================
     HERO
     ============================================================ */
  .hero {
    display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  }
  @media (min-width: 980px) {
    .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  }
  .eyebrow {
    display: flex; align-items: center; gap: .8rem;
    font-size: var(--fs--2); letter-spacing: .24em; text-transform: uppercase;
    color: var(--accent-ink); margin: 0 0 var(--s3);
  }
  .eyebrow::before {
    content: ""; flex: 0 0 auto;
    width: 2rem; height: 2px; background: var(--accent);
  }
  .hero h1 {
    font-size: var(--fs-4); line-height: 1.08;
    font-weight: 600; letter-spacing: -.02em;
    margin: 0 0 var(--s2);
    text-wrap: balance;
  }
  .byline {
    font-family: var(--font-mono); font-size: var(--fs--1);
    color: var(--ink-2); margin: 0 0 var(--s3); letter-spacing: .02em;
  }
  .byline b { color: var(--accent-ink); font-weight: 600; letter-spacing: .08em; }
  .hero p.lede { color: var(--ink-2); max-width: 52ch; margin: 0 0 var(--s4); }
  .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
  .cta {
    display: inline-block; background: var(--accent); color: var(--cta-ink);
    text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
    letter-spacing: .01em;
    padding: .8rem 1.5rem; border-radius: var(--radius);
    border: 1px solid transparent;
  }
  .cta:hover { filter: brightness(1.07); }
  .cta.ghost {
    background: transparent; color: var(--ink);
    border-color: var(--line-2);
  }
  .cta.ghost:hover { filter: none; border-color: var(--ink); }

  /* ============================================================
     TERMINAL — imza öğesi
     ============================================================ */
  .terminal {
    position: relative;
    background: var(--term-bg);
    border: 1px solid var(--term-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  /* fosfor vinyeti */
  .terminal::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 8%, rgba(69, 216, 119, .07), transparent 60%);
  }
  /* tarama çizgileri */
  .terminal::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
    opacity: .45;
  }
  .term-bar {
    display: flex; align-items: center; gap: 7px;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--term-line);
  }
  .term-bar span {
    width: 8px; height: 8px; border-radius: 1px;
    background: #1d3527;
  }
  .term-bar span:first-child { background: var(--term-dim); }
  .term-title {
    color: var(--term-dim); font-size: .66rem; letter-spacing: .16em;
    margin-left: auto;
  }
  .term-body {
    padding: 1.2rem 1.35rem 1.45rem;
    font-family: var(--font-mono);
    font-size: clamp(.7rem, .66rem + .2vw, .8rem);
    line-height: 1.8;
    color: var(--term-green);
    text-shadow: 0 0 8px rgba(69, 216, 119, .35);
    white-space: pre; overflow-x: auto;
    font-variant-numeric: tabular-nums;
  }
  .term-body .dim { color: var(--term-dim); text-shadow: none; }
  .term-body .ok { color: var(--term-bright); }
  .cursor {
    display: inline-block; width: .55em; height: 1.1em;
    background: var(--term-green);
    vertical-align: text-bottom;
    animation: blink 1.1s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  /* ============================================================
     STAT STRIP — tipografik ritim
     ============================================================ */
  .stats {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s4) clamp(1.5rem, 3vw, 3rem);
    border-top: 1px solid var(--line);
    padding: var(--s5) 0 var(--s6);
  }
  @media (min-width: 820px) {
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .stat { border-left: 2px solid var(--accent); padding-left: var(--s2); }
  .stat b {
    display: block;
    font-family: var(--font-mono); font-weight: 600;
    font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
    line-height: 1.05; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: .45rem;
  }
  .stat b > span {
    font-size: .4em; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-2);
  }
  .stat > span {
    display: block; font-size: var(--fs--1); line-height: 1.5;
    color: var(--ink-3); max-width: 22ch;
  }

  /* ============================================================
     SECTIONS — sol etiket rayı + içerik kolonu
     ============================================================ */
  .section {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
    border-top: 1px solid var(--line);
    padding: var(--sec-pad) 0;
    scroll-margin-top: 4.25rem;
  }
  @media (min-width: 1020px) {
    .section {
      grid-template-columns: 13rem minmax(0, 1fr);
      column-gap: clamp(2.5rem, 5vw, 5.5rem);
    }
    .sec-head { position: sticky; top: 5.25rem; align-self: start; }
  }
  .sec-label {
    font-size: var(--fs--2); letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-3); margin: 0 0 .9rem;
  }
  .sec-num {
    display: block;
    font-family: var(--font-mono); font-weight: 500;
    font-size: clamp(2.2rem, 2rem + 1vw, 3rem);
    line-height: 1; letter-spacing: -.02em;
    color: var(--line-2);
  }
  .section h2 {
    font-size: var(--fs-3); font-weight: 600;
    letter-spacing: -.02em; line-height: 1.15;
    margin: 0 0 clamp(1.8rem, 3vw, 2.6rem);
    max-width: 28ch; text-wrap: balance;
  }

  /* ---------- services: çizgili tablo hissi ---------- */
  .svc-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 0 clamp(2rem, 4vw, 4rem);
  }
  @media (min-width: 760px) {
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .svc { border-top: 1px solid var(--line); padding: var(--s3) 0 var(--s4); }
  .svc .num {
    font-size: var(--fs--2); color: var(--accent-ink);
    letter-spacing: .12em;
  }
  .svc h3 { font-size: var(--fs-1); font-weight: 600; letter-spacing: -.01em; margin: .55rem 0 .55rem; }
  .svc p { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }

  /* ---------- approach ---------- */
  .flow-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: var(--s4) clamp(1.5rem, 3vw, 2.5rem);
  }
  @media (min-width: 640px) {
    .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 1100px) {
    .flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .flow { border-top: 2px solid var(--line-2); padding-top: var(--s2); }
  .flow .step {
    display: block; font-size: var(--fs--2);
    letter-spacing: .18em; color: var(--accent-ink);
    margin-bottom: .55rem;
  }
  .flow h3 { font-size: var(--fs-0); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5rem; }
  .flow p { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }

  /* ---------- case studies: editoryal bloklar ---------- */
  .case { border-top: 1px solid var(--line); padding: var(--s4) 0 var(--s5); }
  .case:first-of-type { padding-top: var(--s2); border-top: 0; }
  .case-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: var(--s2); flex-wrap: wrap;
    margin-bottom: .5rem;
  }
  .case-num {
    display: block; font-size: var(--fs--2);
    color: var(--accent-ink); letter-spacing: .12em;
    margin-bottom: .55rem;
  }
  .case h3 { font-size: var(--fs-2); font-weight: 600; letter-spacing: -.015em; }
  .case .client {
    font-size: var(--fs--2); color: var(--ink-3);
    letter-spacing: .08em;
  }
  .case .sub { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); margin: .3rem 0 0; max-width: 70ch; }
  .case-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: var(--s3) 0;
    margin-top: var(--s4);
  }
  @media (min-width: 900px) {
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .case-grid > div { border-left: 1px solid var(--line); padding: 0 clamp(1.5rem, 3vw, 2.5rem); }
    .case-grid > div:first-child { border-left: 0; padding-left: 0; }
  }
  /* sonuc bandi — vakanin ozeti tam genislikte, aksanla vurgulu */
  .case-grid > .result {
    grid-column: 1 / -1;
    background: var(--accent-soft);
    border-left: 2px solid var(--accent);
    padding: var(--s3) clamp(1.25rem, 2.5vw, 2rem);
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  @media (min-width: 900px) {
    .case-grid > .result { margin-top: var(--s4); }
  }
  .case-grid h4 {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-mono);
    font-size: var(--fs--2); font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-ink); margin: 0 0 .7rem;
  }
  .case-grid h4::before {
    content: ""; flex: 0 0 auto;
    width: .45em; height: .45em; background: var(--accent);
  }
  .case-grid p { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }
  .case-grid p b, .case .sub b { color: var(--ink); }

  .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s3); }
  .chip {
    font-size: var(--fs--2); letter-spacing: .04em; line-height: 1;
    color: var(--ink-2);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent;
    padding: .4rem .6rem;
  }

  /* ---------- compact work cards ---------- */
  .mini-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: var(--s4) clamp(1.5rem, 3vw, 2.5rem);
  }
  @media (min-width: 980px) {
    .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  .mini { border-top: 1px solid var(--line); padding-top: var(--s3); display: flex; flex-direction: column; }
  .mini .num { font-size: var(--fs--2); color: var(--accent-ink); letter-spacing: .12em; }
  .mini h3 { font-size: var(--fs-1); font-weight: 600; letter-spacing: -.01em; margin: .55rem 0 .55rem; }
  .mini p { font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); margin: 0 0 auto; }
  .mini .chips { margin-top: var(--s3); }

  /* ---------- stack ---------- */
  .stack-grid {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 0 clamp(2rem, 4vw, 4rem);
  }
  @media (min-width: 900px) {
    .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  dl { margin: 0; }
  .stack-row {
    display: flex; gap: var(--s3);
    border-bottom: 1px solid var(--line);
    padding: .95rem 0;
  }
  .stack-row dt {
    flex: 0 0 40%;
    font-size: var(--fs--2); letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-3);
    padding-top: .2em;
  }
  .stack-row dd { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }

  /* ============================================================
     FOOTER
     ============================================================ */
  footer p { color: var(--ink-2); max-width: 54ch; margin: 0 0 var(--s4); }
  .email {
    display: inline-flex; align-items: center; gap: .45em;
    font-family: var(--font-mono); font-size: var(--fs-2); font-weight: 500;
    letter-spacing: -.01em;
    color: var(--accent-ink); text-decoration: none;
    border-bottom: 2px solid var(--accent-ink);
    padding-bottom: .12em;
  }
  .email::after { content: "\2192"; font-weight: 400; transition: transform .25s ease; }
  .email:hover { background: var(--accent-soft); }
  .email:hover::after { transform: translateX(.3em); }
  @media (prefers-reduced-motion: reduce) {
    .email::after { transition: none; }
    .email:hover::after { transform: none; }
  }
  .foot-note { font-size: var(--fs--2); color: var(--ink-3); margin: var(--s6) 0 0; letter-spacing: .02em; }
  .foot-note + .foot-note { margin-top: var(--s6); }

  /* ============================================================
     MOTION — ince scroll-reveal
     ============================================================ */
  .js [data-reveal] {
    opacity: 0; transform: translateY(12px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cursor { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  }

  /* ============================================================
     PRINT — sayfa CV gibi yazdırılabilir
     ============================================================ */
  @media print {
    :root, :root[data-theme="dark"], :root[data-theme="light"] {
      --bg: #fff; --surface: #fff; --surface-2: #fff;
      --ink: #000; --ink-2: #1e1e1e; --ink-3: #3d3d3d;
      --line: #bbb; --line-2: #999;
      --accent: #000; --accent-ink: #000; --cta-ink: #fff;
      --shadow: none;
    }
    body { background: #fff; font-size: 10.5pt; }
    .skip-link, .lang-toggle, .theme-toggle, .terminal, .cta-row, .sec-num, .site-nav, .progress { display: none !important; }
    .topbar { position: static; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .section, .hero { display: block; }
    .sec-head { position: static; }
    .section { padding: 16pt 0; }
    .hero { padding: 12pt 0; }
    .stats { padding: 10pt 0 14pt; }
    .svc, .mini, .flow, .stack-row, .stat, .case-grid > div { break-inside: avoid; }
    .case { padding: 10pt 0 14pt; }
    a { color: #000; }
    .email { border-bottom-color: #000; }
  }
