:root {
  --ink: #f6f1e8;
  --mute: rgba(246, 241, 232, 0.55);
  --void: #050305;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: Syne, sans-serif;
}
body.stage {
  min-height: 100vh;
  overflow: hidden;
  cursor: none;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 50% 42%, rgba(170, 190, 90, 0.22), transparent 70%),
    radial-gradient(ellipse 28% 22% at 30% 60%, rgba(90, 130, 55, 0.16), transparent 70%),
    radial-gradient(ellipse 24% 18% at 70% 30%, rgba(200, 185, 110, 0.12), transparent 70%);
  filter: blur(28px);
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding:
    max(1.1rem, env(safe-area-inset-top, 0px))
    max(clamp(1rem, 3.5vw, 2.8rem), env(safe-area-inset-right, 0px))
    0.7rem
    max(clamp(1rem, 3.5vw, 2.8rem), env(safe-area-inset-left, 0px));
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 3, 5, 0.72) 0%, rgba(5, 3, 5, 0.28) 70%, transparent 100%);
}
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem 1rem;
  width: 100%;
  pointer-events: none;
}
.top-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-inline-start: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(46vw, 11.5rem);
  pointer-events: auto;
}
.mark {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.15rem);
  text-decoration: none;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 7.5rem);
}
.mark-arma {
  width: clamp(3.6rem, 6.8vw, 4.85rem);
  height: clamp(3.6rem, 6.8vw, 4.85rem);
  border-radius: 50%;
  object-fit: contain;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(197, 208, 110, 0.28),
    0 0 22px rgba(190, 205, 90, 0.18);
  background: #fff;
  flex-shrink: 0;
}
.mark-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42em;
  min-width: 0;
}
.mark-title {
  display: block;
  font-size: clamp(2.35rem, 6vw, 4.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  padding-bottom: 0.06em;
  color: rgba(230, 235, 170, 0.78);
  text-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(190, 205, 90, 0.16);
}
.mark-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(0.68rem, 1.35vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(230, 235, 170, 0.78);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.mark-sub::before {
  content: "";
  width: 1.15em;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 208, 110, 0.85), rgba(197, 208, 110, 0));
  flex-shrink: 0;
}
.place {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--mute);
  text-align: end;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Masaüstü: yer sağ üstte; mobilde markanın altında (dil ile çakışmasın) */
.place-in-mark { display: none; }
.place-in-meta { display: block; }

.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5.2rem 1rem 4.2rem;
}

.tagline {
  position: absolute;
  top: calc(1.2rem + 4.2vw);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.4s 0.35s ease forwards;
  transition: opacity 0.35s ease;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.orbit {
  position: relative;
  width: min(620px, 92vw);
  aspect-ratio: 3 / 4.1;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.glow {
  position: absolute;
  width: 68%;
  height: 58%;
  left: 16%;
  top: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 220, 130, 0.32), transparent 68%);
  filter: blur(26px);
  animation: breath 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breath {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.95; }
}

.cluster {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation: floatIn 1.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(56px) scale(0.9) rotateX(8deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

.bunch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
  background: transparent;
  border: 0;
  filter:
    drop-shadow(0 36px 28px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 55px rgba(200, 210, 120, 0.22));
  animation: sway 9s ease-in-out infinite;
  transform-origin: 50% 8%;
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.4deg) translateY(0); }
  50% { transform: rotate(1.6deg) translateY(-8px); }
}

.threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0.55;
}
.threads path {
  fill: none;
  stroke: rgba(230, 235, 190, 0.38);
  stroke-width: 0.35;
  stroke-linecap: round;
}

.berries {
  position: absolute;
  inset: 0;
}
.berry {
  --pull: 0px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  z-index: 2;
  transform: translate(calc(-50% + var(--pull)), -50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.berry b {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 250, 210, 0.4), transparent 40%);
  box-shadow:
    inset 0 0 0 1px rgba(245, 248, 210, 0.4),
    0 0 18px rgba(190, 200, 90, 0.28);
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.berry span {
  position: absolute;
  top: 50%;
  white-space: nowrap;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(0, -50%);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  /* Yazıya da dokunulsun — dokunma alanı geniş */
  padding: 0.55rem 0.35rem;
  margin: -0.55rem -0.15rem;
}
.berry[data-side="left"] span {
  right: calc(100% + 0.55rem);
}
.berry[data-side="right"] span {
  left: calc(100% + 0.55rem);
}
.berry:hover b,
.berry:focus-visible b,
.berry.is-near b {
  opacity: 1;
  transform: scale(1.45);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 252, 220, 0.95),
    0 0 34px rgba(220, 230, 120, 0.55);
}
.berry-walk {
  width: 3.35rem;
  height: 3.35rem;
}
.berry-walk b {
  opacity: 0.85;
  animation: pulse 2.6s ease-in-out infinite;
}
.berry-dernek b {
  opacity: 0.72;
  box-shadow:
    inset 0 0 0 1.5px rgba(245, 248, 210, 0.55),
    0 0 22px rgba(210, 220, 110, 0.42);
}
.berry-dernek:hover b,
.berry-dernek:focus-visible b,
.berry-dernek.is-near b {
  box-shadow:
    inset 0 0 0 2px rgba(255, 252, 220, 0.98),
    0 0 40px rgba(230, 235, 140, 0.7);
}
.berry-dilek span {
  letter-spacing: 0.08em;
}
.berry-uye b {
  opacity: 0.7;
  box-shadow:
    inset 0 0 0 1.5px rgba(245, 248, 210, 0.5),
    0 0 20px rgba(200, 210, 100, 0.35);
}
@keyframes pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(245,248,210,.5), 0 0 18px rgba(190,200,90,.3); }
  50% { box-shadow: inset 0 0 0 2px rgba(255,252,220,.95), 0 0 40px rgba(230,235,140,.65); }
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  color: var(--mute);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 1s ease;
}
.hint.is-gone { opacity: 0; }

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 36px;
  height: 48px;
  margin: -10px 0 0 -14px;
  pointer-events: none;
  z-index: 40;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, filter 0.2s ease;
}
.cursor svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cursor.is-hot {
  width: 48px;
  height: 64px;
  margin: -14px 0 0 -18px;
  filter:
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 12px rgba(210, 220, 110, 0.55));
}

@media (max-width: 720px) {
  body.stage { cursor: auto; }
  .cursor { display: none; }
  .mark { gap: 0.7rem; }
  .mark-text { gap: 0.36em; }
  .mark-title {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
    padding-bottom: 0.08em;
  }
  .mark-sub {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    gap: 0.4em;
  }
  .mark-arma {
    width: 2.95rem;
    height: 2.95rem;
  }
  .hero {
    padding-inline: 0.35rem;
  }
  .orbit {
    width: min(420px, 88vw);
  }
  .berry {
    width: 3rem;
    height: 3rem;
  }
  .berry-walk {
    width: 3.35rem;
    height: 3.35rem;
  }
  /* Gözü az görenler: menü yazıları belirgin büyük */
  .berry span {
    opacity: 1;
    transform: translate(0, -50%);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fffdf4;
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.35);
    text-shadow:
      0 1px 0 #000,
      0 0 4px #000,
      0 0 10px rgba(0, 0, 0, 1),
      0 3px 12px rgba(0, 0, 0, 0.95);
  }
  .berry[data-side="left"] span {
    right: calc(100% + 0.28rem);
  }
  .berry[data-side="right"] span {
    left: calc(100% + 0.28rem);
  }

  /* Mobil: Erbaa markanın altında; sağda yalnız dil — çakışma yok */
  .place-in-mark {
    display: block;
    margin-top: 0.35rem;
    text-align: start;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    max-width: 100%;
  }
  .place-in-meta { display: none; }
  .top-meta {
    max-width: none;
    width: auto;
    flex: 0 0 auto;
    gap: 0;
  }
  .mark {
    max-width: calc(100% - 9.5rem);
  }
  .lang-btn {
    font-size: 0.58rem;
    padding: 0.3rem 0.34rem;
  }

  /* Mobil: sol etiketler (öz. Sponsorlar S’si) kenardan kesilmesin */
  .berry-koy { left: 40%; top: 13%; z-index: 2; }
  .berry-tarihi { left: 50%; top: 10%; z-index: 2; }
  .berry-senlik { left: 56%; top: 23%; z-index: 3; }
  .berry-uye { left: 38%; top: 32%; z-index: 3; }
  .berry-dernek { left: 40%; top: 47%; z-index: 2; }
  .berry-haber { left: 56%; top: 40%; z-index: 2; }
  .berry-sponsor { left: 46%; top: 60%; z-index: 2; }
  .berry-dilek { left: 54%; top: 72%; z-index: 3; }
  .berry-walk { left: 50%; top: 87%; z-index: 2; }
  .berry[data-side="left"] span {
    right: calc(100% + 0.5rem);
  }
  .berry-sponsor span {
    letter-spacing: 0;
    font-size: 0.9rem;
  }

  .berry-senlik span,
  .berry-tarihi span,
  .berry-sponsor span,
  .berry-walk span,
  .berry-haber span {
    letter-spacing: 0.01em;
    font-size: 0.95rem;
  }
  .berry-dilek span {
    letter-spacing: 0;
    font-size: 0.88rem;
  }
  .berry-uye span {
    letter-spacing: 0.02em;
    font-size: 1.02rem;
  }

  .mark-title {
    font-size: clamp(1.45rem, 6.8vw, 2rem);
  }
  .place-in-mark {
    margin-top: 0.22rem;
  }
  /* iPhone: tagline absolute değil — header yüksekliğine göre akışta */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    place-items: unset;
    padding-top: calc(var(--home-header-h, 6.5rem) + 1.15rem);
    padding-bottom: 3.6rem;
    gap: 0.55rem;
  }
  .tagline {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
    padding: 0.15rem 0.75rem 0.35rem;
    max-width: 92vw;
    font-size: 0.88rem;
    line-height: 1.35;
    z-index: 5;
    pointer-events: none;
    flex: 0 0 auto;
  }
  .orbit {
    flex: 0 1 auto;
    margin-top: 0.15rem;
  }
  /* Üst taneler tagline’a çıkmasın */
  .berry-koy { top: 16%; }
  .berry-tarihi { top: 14%; }
}

.lang-switch {
  position: static;
  z-index: 8;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.18rem;
  max-width: 100%;
}
.lang-btn {
  appearance: none;
  border: 1px solid rgba(197, 208, 110, 0.3);
  background: rgba(8, 10, 5, 0.55);
  color: rgba(246, 241, 232, 0.78);
  font-family: Syne, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.48rem;
  border-radius: 0.35rem;
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.lang-btn:hover { color: #fff; border-color: rgba(197, 208, 110, 0.6); }
.lang-btn.is-active {
  color: #101208;
  background: linear-gradient(135deg, #e8efb0, #c5d06e);
  border-color: transparent;
}

html[dir="rtl"] .top-meta { align-items: flex-start; }
html[dir="rtl"] .place { text-align: start; }
html[dir="rtl"] .lang-switch { justify-content: flex-start; }
html[dir="rtl"] .berry[data-side="left"] span {
  right: auto;
  left: calc(100% + 0.7rem);
  text-align: left;
}
html[dir="rtl"] .berry[data-side="right"] span {
  left: auto;
  right: calc(100% + 0.7rem);
  text-align: right;
}
