/* ==========================================================================
   BilimFest İstanbul — canlı festival teması
   Çivit uzay alanları + açık zemin + 4 festival rengi (sarı, mercan, nane, gök).
   ========================================================================== */
:root {
  --bg: #f5f3fc;
  --surface: #ffffff;
  --ink: #1c1545;
  --ink-soft: #5d587e;
  --line: #e7e3f5;
  --space: #241a6b;
  --space-2: #332596;

  --yellow: #ffc233;
  --coral: #ff6b57;
  --mint: #1fc19b;
  --sky: #3d8bff;

  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(28, 21, 69, .06), 0 12px 32px -14px rgba(28, 21, 69, .22);
  --shadow-hover: 0 2px 4px rgba(28, 21, 69, .06), 0 22px 44px -16px rgba(28, 21, 69, .32);
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* tone helpers: --c = strong, --c-soft = tint, --c-ink = readable text on tint */
.c-yellow { --c: var(--yellow); --c-soft: #fff3d3; --c-ink: #7a5300; }
.c-coral  { --c: var(--coral);  --c-soft: #ffe5e0; --c-ink: #a8321f; }
.c-mint   { --c: var(--mint);   --c-soft: #d8f6ee; --c-ink: #0b6b54; }
.c-sky    { --c: var(--sky);    --c-soft: #e0ecff; --c-ink: #1a4fae; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.08; margin: 0; letter-spacing: -.015em; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
::selection { background: var(--yellow); color: var(--ink); }

/* starry indigo surface */
.space {
  position: relative; color: #fff; background-color: var(--space);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 32% 72%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 58% 34%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 78% 82%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 88% 14%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 94%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(120% 90% at 100% 0%, var(--space-2), transparent 60%);
  background-size: 260px 260px, 260px 260px, 260px 260px, 260px 260px, 260px 260px, 260px 260px, 100% 100%;
}

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: 6px 14px; border-radius: 999px;
  font: 700 .78rem/1.2 var(--f-body); letter-spacing: .02em;
  background: var(--c-soft, #ece8fb); color: var(--c-ink, var(--space));
}
.chip .ico { width: 1.05em; height: 1.05em; }
.chip-light { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .98rem/1.1 var(--f-body); white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn .ico { transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 #d99a00; }
.btn-yellow:hover { box-shadow: 0 6px 0 #d99a00; }
.btn-yellow:active { transform: translateY(2px); box-shadow: 0 2px 0 #d99a00; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.tone-strip { display: flex; height: 5px; }
.tone-strip i { flex: 1; }
.tone-strip i:nth-child(1) { background: var(--yellow); }
.tone-strip i:nth-child(2) { background: var(--coral); }
.tone-strip i:nth-child(3) { background: var(--mint); }
.tone-strip i:nth-child(4) { background: var(--sky); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 1.4rem/1 var(--f-head); letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--coral); }
.brand img { transition: transform .4s; }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.main-nav { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--bg); }
.main-nav a { padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); background: #fff; }
.main-nav a.is-active { color: #fff; background: var(--space); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--bg); cursor: pointer; padding: 14px 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero-area { padding-block: 28px 8px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; }
.slider { position: relative; min-height: 560px; border-radius: var(--r-lg); overflow: hidden; background: var(--space); box-shadow: var(--shadow); isolation: isolate; }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide:not(.no-text):not(.slide-art)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 14, 60, .82), rgba(20, 14, 60, 0) 60%); }
.slide-art { background: var(--space); }
.space-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-art .space-art { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-10px, 8px, 0) scale(1.02); } }
.slide-body { position: relative; z-index: 2; padding: 44px 44px 84px; max-width: 620px; color: #fff; }
.slide-body .chip { margin-bottom: 16px; }
.slide-body h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); margin-bottom: 12px; }
.slide-body p { font-size: 1.12rem; opacity: .9; }
.slider-ui { position: absolute; z-index: 5; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.slider-ui > * { pointer-events: auto; }
.slider-dots { display: flex; gap: 8px; padding: 10px 12px; border-radius: 999px; background: rgba(20, 14, 60, .45); backdrop-filter: blur(6px); }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 28px; background: var(--yellow); }
.slider-arrows { display: flex; gap: 8px; }
.slider-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); transition: background .15s, transform .15s; }
.slider-nav:hover { background: var(--yellow); transform: scale(1.06); }

/* info card */
.info-card { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); overflow: hidden; }
.info-card .chip { align-self: flex-start; }
.info-card h2 { font-size: 1.85rem; }
.info-text { margin: -6px 0 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown > div { background: var(--c); color: var(--ink); border-radius: var(--r-sm); padding: 12px 4px 10px; text-align: center; }
.countdown b { display: block; font: 800 1.75rem/1 var(--f-head); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; font-weight: 700; opacity: .75; }
.countdown.is-done::after { content: "Festival başladı! 🎉"; grid-column: 1 / -1; text-align: center; font-weight: 700; color: var(--yellow); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; align-items: center; gap: 14px; }
.info-list small { display: block; font-size: .75rem; color: rgba(255, 255, 255, .6); font-weight: 600; }
.info-list strong { display: block; font-weight: 700; line-height: 1.35; }
.info-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--c); color: var(--ink); }
.info-ico .ico { width: 21px; height: 21px; }
.info-card .btn { margin-top: auto; }

/* ---------- sections ---------- */
.section { padding-block: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .chip { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.empty { padding: 48px; text-align: center; color: var(--ink-soft); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }

/* page hero band */
.page-hero { padding-block: 56px 64px; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 16px 0 10px; max-width: 16ch; }
.page-hero p { margin: 0; font-size: 1.1rem; color: rgba(255, 255, 255, .8); max-width: 52ch; }
.page-hero-art { position: absolute; right: -80px; top: 50%; translate: 0 -50%; width: 620px; height: auto; opacity: .95; }
.back-link { display: flex; width: fit-content; align-items: center; gap: .4em; margin-bottom: 18px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.back-link:hover { color: var(--yellow); }
.search { display: flex; align-items: center; gap: 10px; width: min(460px, 100%); margin-top: 26px; padding: 4px 6px 4px 18px; border-radius: 999px; background: #fff; color: var(--ink-soft); }
.search input { flex: 1; min-width: 0; padding: 12px 8px; border: 0; background: none; font: 500 1rem var(--f-body); color: var(--ink); outline: none; }

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pc-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--c-soft); overflow: hidden; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-ico { width: 64px; height: 64px; color: var(--c-ink); stroke-width: 1.4; transition: transform .4s; }
.project-card:hover .pc-ico { transform: rotate(-10deg) scale(1.08); }
.pc-cover::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; top: -60px; background: var(--c); opacity: .35; }
.pc-cover:has(img)::before { display: none; }
.pc-num { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--c); color: var(--ink); font: 800 .8rem/1.2 var(--f-head); }
.pc-body { display: flex; flex-direction: column; flex: 1; gap: 18px; padding: 20px 20px 18px; }
.pc-body strong { font: 800 1.3rem/1.2 var(--f-head); letter-spacing: -.01em; }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-leader { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: .92rem; }
.pc-leader small { display: block; font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.pc-go { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bg); transition: background .2s, color .2s; }
.project-card:hover .pc-go { background: var(--c); }

/* banner */
.banner { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: flex; align-items: center; box-shadow: var(--shadow); }
.banner-art { position: absolute; right: -40px; top: 50%; translate: 0 -50%; width: 58%; height: auto; }
.banner-body { position: relative; z-index: 1; padding: 48px; max-width: 560px; }
.banner-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 12px; }
.banner-body p { color: rgba(255, 255, 255, .8); margin-bottom: 24px; }

/* ---------- avatars ---------- */
.avatar { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; background: var(--c-soft, #ece8fb); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--c, var(--line)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-empty { display: grid; place-items: center; }
.avatar-empty span { font: 800 1.6rem/1 var(--f-head); color: var(--c-ink, var(--space)); }
.avatar-xs { width: 38px; height: 38px; box-shadow: 0 0 0 2px var(--c); }
.avatar-xs.avatar-empty span { font-size: .85rem; }
.avatar-lg { width: 120px; height: 120px; }
.avatar-lg.avatar-empty span { font-size: 2.3rem; }

/* ---------- staff ---------- */
.group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.group-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--c); color: var(--ink); font: 800 1.05rem/1 var(--f-head); flex: none; }
.group-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.group-count { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-weight: 700; font-size: .85rem; box-shadow: inset 0 0 0 1px var(--line); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.staff-card { position: relative; display: flex; align-items: center; gap: 22px; padding: 24px 24px 24px 26px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.staff-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 6px 6px 0; background: var(--c); }
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.staff-info { flex: 1; min-width: 0; }
.staff-card h3 { font-size: 1.3rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.role { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c-soft); color: var(--c-ink); font-weight: 700; font-size: .82rem; line-height: 1.35; }
.titles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.titles li { position: relative; padding-left: 14px; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; overflow-wrap: anywhere; }
.titles li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--line)); }

/* ---------- project detail ---------- */
.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: -32px; position: relative; z-index: 2; padding-top: 0; }
.pd-main { display: grid; gap: 20px; }
.pd-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.pd-block { background: var(--surface); border-radius: var(--r); padding: 28px 30px; box-shadow: var(--shadow); }
.pd-block h2 { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; margin-bottom: 18px; }
.pd-text { font-size: 1.04rem; }
.pd-text p:last-child { margin: 0; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-sm); background: var(--c-soft); }
.bullets li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--c); color: var(--ink); font-weight: 800; font-size: .8rem; }
.pd-side { position: sticky; top: 100px; }
.leader-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 26px; }
.leader-top { height: 128px; padding: 18px; }
.leader-card .avatar { margin: -52px auto 16px; }
.leader-card h3 { font-size: 1.45rem; margin-bottom: 10px; padding-inline: 20px; }
.leader-card .titles { justify-items: center; margin-top: 10px; }
.leader-info { margin: 18px 22px 0; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: .94rem; text-align: left; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; padding-top: 40px; }
.site-footer.space { background-size: 260px 260px; background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 32% 72%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 58% 34%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 88% 14%, rgba(255,255,255,.8) 50%, transparent 52%); }
.footer-wave { position: absolute; left: 0; right: 0; top: -58px; width: 100%; height: 60px; fill: var(--space); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-block: 24px 36px; }
.footer-about .brand { margin-bottom: 16px; color: #fff; }
.footer-about p { color: rgba(255, 255, 255, .72); max-width: 40ch; }
.site-footer h4 { font-size: 1.05rem; margin-bottom: 16px; color: var(--yellow); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: var(--yellow); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .ico { color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .1); transition: background .15s, color .15s; }
.socials a:hover { background: var(--yellow); color: var(--ink); }
.footer-bottom { padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .project-detail { grid-template-columns: 1fr; }
  .pd-side { position: static; order: -1; }
  .page-hero-art { opacity: .35; }
}
@media (max-width: 760px) {
  .header-inner { height: 66px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 66px; left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 10px;
    border-radius: var(--r); background: #fff; box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 16px; border-radius: var(--r-sm); font-size: 1.05rem; }
  .hero-area { padding-top: 16px; }
  .slider { min-height: 0; aspect-ratio: 4 / 3.6; border-radius: var(--r); }
  .slide-body { padding: 24px 22px 76px; }
  .slide-art .space-art { height: 72%; }
  .slide-art .slide-body { padding-bottom: 26px; }
  .slider-ui { left: 14px; right: 14px; bottom: 14px; }
  .slider-nav { width: 42px; height: 42px; }
  .info-card { padding: 22px; border-radius: var(--r); }
  .section { padding-top: 48px; }
  .page-hero { padding-block: 40px 52px; }
  .page-hero-art { width: 420px; right: -160px; opacity: .3; }
  .banner-art { width: 110%; right: -45%; opacity: .35; }
  .banner-body { padding: 30px 24px; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { gap: 18px; padding: 20px 18px 20px 22px; }
  .staff-card .avatar { width: 66px; height: 66px; }
  .staff-card .avatar-empty span { font-size: 1.3rem; }
  .group-head { gap: 12px; }
  .group-num { width: 40px; height: 40px; border-radius: 13px; }
  .pd-block { padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
