/* =========================================================================
   SekizSekiz — tasarım sistemi
   Upodes düzen dilinden uyarlandı; JS bağımlılığı yok, animasyonlar CSS.
   Font: "Inter Tight" — self-host edilene kadar sistem yığınına düşer.
   ========================================================================= */

:root {
  /* renk */
  --ink: #14160f;
  --ink-80: #2b2f26;
  --ink-60: #565c4e;
  --ink-40: #7c837a;
  --paper: #f5f7f1;
  --card: #ffffff;
  --line: rgba(20, 22, 15, 0.12);
  --line-soft: rgba(20, 22, 15, 0.07);
  --accent: #a3f000;
  --accent-ink: #0d1000;
  --dark: #14160f;
  --dark-line: rgba(255, 255, 255, 0.14);
  --white-60: rgba(255, 255, 255, 0.62);
  --white-80: rgba(255, 255, 255, 0.84);

  /* tipografi */
  --font: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2rem, 1rem + 4vw, 4.5rem);
  --fs-h1: clamp(2.75rem, 1rem + 7.2vw, 7.5rem);

  /* boşluk */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 8vw, 144px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.038em; line-height: 0.94; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--ink-40); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--accent); font-size: 15px; font-weight: 700; letter-spacing: -0.06em;
}
.brand-mark span { opacity: 0.55; margin-left: 1px; }
.brand-text { font-size: 1.0625rem; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); color: var(--ink-80);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover, .nav-link:focus-visible { background: rgba(20, 22, 15, 0.06); color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 500; }
.i-chev { width: 12px; height: 12px; opacity: 0.5; }

/* mega menü */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: min(1080px, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(20, 22, 15, 0.35);
  padding: 28px; opacity: 0; visibility: hidden; translate: -50% 6px;
  transition: opacity 0.18s ease, translate 0.18s ease, visibility 0.18s;
}
.nav-item.has-mega:hover .mega,
.nav-item.has-mega:focus-within .mega { opacity: 1; visibility: visible; translate: -50% 0; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr) 0.9fr; gap: 24px; padding: 0; max-width: none; }
.mega-title {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-40); margin-bottom: 12px; font-weight: 500;
}
.mega-col ul { display: grid; gap: 6px; }
.mega-col a { font-size: var(--fs-sm); color: var(--ink-80); display: inline-block; padding: 3px 0; }
.mega-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.mega-cta { border-left: 1px solid var(--line-soft); padding-left: 24px; }

.nav-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.btn-sm { height: 42px; padding: 0 18px; font-size: var(--fs-xs); }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 10px 30px -12px rgba(163, 240, 0, 0.9); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 22, 15, 0.05); }
.i-sm { width: 15px; height: 15px; }
.i-xs { width: 11px; height: 11px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ tags */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60);
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(163, 240, 0, 0.22); }
.section-dark .tag { color: var(--white-60); }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 92px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 0; max-width: 13ch; }
.hero h1 em { color: var(--ink-40); }
.hero-lead { margin-top: 22px; max-width: 52ch; font-size: var(--fs-lead); color: var(--ink-60); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 42px 0 0; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.hero-stats dd { margin: 0; font-size: var(--fs-xs); color: var(--ink-40); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--card);
  border: 1px solid var(--line-soft); box-shadow: 0 40px 80px -50px rgba(20, 22, 15, 0.55);
  aspect-ratio: 4 / 3.4;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame figcaption {
  position: absolute; inset: auto 0 0 0; padding: 16px 18px;
  font-size: var(--fs-xs); color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
}
.hero-badge {
  position: absolute; left: -14px; bottom: -18px; display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 12px 16px; font-size: var(--fs-xs); line-height: 1.35; color: var(--ink-60);
  box-shadow: 0 20px 40px -28px rgba(20, 22, 15, 0.5);
}
.hero-badge strong { color: var(--ink); font-weight: 600; }
.hero-badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* --------------------------------------------------------------- marquee */
.marquee-band { border-block: 1px solid var(--line-soft); padding: 26px 0; overflow: hidden; }
.marquee { display: flex; gap: 64px; width: max-content; animation: slide 48s linear infinite; }
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 64px; }
.marquee-item { display: grid; place-items: center; height: 34px; }
.marquee-item img { height: 100%; width: auto; filter: grayscale(1); opacity: 0.55; transition: filter 0.2s, opacity 0.2s; }
.marquee-item img:hover { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-dark { background: var(--dark); color: var(--paper); }
.section-dark em { color: var(--white-60); }
.section-dark .sec-lead { color: var(--white-60); }

.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title { max-width: 22ch; }
.sec-title em { color: var(--ink-40); }
.sec-lead { max-width: 62ch; color: var(--ink-60); font-size: var(--fs-lead); }
.section-dark .sec-title em { color: var(--white-60); }

/* ----------------------------------------------------------- service card */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card-link { display: block; }
.service-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(20, 22, 15, 0.5); }
.service-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #eceee6; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.4s ease; }
.service-card:hover .service-card-media img { scale: 1.04; }
.service-card-body { padding: 20px 20px 22px; display: grid; gap: 10px; }
.service-card-body p { font-size: var(--fs-sm); color: var(--ink-60); }
.service-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-40); }

/* ---------------------------------------------------------------- process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process-item { border-top: 1px solid var(--dark-line); padding-top: 22px; display: grid; gap: 10px; }
.process-num { font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.14em; }
.process-item p { color: var(--white-60); font-size: var(--fs-sm); }

/* ------------------------------------------------------------------ works */
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2vw, 30px) clamp(16px, 2vw, 26px); }
.work-card { grid-column: span 4; }
.work-card:nth-child(6n + 1) { grid-column: span 7; }
.work-card:nth-child(6n + 2) { grid-column: span 5; }
.work-card:nth-child(6n + 3) { grid-column: span 5; }
.work-card:nth-child(6n + 4) { grid-column: span 7; }
.work-card:nth-child(6n + 1) .work-media,
.work-card:nth-child(6n + 4) .work-media { aspect-ratio: 16 / 10; }
.work-card:nth-child(6n + 2) .work-media,
.work-card:nth-child(6n + 3) .work-media { aspect-ratio: 4 / 3.2; }
.work-card:nth-child(6n + 5) .work-media,
.work-card:nth-child(6n + 6) .work-media { aspect-ratio: 4 / 3.4; }
.work-card a { display: grid; gap: 14px; }
.work-media { border-radius: var(--radius); overflow: hidden; background: #eceee6; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease; }
.work-card a:hover .work-media img { transform: scale(1.045); }
.work-body { display: grid; gap: 6px; position: relative; padding-right: 30px; }
.work-body h3 { font-size: 1.0625rem; }
.work-body p { font-size: var(--fs-sm); color: var(--ink-60); }
.work-more { position: absolute; right: 0; top: 2px; color: var(--ink-40); }

/* ------------------------------------------------------------------ chips */
.chips-head { display: grid; gap: 10px; margin-bottom: 26px; }
.chips-head p { color: var(--ink-60); font-size: var(--fs-sm); max-width: 60ch; }
.sec-title-sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: var(--fs-sm); color: var(--ink-80);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.chips a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------- post */
.post-card { border-top: 1px solid var(--line); padding-top: 18px; }
.post-card a { display: grid; gap: 14px; }
.post-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #eceee6; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.4s ease; }
.post-card a:hover .post-media img { scale: 1.03; }
.post-body { display: grid; gap: 8px; }
.post-body time { font-size: var(--fs-xs); color: var(--ink-40); letter-spacing: 0.04em; }
.post-body p { font-size: var(--fs-sm); color: var(--ink-60); }

/* -------------------------------------------------------------------- cta */
.cta-section { padding-block: clamp(48px, 6vw, 96px); }
.cta-panel {
  background: var(--dark); color: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 72px); display: grid; gap: 18px; justify-items: start;
  position: relative; overflow: hidden;
}
.cta-panel::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(163, 240, 0, 0.28), transparent 68%); pointer-events: none;
}
.cta-panel h2 { max-width: 20ch; }
.cta-panel em { color: var(--white-60); }
.cta-lead { color: var(--white-60); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.cta-mail { color: var(--white-60); font-size: var(--fs-sm); }
.cta-mail:hover { color: var(--paper); }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: var(--paper); padding-top: clamp(48px, 6vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand-invert .brand-mark { background: var(--accent); color: var(--accent-ink); }
.footer-tagline { color: var(--white-60); font-size: var(--fs-sm); margin-top: 14px; max-width: 34ch; }
.footer-contact { display: grid; gap: 10px; margin-top: 24px; font-size: var(--fs-sm); color: var(--white-80); }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; opacity: 0.6; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--white-60); margin-bottom: 16px; }
.footer-nav ul { display: grid; gap: 8px; font-size: var(--fs-sm); }
.footer-nav a { color: var(--white-80); }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--dark-line); padding-block: 22px;
  font-size: var(--fs-xs); color: var(--white-60);
}

/* ------------------------------------------------------------------ misc */
.error-page { display: grid; gap: 18px; justify-items: start; max-width: 60ch; }

/* --------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(6, 1fr); }
  .work-card, .work-card:nth-child(n) { grid-column: span 3; }
  .work-card:nth-child(6n + 1), .work-card:nth-child(6n + 4) { grid-column: span 6; }
  .work-card .work-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-badge { left: auto; right: 12px; bottom: -14px; }
  .cards-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--paper); padding: 24px var(--gutter) 40px;
    overflow-y: auto; display: none;
  }
  body.nav-open .nav { display: block; }
  body.nav-open .nav-toggle .i-open { display: none; }
  body.nav-open .nav-toggle .i-close { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .mega { position: static; width: auto; translate: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: none; padding: 6px 0 14px; display: none; }
  .nav-item.has-mega.is-open .mega { display: block; }
  .nav-item.has-mega:hover .mega { display: none; }
  .nav-item.has-mega.is-open:hover .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr 1fr; gap: 18px; padding: 0; }
  .mega-cta { border: 0; padding-left: 0; }
  .nav-foot { display: block; margin-top: 28px; }
  .nav-utility { display: flex; gap: 16px; font-size: var(--fs-sm); color: var(--ink-60); }
  .nav-contact { margin-top: 12px; font-weight: 500; }
}

@media (max-width: 600px) {
  .cards-4 { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card, .work-card:nth-child(n) { grid-column: auto; }
  .work-card .work-media { aspect-ratio: 16 / 10; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-panel { border-radius: var(--radius); }
  .header-actions .btn { display: none; }
}

/* =========================================================================
   FAZ 2 — iç sayfalar
   ========================================================================= */

.section-top-tight { padding-top: clamp(24px, 3vw, 40px); }
.sec-count { font-size: var(--fs-xs); color: var(--ink-40); letter-spacing: 0.06em; text-transform: uppercase; }

/* --------------------------------------------------------------- page hero */
.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(8px, 2vw, 16px); }
.page-hero h1 { margin-top: 18px; max-width: 20ch; font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem); }
.page-hero h1 em { color: var(--ink-40); }
.page-lead { margin-top: 20px; max-width: 62ch; font-size: var(--fs-lead); color: var(--ink-60); }
.page-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: var(--fs-xs); color: var(--ink-40); letter-spacing: 0.04em; text-transform: uppercase; }

.crumbs { font-size: var(--fs-xs); color: var(--ink-40); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-main { display: grid; gap: 26px; min-width: 0; }
.detail-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.detail-cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #e9ece2; }
.detail-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.aside-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; }
.aside-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-40); margin-bottom: 14px; }
.aside-list { display: grid; gap: 2px; }
.aside-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--line-soft); }
.aside-list li:last-child a { border-bottom: 0; }
.aside-list a:hover { color: var(--ink-80); }
.aside-list svg { opacity: 0.45; flex: none; }
.aside-list-plain a { justify-content: flex-start; }
.aside-cta { background: var(--ink); color: var(--paper); border-color: transparent; display: grid; gap: 12px; justify-items: start; }
.aside-cta .aside-title { color: var(--white-60); margin-bottom: 0; }
.aside-cta p { font-size: var(--fs-sm); color: var(--white-60); }
.aside-cta .btn-dark { background: var(--accent); color: var(--accent-ink); }

.meta-list { display: grid; gap: 12px; font-size: var(--fs-sm); }
.meta-list dt { font-size: var(--fs-xs); color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.08em; }
.meta-list dd { margin: 2px 0 0; }

/* ------------------------------------------------------------------- prose */
.prose { max-width: 68ch; color: var(--ink-80); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.2em; color: var(--ink); }
.prose h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); margin-top: 1.8em; color: var(--ink); }
.prose h4 { font-size: 1.0625rem; margin-top: 1.6em; color: var(--ink); }
.prose p { font-size: var(--fs-base); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink-60); }
.prose img { border-radius: var(--radius); margin-block: 1.6em; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--ink-60); font-size: var(--fs-lead); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose-narrow { max-width: 72ch; }

/* -------------------------------------------------------------- video */
.video-facade { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #12140f; aspect-ratio: 16 / 9; cursor: pointer; }
.video-facade .video-poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.25s, scale 0.4s; }
.video-facade:hover .video-poster { opacity: 1; scale: 1.02; }
.video-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-blank { display: block; width: 100%; aspect-ratio: 16 / 9; background: #12140f; }
.video-facade iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------- pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager-card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: background 0.16s, border-color 0.16s; }
.pager-card:hover { background: var(--card); border-color: var(--ink); }
.pager-next { text-align: right; }
.pager-dir { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-40); }
.pager-title { font-weight: 500; }
.pager-arrow { position: absolute; bottom: 14px; font-size: 1.1rem; color: var(--ink-40); }
.pager-prev .pager-arrow { right: 20px; }
.pager-next .pager-arrow { left: 20px; }

/* --------------------------------------------------------------- works list */
.works-list { display: grid; border-top: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); }
.work-row-link { display: grid; grid-template-columns: 56px 220px minmax(0, 1fr) 32px; gap: 24px; align-items: center; padding: 22px 0; transition: padding 0.2s; }
.work-row:hover .work-row-link { padding-inline: 8px; }
.work-row-num { font-size: var(--fs-xs); color: var(--ink-40); letter-spacing: 0.08em; }
.work-row-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: #e9ece2; }
.work-row-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.4s; }
.work-row:hover .work-row-media img { scale: 1.04; }
.work-row-body h2 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); }
.work-row-body p { color: var(--ink-60); font-size: var(--fs-sm); margin-top: 6px; }
.work-row-arrow { color: var(--ink-40); justify-self: end; }
.work-row:hover .work-row-arrow { color: var(--ink); }

/* --------------------------------------------------------------- blog list */
.post-featured { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.post-featured a { display: grid; grid-template-columns: 1.1fr 1fr; }
.post-featured-media { aspect-ratio: 4 / 3; overflow: hidden; background: #e9ece2; }
.post-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 14px; align-content: center; }
.post-featured-body h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.post-featured-body p { color: var(--ink-60); }
.post-featured-meta { display: flex; gap: 14px; font-size: var(--fs-xs); color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.06em; }

.post-list { display: grid; border-top: 1px solid var(--line); }
.post-row { border-bottom: 1px solid var(--line); }
.post-row a { display: grid; grid-template-columns: 140px minmax(0, 1fr) 28px; gap: 24px; align-items: start; padding: 24px 0; }
.post-row time { font-size: var(--fs-xs); color: var(--ink-40); padding-top: 4px; }
.post-row h2 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); }
.post-row p { color: var(--ink-60); font-size: var(--fs-sm); margin-top: 6px; }
.post-row-arrow { color: var(--ink-40); justify-self: end; padding-top: 4px; }
.post-row a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.article-main { display: grid; gap: 26px; min-width: 0; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-40); }

.toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; max-width: 68ch; }
.toc-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-40); margin-bottom: 10px; }
.toc ol { display: grid; gap: 6px; font-size: var(--fs-sm); }
.toc a { color: var(--ink-80); }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.about-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #e9ece2; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body { display: grid; gap: 24px; min-width: 0; }

/* ------------------------------------------------------------- references */
.logos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.logo-cell { margin: 0; background: var(--card); display: grid; place-items: center; padding: 26px 18px; min-height: 110px; }
.logo-cell img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.logo-cell:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-form-wrap { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--fs-sm); color: var(--ink-80); }
.field label span { color: #c0392b; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color 0.16s, background 0.16s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.field-check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.field-check label { font-size: var(--fs-xs); color: var(--ink-60); line-height: 1.5; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: var(--fs-xs); color: var(--ink-40); }
.form-status { font-size: var(--fs-sm); min-height: 1.2em; }
.form-status.is-ok { color: #1c7c34; }
.form-status.is-error { color: #c0392b; }
.contact-form.is-sending .btn { opacity: 0.6; pointer-events: none; }
.contact-aside { display: grid; gap: 16px; }

/* ------------------------------------------------------------ responsive 2 */
@media (max-width: 1000px) {
  .detail-grid, .article-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .post-featured a { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .work-row-link { grid-template-columns: 34px 96px minmax(0, 1fr); gap: 14px; }
  .work-row-arrow { display: none; }
  .post-row a { grid-template-columns: 1fr 20px; }
  .post-row time { grid-column: 1 / -1; }
  .detail-aside { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
}


/* =========================================================================
   Mikro etkileşimler (JS yok, hepsi CSS)
   ========================================================================= */

::selection { background: var(--accent); color: var(--accent-ink); }

/* başlıklarda maskeli açılış */
.sec-head .sec-title { clip-path: inset(0 0 106% 0); transition: clip-path 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s; }
.sec-head.in .sec-title { clip-path: inset(0 0 -6% 0); }

h1[data-reveal] { clip-path: inset(0 0 108% 0); transition: clip-path 1s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, transform 0.5s ease; }
h1[data-reveal].in { clip-path: inset(0 0 -8% 0); }

/* buton oku kayması */
.btn svg { transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost:hover svg, .link-arrow:hover svg { transform: translateX(3px); }

/* menü bağlantısında alt çizgi büyümesi */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

/* kart kaldırma + kenarlık */
.service-card { transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(20, 22, 15, 0.18); }
.service-card-media img { transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.service-card:hover .service-card-media img { transform: scale(1.05); }

/* başlık altı çizgisi soldan büyür */
.work-body h3, .post-body h3 { display: inline-block; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.work-card a:hover .work-body h3 { background-size: 100% 1px; }

/* ok ikonunun köşeye kayması */
.work-more, .work-row-arrow { transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s; }
.work-card a:hover .work-more { transform: translate(2px, -2px); color: var(--ink); }
.work-row:hover .work-row-arrow { transform: translate(2px, -2px); }

/* marquee kenar maskesi */
.marquee-band { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover { animation-play-state: paused; }

/* chip basıncı */
.chips a:active { transform: scale(0.97); }

/* post satırında kayma */
.post-row a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (prefers-reduced-motion: reduce) {
  .sec-head .sec-title, h1[data-reveal] { clip-path: none; transition: none; }
  .btn:hover svg, .work-card a:hover .work-media img, .service-card:hover .service-card-media img { transform: none; }
  .work-card a:hover .work-more, .work-row:hover .work-row-arrow { transform: none; }
}

/* JS yoksa (scripting: none) animasyonları kapat */
@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
  .sec-head .sec-title, h1[data-reveal] { clip-path: none; }
}
