/* Taslak kütüphanesi — paylaşılan temel: reset, Wooji studio chrome, reveal,
   lightbox, reduced-motion. Site-özel tasarım her sitenin css/style.css'inde. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, canvas, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea, output { font: inherit; }

/* ---- Wooji studio chrome (sabit marka — site paletinden bağımsız) ---- */
.wj-bar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 46px; padding: 0 clamp(0.85rem, 3vw, 1.5rem);
  background: #0c0906; color: #f4efe4;
  border-bottom: 1px solid rgba(244, 239, 228, 0.08);
  font-family: "Hanken", system-ui, sans-serif;
}
.wj-back, .wj-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; border-radius: 999px; transition: color .18s, background-color .18s, transform .18s; }
.wj-back { color: #b3a690; padding: 5px 10px 5px 7px; }
.wj-back:hover { color: #fff; } .wj-back:hover svg { transform: translateX(-2px); }
.wj-cta { color: #14100c; background: #e7dcc7; padding: 6px 14px; font-weight: 600; }
.wj-cta:hover { background: #fff; transform: translateY(-1px); } .wj-cta:hover svg { transform: translateX(3px); }
.wj-back svg, .wj-cta svg { transition: transform .18s; }
.wj-tag { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.wj-mark { font-weight: 700; }
.wj-sep { color: rgba(179, 166, 144, 0.5); }
.wj-cat { font-size: 0.8rem; color: #b3a690; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wj-pill { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #14100c; background: #cda35a; padding: 2px 7px; border-radius: 999px; }
@media (max-width: 640px) { .wj-cat, .wj-sep { display: none; } .wj-back span { display: none; } }

/* ---- Reveal (JS-driven, görünür varsayılan) ---- */
[data-reveal] { will-change: transform, opacity; }

/* ---- Hero satır reveal — SAF CSS (JS/gsap'a bağımsız; `both` ile final görünür durumda kilitlenir) ---- */
.hero-title .line { overflow: hidden; }
.hero-title .line [data-line] { display: block; animation: t-lineUp .95s cubic-bezier(.22, 1, .36, 1) both; }
.hero-title .line:nth-child(2) [data-line] { animation-delay: .09s; }
.hero-title .line:nth-child(3) [data-line] { animation-delay: .18s; }
@keyframes t-lineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ---- Paylaşılan lightbox (base.js enjekte eder; [data-lb] ile açılır) ---- */
.t-lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem; background: rgba(8, 6, 4, 0.88); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.t-lb.is-open { opacity: 1; pointer-events: auto; }
.t-lb-close { position: absolute; top: 1rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 50%; font-size: 2rem; line-height: 1; color: #f4ede0; }
.t-lb-close:hover { background: rgba(244, 237, 224, 0.12); }
.t-lb-fig { margin: 0; max-width: 920px; width: 100%; transform: scale(.96); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.t-lb.is-open .t-lb-fig { transform: scale(1); }
.t-lb-img { aspect-ratio: 16 / 10; border-radius: 16px; background-size: cover; background-position: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.t-lb-cap { margin-top: 1rem; text-align: center; color: #d8ccb8; font-size: 0.95rem; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  .hero-title .line [data-line] { animation: none; }
  .t-lb, .t-lb-fig { transition: none; }
  * { scroll-behavior: auto !important; }
}
