/* ==========================================================================
   Murat Akkaş — kişisel portfolyo
   Renkler, Karadeniz'in suyundan ve Haliç'in gecesinden alındı.
   ========================================================================== */

/* ---------- Yazı tipleri (siteyle birlikte barındırılır) ----------
   Yalnızca Türkçe ve İngilizce karakterler; Archivo'nun kalınlık aralığı 400–800. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo.woff2") format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono.woff2") format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format('woff2');
}

:root {
  color-scheme: dark;

  /* Renkler */
  --ink: #0a0d0d;        /* gece denizi — zemin */
  --ink-2: #121817;      /* yükseltilmiş yüzey */
  --ink-3: #1c2423;      /* boş görsel zemini */
  --bone: #e9ece8;       /* ana metin */
  --dim: #8e9a98;        /* ikincil metin */
  --faint: #5a6764;      /* sönük vurgu (büyük yazı için 3:1 kontrast) */
  --line: rgba(233, 236, 232, 0.14);
  --sea: #7cb8bc;        /* Karadeniz turkuazı — tek vurgu rengi */
  --ink-rgb: 10, 13, 13;
  --tint-sea: #0b1c1d;   /* Karadeniz bölümünde zemine karışan ton */
  --tint-dusk: #1e140e;  /* İstanbul gün batımı tonu */
  --on-photo: #e9ece8;   /* fotoğraf üzerindeki yazılar, her modda açık */

  /* Yazı tipleri */
  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Ölçüler */
  --pad: clamp(16px, 3.2vw, 44px);
  --gap: clamp(12px, 1.6vw, 24px);
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Gündüz modu: Karadeniz'in öğle ışığı */
:root[data-mode="day"] {
  color-scheme: light;
  --ink: #eef1ec;
  --ink-2: #e3e9e5;
  --ink-3: #d6dfda;
  --bone: #0f1817;
  --dim: #58676a;
  --faint: #7a8683;
  --line: rgba(15, 24, 23, 0.14);
  --sea: #1d7a80;
  --ink-rgb: 238, 241, 236;
  --tint-sea: #d6ebe9;
  --tint-dusk: #f3e4d4;
}

/* Mod değişiminde dairesel geçiş (destekleyen tarayıcılarda) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ---------- Temel ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, dl, dd, figure, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }

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

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 4px;
  border-radius: 2px;
}

.label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Büyük başlıkların ortak dili: dar, kalın, büyük harf */
.display,
.frames__title,
.chapter__title,
.about__title,
.collab__title,
.contact__title,
.menu__links a,
.marquee span {
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

/* Başlıklardaki italik vurgu */
.intro__text em,
.about__title em,
.collab__title em,
.contact__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Üzerine gelince yukarı yuvarlanan yazı */
.roll {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
  white-space: nowrap;
}

.roll > span {
  display: block;
  line-height: 1.3;
  text-shadow: 0 1.3em 0 currentColor;
  transition: transform 0.7s var(--ease-out);
}

.roll:hover > span,
.roll:focus-visible > span { transform: translateY(-1.3em); }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Yalnızca ekran okuyucular ve arama motorları için metin */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Lenis (yumuşak kaydırma) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Açılış sayacı ---------- */

.preloader { display: none; }

.is-loading .preloader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + var(--pad));
  color: var(--bone);
  --fw: clamp(150px, 17vw, 250px);
  --fh: calc(var(--fw) * 4 / 3);
  /* JS çalışmazsa sayfa yine de açılsın */
  animation: preloader-failsafe 0.6s 5s forwards;
}

/* Ortadaki pencerenin dört yanındaki perdeler; açılırken sayfa kaymaz */
.preloader__panel {
  position: absolute;
  background: var(--ink);
  will-change: transform;
}

.preloader__panel--top,
.preloader__panel--bottom { left: 0; right: 0; height: calc(50% - var(--fh) / 2 + 1px); }
.preloader__panel--top { top: 0; transform-origin: 50% 0; }
.preloader__panel--bottom { bottom: 0; transform-origin: 50% 100%; }

.preloader__panel--left,
.preloader__panel--right { top: 0; bottom: 0; width: calc(50% - var(--fw) / 2 + 1px); }
.preloader__panel--left { left: 0; transform-origin: 0 50%; }
.preloader__panel--right { right: 0; transform-origin: 100% 50%; }

.preloader__top,
.preloader__bottom { position: relative; }

.preloader__top {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preloader__bottom {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
}

.preloader__bar {
  flex: 1;
  height: 1px;
  margin-bottom: 0.9em;
  background: var(--line);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
}

.preloader__num {
  min-width: 3ch;
  font-size: clamp(88px, 16vw, 240px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.preloader__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--fw) + 2px);
  height: calc(var(--fh) + 2px);
  margin: calc(var(--fh) / -2 - 1px) 0 0 calc(var(--fw) / -2 - 1px);
  overflow: hidden;
  background: var(--ink-3);
}

.preloader__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

/* İlk kare JS beklemeden görünür */
.preloader__frame img:first-child,
.preloader__frame img.is-on { visibility: visible; }
.preloader__frame.is-flicker img:first-child:not(.is-on) { visibility: hidden; }

@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Film greni ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.07;
}

.grain::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}

[data-mode="day"] .grain { opacity: 0.05; }
[data-mode="day"] .grain::before { filter: invert(1); }

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- İmleç (yalnızca fare ile) ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  display: none;
  pointer-events: none;
}

.has-cursor .cursor { display: block; }

.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--bone);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s, background-color 0.3s;
}

.cursor__label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(0.6);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s, transform 0.5s var(--ease-out);
}

.cursor.is-visible .cursor__dot { opacity: 1; }
.cursor.is-link .cursor__dot { transform: scale(3.2); background: var(--sea); opacity: 0.35; }
.cursor.is-view .cursor__dot { transform: scale(9); opacity: 1; background: var(--bone); }
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.has-cursor .frame__media { cursor: none; }

/* ---------- Üst menü ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--pad) 18px;
  color: var(--bone);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0.86), rgba(var(--ink-rgb), 0));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.nav.is-scrolled::before { opacity: 1; }

/* Giriş fotoğrafının üzerindeyken menü her modda açık renk */
.nav.is-over-hero { color: var(--on-photo); }
.nav.is-over-hero::before { background: linear-gradient(to bottom, rgba(10, 13, 13, 0.5), rgba(10, 13, 13, 0)); }

.nav__music {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  white-space: nowrap;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 15px;
  height: 11px;
}

.eq i {
  flex: 1;
  height: 30%;
  background: currentColor;
  border-radius: 1px;
  transform-origin: bottom;
  transition: height 0.4s var(--ease-out);
}

.eq i:nth-child(2) { height: 55%; }
.eq i:nth-child(3) { height: 40%; }
.eq i:nth-child(4) { height: 20%; }

.nav__music.is-playing .eq i { height: 100%; animation: eq 0.9s ease-in-out infinite alternate; }
.nav__music.is-playing .eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.nav__music.is-playing .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.5s; }
.nav__music.is-playing .eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.2s; }
.nav__music.is-loading .eq i { animation: eq 0.5s ease-in-out infinite alternate; }

@keyframes eq {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.nav__music.is-off { opacity: 0.55; }

.nav__mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  white-space: nowrap;
}

.nav__mode-icon {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  transition: box-shadow 0.5s var(--ease-out), background-color 0.5s;
}

/* Gece: hilal */
[data-mode="night"] .nav__mode-icon {
  background: transparent;
  box-shadow: inset -3.5px -1px 0 0 currentColor;
}

/* Gündüz: güneş ışınları */
[data-mode="day"] .nav__mode-icon {
  box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 3.5px currentColor;
}

.nav__logo {
  justify-self: start;
  font-size: 18px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__clock {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sea);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.25; }
}

.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 30px);
  font-size: 14px;
  font-weight: 500;
}

.nav__lang {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}

.nav__lang [data-lang] { opacity: 0.4; transition: opacity 0.3s; }
.nav__lang [data-lang].is-active { opacity: 1; }
.nav__lang:hover [data-lang] { opacity: 1; }

.nav__menu { display: none; }

/* ---------- Mobil menü ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--ink);
}

.menu__links {
  display: flex;
  flex-direction: column;
}

.menu__links a {
  font-size: clamp(52px, 15vw, 110px);
  line-height: 0.95;
  border-bottom: 1px solid var(--line);
  padding-block: 10px 6px;
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dim);
}

.menu__foot a { color: var(--bone); text-transform: none; }

/* ---------- Kaydırdıkça değişen zemin tonu ---------- */

.tint {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.tint--sea { background: var(--tint-sea); }
.tint--dusk { background: var(--tint-dusk); }

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- Ekrana oturan büyük yazılar ---------- */

.fit { white-space: nowrap; }
.fit__inner { display: inline-block; white-space: nowrap; }

/* ---------- 1. Giriş ---------- */

.hero {
  position: relative;
  container-type: inline-size;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-photo);
  background: #121817;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero__img,
.hero__cut {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Derinlik katmanı: isim, fotoğraftaki kişinin arkasından geçer */
.hero__media--cut { z-index: 2; display: none; }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(10, 13, 13, 0.6) 0%, rgba(10, 13, 13, 0) 24%),
    linear-gradient(to top, rgba(10, 13, 13, 0.92) 0%, rgba(10, 13, 13, 0.55) 26%, rgba(10, 13, 13, 0) 58%);
}

.hero__top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 8px);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  z-index: 4;
}

.hero__coords { text-align: right; }

.hero__bottom {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  /* isim yüksekliği = 1.87 × yazı boyutu (telefonda iki satır) */
  bottom: calc(1.87 * (100cqw - 2 * var(--pad)) / 2.5523 + var(--pad) * 0.6 + 8px);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap);
}

.hero__lede {
  max-width: 24ch;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hero__arrow {
  display: inline-block;
  animation: nudge 2.2s var(--ease-in-out) infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero__name {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * 0.6);
  z-index: 4;
  /* genişliğe tam oturur: ölçülen oran (iki satır, dar harf) */
  font-size: calc((100cqw - 2 * var(--pad)) / 2.5523);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.8;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* Her kelime kendi maskesinde; harfler aşağıdan yükselir */
.hero__word {
  display: block;
  overflow: hidden;
  padding-block: 0.05em 0.13em;
}

.hero__word + .hero__word { margin-top: -0.16em; }
.hero__char { display: inline-block; will-change: transform; }

/* Yatay ekranlarda isim tek satır ve geniş harflerle */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero__name {
    font-size: calc((100cqw - 2 * var(--pad)) / 9.3852);
    font-stretch: 125%;
    letter-spacing: -0.035em;
  }
  .hero__word { display: inline-block; vertical-align: top; }
  .hero__word + .hero__word { margin-top: 0; }
  .hero__img,
  .hero__cut { object-position: 50% 58%; }

  /* Derinlik: isim, fotoğrafta yüz hizasından (%47) geçer.
     Kapak: 1500×2000 fotoğraf, genişliğe göre ölçeklenir (yükseklik = 4/3 × genişlik), dikey konum %58. */
  .hero__name {
    z-index: 1;
    bottom: auto;
    top: calc(0.58 * max(100svh, 600px) - 0.14667 * 100cqw - 0.49 * (100cqw - 2 * var(--pad)) / 9.3852);
    filter: drop-shadow(0 8px 36px rgba(10, 13, 13, 0.3));
  }
  .hero__media--cut { display: block; }
  .hero__bottom { bottom: calc(var(--pad) + 4px); }
}

/* ---------- 2. Merhaba ---------- */

.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(96px, 15vw, 220px) var(--pad) clamp(96px, 12vw, 180px);
}

.intro__label {
  grid-column: 1 / span 3;
  color: var(--dim);
  padding-top: 0.9em;
}

.intro__text {
  grid-column: 4 / -1;
  max-width: 21em;
  font-size: clamp(30px, 4.3vw, 66px);
  font-weight: 500;
  font-stretch: 92%;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}

.intro__text em { font-size: 1.1em; line-height: 0.9; }

.pill {
  display: inline-block;
  width: 1.75em;
  height: 0.92em;
  margin-inline: 0.04em;
  vertical-align: -0.1em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ink-3);
}

.pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 3. Hakkımda ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  align-items: start;
  padding: 0 var(--pad) clamp(120px, 14vw, 220px);
}

.about__media {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__media figcaption { color: var(--dim); }

.about__img {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--ink-3);
}

.about__img img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 0%;
}

.about__body {
  grid-column: 7 / -1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
  padding-top: clamp(0px, 5vw, 80px);
}

.about__label { color: var(--dim); }

.about__title {
  font-size: clamp(46px, 6.6vw, 108px);
  line-height: 0.88;
  text-wrap: balance;
}

.about__title em { font-size: 1.04em; line-height: 0.9; }

.about__text {
  display: grid;
  gap: 1em;
  max-width: 34em;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.about__text p + p { color: var(--dim); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--gap);
  margin-top: clamp(8px, 2vw, 24px);
}

.facts__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.facts dt { color: var(--dim); }

.facts dd {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.facts dd.facts__note {
  margin-top: -4px;
  color: var(--sea);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.facts__note:empty { display: none; }

/* ---------- 4. Kareler ---------- */

.frames {
  padding: 0 var(--pad) clamp(110px, 13vw, 200px);
}

.frames__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px var(--gap);
  margin-bottom: clamp(40px, 5vw, 80px);
}

.frames__title {
  display: flex;
  align-items: flex-start;
  gap: 0.12em;
  font-size: clamp(76px, 17vw, 290px);
  line-height: 0.76;
}

.frames__title sup {
  font-size: 12px;
  font-stretch: 100%;
  line-height: 1;
  color: var(--dim);
  margin-top: 0.4em;
}

.frames__note {
  max-width: 32ch;
  color: var(--dim);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  text-wrap: balance;
}

.chapter + .chapter { margin-top: clamp(120px, 14vw, 220px); }

.chapter__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  align-items: end;
  padding-top: clamp(20px, 2.4vw, 32px);
  margin-bottom: clamp(48px, 7vw, 112px);
  border-top: 1px solid var(--line);
}

.chapter__no {
  grid-column: 1 / span 1;
  align-self: start;
  color: var(--sea);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 0.9;
}

.chapter__title {
  grid-column: 2 / span 7;
  font-size: clamp(60px, 10vw, 170px);
  line-height: 0.8;
  padding-top: 0.04em;
}

.chapter__side {
  grid-column: 9 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter__meta { color: var(--dim); }

.chapter__text {
  max-width: 32ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
  text-wrap: pretty;
}

.frames__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(72px, 11vw, 180px);
  align-items: start;
}

.frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.frame__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--ink-3);
  container-type: size;
}

/* Fotoğraf + kombin noktaları birlikte hareket eder.
   Kutu, fotoğrafın kendi oranında (3:4) ve çerçeveyi tamamen kaplayacak kadar büyük;
   yukarı-aşağı paralaks için %18 pay bırakılır. */
.frame__inner {
  position: absolute;
  inset: -100%;
  z-index: 2;
  margin: auto;
  height: max(118cqh, 133.334cqw);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  will-change: transform;
}

.frame__inner img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: filter 1.2s var(--ease-out);
}

.frame__media:hover .frame__inner img,
.ripple { filter: brightness(1.06) saturate(1.05); }

.frame__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
}

.frame__open:focus-visible { outline-offset: -4px; }

/* Kombin noktaları */
.spot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  pointer-events: auto;
}

.spot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--on-photo);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease-out);
}

.spot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid var(--on-photo);
  animation: spot-pulse 2.6s var(--ease-out) infinite;
}

.spot:hover::before,
.spot.is-open::before { transform: scale(1.35); }

@keyframes spot-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.spot__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 13, 13, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-photo);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-6px, -50%);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.spot--left .spot__label {
  left: auto;
  right: calc(100% + 4px);
  transform: translate(6px, -50%);
}

.spot:hover .spot__label,
.spot:focus-visible .spot__label,
.spot.is-open .spot__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.frame__cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
}

.frame__no { color: var(--dim); }

.frame__title {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.frame__meta { color: var(--dim); text-align: right; }

.frame--1 { grid-column: 1 / span 7; }
.frame--2 { grid-column: 9 / span 4; margin-top: clamp(80px, 24vw, 380px); }
.frame--2 .frame__media { aspect-ratio: 3 / 4; }
.frame--3 { grid-column: 1 / span 5; }

.chapter__quote {
  grid-column: 7 / -1;
  align-self: center;
  max-width: 13em;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.frame--wide {
  grid-column: 1 / -1;
  margin-inline: calc(var(--pad) * -1);
}

.frame--wide .frame__media { aspect-ratio: 3 / 2; }
.frame--wide .frame__cap { padding-inline: var(--pad); }

/* ---------- 5. İş birlikleri ---------- */

.collab {
  padding: 0 var(--pad) clamp(110px, 13vw, 200px);
}

.collab__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.collab__label {
  grid-column: 1 / span 3;
  align-self: start;
  color: var(--dim);
  padding-top: 0.6em;
}

.collab__title {
  grid-column: 4 / -1;
  font-size: clamp(50px, 8vw, 140px);
  line-height: 0.86;
  text-wrap: balance;
}

.collab__title em { font-size: 1.04em; }

.collab__list { border-top: 1px solid var(--line); }

.collab__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 10px;
  align-items: center;
  padding-block: clamp(24px, 2.8vw, 44px);
  border-bottom: 1px solid var(--line);
}

.collab__item > * { transition: opacity 0.5s var(--ease-out); }

.collab__name {
  grid-column: 1 / span 6;
  font-size: clamp(28px, 3.9vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  transition: transform 0.8s var(--ease-out), opacity 0.5s var(--ease-out);
}

.collab__desc {
  grid-column: 7 / span 5;
  max-width: 36ch;
  color: var(--dim);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.45;
}

.collab__arrow {
  grid-column: 12;
  justify-self: end;
  font-size: clamp(20px, 1.8vw, 28px);
  transition: transform 0.7s var(--ease-out), color 0.4s, opacity 0.5s var(--ease-out);
}

.collab__list:hover .collab__item:not(:hover) > * { opacity: 0.32; }
.collab__item:hover .collab__name,
.collab__item:focus-visible .collab__name { transform: translateX(0.25em); }
.collab__item:hover .collab__arrow,
.collab__item:focus-visible .collab__arrow { transform: rotate(-45deg); color: var(--sea); }

.collab__preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: none;
  width: clamp(200px, 17vw, 290px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  background: var(--ink-3);
}

.has-cursor .collab__preview { display: block; }

.collab__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.4s, transform 0.9s var(--ease-out);
}

.collab__preview img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Kayan şerit ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(24px, 3vw, 40px);
  border-block: 1px solid var(--line);
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee span {
  padding-inline: 0.28em;
  font-size: clamp(64px, 11vw, 190px);
  line-height: 0.9;
  white-space: nowrap;
}

.marquee .is-dim { color: var(--faint); }

.marquee i {
  width: clamp(12px, 1.4vw, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sea);
  flex-shrink: 0;
  margin-inline: 0.3em;
}

/* ---------- 6. İletişim ---------- */

.contact {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(100px, 13vw, 200px) var(--pad) clamp(100px, 12vw, 180px);
}

.contact__label { color: var(--dim); }

.contact__title {
  max-width: 11em;
  font-size: clamp(54px, 9.6vw, 168px);
  line-height: 0.86;
  text-wrap: balance;
}

.contact__title em {
  display: inline-block;
  color: var(--sea);
  font-size: 1.04em;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.contact__lede {
  max-width: 34ch;
  color: var(--dim);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.4;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 44px;
  margin-top: clamp(12px, 3vw, 40px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}

.contact__col {
  grid-column: 6 / span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact__col--mail { grid-column: 1 / span 5; }
.contact__col--card { grid-column: 9 / -1; }

.qr {
  padding: 12px;
  border-radius: 6px;
  background: #e9ece8;
  line-height: 0;
}

.qr img { width: 112px; height: 112px; }
.contact__qrnote { max-width: 22ch; color: var(--dim); }
.contact__k { color: var(--dim); }

.contact__email {
  font-size: clamp(26px, 3.3vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.7s var(--ease-out);
}

.contact__email:hover { background-size: 100% 1px; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.contact__v {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.contact__time { color: var(--dim); }
.contact__k--gap { margin-top: 18px; }
.contact__insta:hover { color: var(--sea); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid:hover { background: var(--sea); border-color: var(--sea); }
.btn.is-done { background: var(--sea); color: var(--ink); border-color: var(--sea); }

/* ---------- Alt bilgi ---------- */

.footer {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(40px, 5vw, 72px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 22px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: start;
  gap: 16px clamp(24px, 4vw, 64px);
  font-size: 15px;
  font-weight: 500;
}

.footer__links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer__up { color: var(--dim); }

.footer__name {
  font-size: calc(100cqw / 9.187); /* genişliğe tam oturur (ölçülen oran) */
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow: hidden;
  padding-block: 0.04em 0.13em;
  margin-bottom: -0.06em;
}

.footer__name .fit__inner { will-change: transform; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px var(--gap);
  color: var(--dim);
}

/* ---------- Görüntüleyici ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 64px);
}

.lightbox__bg {
  position: absolute;
  inset: 0;
  background: rgba(var(--ink-rgb), 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__fig {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
  pointer-events: none;
}

.lightbox__img {
  max-width: min(100%, 1100px);
  max-height: calc(100svh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__cap { color: var(--dim); text-align: center; }

.lightbox__count,
.lightbox__close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 22px);
}

.lightbox__count { left: var(--pad); color: var(--dim); }
.lightbox__close { right: var(--pad); padding: 4px 0; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  background: rgba(var(--ink-rgb), 0.5);
  transition: background-color 0.3s, color 0.3s;
}

.lightbox__nav:hover { background: var(--bone); color: var(--ink); }
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }

/* ---------- Favori şarkı ---------- */

/* ---------- Plak rafı ve pikap ---------- */

.records {
  --c1: #b86b3d;
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1.6fr);
  grid-template-areas:
    "head head"
    "table player"
    "now now"
    "shelf shelf";
  align-items: center;
  gap: 18px var(--gap);
  margin-top: clamp(12px, 2vw, 24px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.records__head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.records__k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
}

.records__count { color: var(--dim); }
.records__deck { display: contents; }
.records .song__player { grid-area: player; }

.records__now {
  grid-area: now;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.records__playing { color: var(--sea); }

/* Pikap: 33⅓ devirde bir tur 1.8 saniye */
.turntable {
  grid-area: table;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 260px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1b2222, #0d1212);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.turntable__platter {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #090d0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Işık yansıması plakla birlikte dönmez */
.turntable__platter::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 18%, rgba(255, 255, 255, 0.07) 24%, transparent 30% 66%, rgba(255, 255, 255, 0.05) 72%, transparent 78%);
  pointer-events: none;
}

.turntable__vinyl {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #141b1b 0 1.5px, #0b1010 1.5px 3px);
}

.turntable__label {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, #0b0f0f 0 7%, var(--c1) 8% 100%);
  transition: background-color 0.4s;
}

.turntable__label::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 46%;
  width: 8%;
  height: 22%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.records.is-playing .turntable__vinyl { animation: spin 1.8s linear infinite; }

.turntable__arm {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 3px;
  height: 58%;
  border-radius: 2px;
  background: linear-gradient(#e2e7e4, #9aa5a2);
  transform-origin: 50% 0;
  transform: rotate(4deg);
  transition: transform 1s var(--ease-in-out);
}

.turntable__arm::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle, #e2e7e4 0 30%, #2a3232 32% 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.turntable__head {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 16px;
  margin-left: -5px;
  border-radius: 2px;
  background: #cfd6d3;
  transform: rotate(-18deg);
}

.records.is-playing .turntable__arm { transform: rotate(25deg); }

.turntable__rpm {
  position: absolute;
  left: 8%;
  bottom: 5%;
  color: #6f7b79;
  font-size: 10px;
}

/* Raf */
.records__shelf {
  grid-area: shelf;
  display: flex;
  gap: 14px;
  padding: 4px 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sleeve {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 108px;
  text-align: left;
}

.sleeve__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}

.sleeve__disc {
  position: absolute;
  top: 10%;
  right: -46%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c1) 0 18%, #0b1010 19% 21%, transparent 22%),
    repeating-radial-gradient(circle, #151c1c 0 1.5px, #0b1010 1.5px 3px);
  transition: transform 0.6s var(--ease-out);
}

.sleeve:hover .sleeve__art { transform: translateY(-4px); }
.sleeve:hover .sleeve__disc,
.sleeve.is-active .sleeve__disc { transform: translateX(-22%); }
.sleeve.is-active .sleeve__art { box-shadow: 0 0 0 2px var(--sea), 0 10px 24px rgba(0, 0, 0, 0.28); }

.sleeve__title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.sleeve__artist { color: var(--dim); font-size: 12.5px; line-height: 1.2; }

/* YouTube kuralı: çalar en az 200 px yüksekliğinde görünür durur */
.song__player {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #0c1111;
}

.song__frame,
.song__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.song__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 184, 188, 0.14), transparent 60%),
    #0c1111;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.song.is-loaded .song__poster { opacity: 0; visibility: hidden; }

.song__grooves {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #151c1c 0 2px, #0f1515 2px 4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

.song__grooves::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle, #0c1111 0 8%, #b86b3d 9% 100%);
}

.song__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e9ece8;
  color: #0a0d0d;
  font-size: 18px;
  padding-left: 3px;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}

.song__play:hover { transform: scale(1.08); background: var(--sea); }

.song__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.song__k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  margin-bottom: 6px;
}

.song__disc {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 18%, var(--sea) 20% 36%, var(--bone) 38% 100%);
}

.song.is-playing .song__disc { animation: spin 3s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.song__title {
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.88;
  text-transform: uppercase;
}

.song__artist {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1;
}

.song__note {
  max-width: 30ch;
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.45;
}

.song__yt { margin-top: 6px; color: var(--bone); }
.song__yt:hover { color: var(--sea); }

.song.is-blocked .song__player { box-shadow: 0 0 0 2px var(--sea); }

/* YouTube yüklenemezse: çal düğmesi yerine YouTube bağlantısı */
.song__fallback {
  position: relative;
  display: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: #e9ece8;
  color: #0a0d0d;
}

.song.is-error .song__play { display: none; }
.song.is-error .song__fallback { display: inline-flex; }

/* ---------- Su dalgası (fotoğrafın üzerinde WebGL tuvali) ---------- */

.ripple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.ripple.is-on { opacity: 1; }

/* ---------- İstanbul'un havası ---------- */

.nav__weather::before {
  content: "·";
  margin-right: 8px;
}

.weather {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.weather.is-on { display: block; }

.weather-fog {
  position: fixed;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s;
  background:
    radial-gradient(ellipse 60% 40% at 25% 40%, rgba(233, 236, 232, 0.17), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 65%, rgba(233, 236, 232, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 90%, rgba(233, 236, 232, 0.12), transparent 70%);
  animation: fog-drift 38s ease-in-out infinite alternate;
}

[data-mode="day"] .weather-fog {
  background:
    radial-gradient(ellipse 60% 40% at 25% 40%, rgba(120, 136, 133, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 65%, rgba(120, 136, 133, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 90%, rgba(120, 136, 133, 0.13), transparent 70%);
}

[data-weather="fog"] .weather-fog { opacity: 1; }

@keyframes fog-drift {
  to { transform: translate3d(7%, -3%, 0); }
}

.weather-flash {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #f4f7ff;
  opacity: 0;
}

/* ---------- Gizli sürpriz ---------- */

.fireworks {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fireworks.is-on { display: block; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  z-index: 126;
  padding: 12px 20px;
  border-radius: 999px;
  background: #e9ece8;
  color: #0a0d0d;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.footer__secret {
  flex-basis: 100%;
  order: 5;
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ---------- Gün batımı ritüeli ---------- */

.hero__sun { color: #ffd7a8; }
.hero__sun:empty { display: none; }

/* Altın saat: gün batımından önceki son 45 dakikada sayfaya sıcak bir ışık vurur */
.golden {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 3s ease;
  background:
    radial-gradient(ellipse 90% 60% at 80% 100%, rgba(255, 170, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(255, 120, 80, 0.07), transparent 70%);
}

[data-golden="on"] .golden { opacity: 1; animation: golden-breathe 9s ease-in-out infinite alternate; }

@keyframes golden-breathe {
  to { filter: brightness(1.25); }
}

/* Güneşin battığı an: sayfanın üzerinden altın rengi bir perde geçer */
.sunset-veil {
  position: fixed;
  inset: 0;
  z-index: 124;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, rgba(255, 176, 100, 0.55), rgba(221, 110, 90, 0.35) 45%, rgba(58, 42, 74, 0.5));
  mix-blend-mode: soft-light;
}

/* ---------- Sesli karşılama ---------- */

.voice {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 460px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.voice[hidden] { display: none; }

.voice__play {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}

.voice__play:hover { background: var(--sea); transform: scale(1.06); }

.voice__icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.voice.is-playing .voice__icon {
  width: 12px;
  height: 14px;
  margin-left: 0;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.voice__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.voice__wave { width: 100%; height: 34px; }
.voice__meta { color: var(--dim); }

/* ---------- Ziyaretçi duvarı ---------- */

.wall {
  padding: 0 var(--pad) clamp(110px, 13vw, 200px);
}

.wall[hidden] { display: none; }

.wall__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 16px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.wall__label { grid-column: 1 / span 3; align-self: start; color: var(--dim); padding-top: 0.6em; }

.wall__title {
  grid-column: 4 / span 6;
  font-size: clamp(50px, 8vw, 140px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.wall__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  color: var(--sea);
}

.wall__lede {
  grid-column: 10 / -1;
  max-width: 30ch;
  color: var(--dim);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.45;
}

.wall__board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.wall__empty {
  grid-column: 1 / -1;
  padding: 36px 0;
  color: var(--dim);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
}

.wall__empty[hidden] { display: none; }

.note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 170px;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}

.note:hover { transform: rotate(0deg) translateY(-4px); border-color: var(--sea); }

.note__msg {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(21px, 1.7vw, 25px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.note__by { color: var(--dim); }

.wall__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px var(--gap);
  max-width: 820px;
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}

.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--dim); }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 18px;
  resize: vertical;
  transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--sea); }
.field input:focus-visible,
.field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--sea); }

.field__count { position: absolute; right: 0; top: 0; color: var(--dim); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wall__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.wall__status { color: var(--sea); }
.wall__status.is-error { color: #e0806a; }

/* ---------- 3D kartvizit ---------- */

.card3d {
  --rx: 0deg;
  --ry: 0deg;
  --flip: 0deg;
  --mx: 50%;
  --my: 30%;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.75;
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 14px;
}

.card3d:active { cursor: grabbing; }
.card3d:focus-visible { outline: 2px solid var(--sea); outline-offset: 6px; }

.card3d__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--flip) + var(--ry)));
  transition: transform 0.9s var(--ease-out);
}

.card3d.is-dragging .card3d__inner,
.card3d.is-tilting .card3d__inner { transition: transform 0.15s linear; }

.card3d__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card3d__front {
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 24px;
  color: #e9ece8;
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(124, 184, 188, 0.22), transparent 60%),
    linear-gradient(135deg, #1a2222, #0b0f0f);
}

.card3d__back {
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0a0d0d;
  background: linear-gradient(135deg, #f1f3ef, #dfe4e0);
  transform: rotateY(180deg);
}

.card3d__back img { width: 40%; max-width: 132px; height: auto; }
.card3d__scan { color: #3c4a48; text-align: center; }

.card3d__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 45%);
  mix-blend-mode: soft-light;
}

.card3d__logo {
  position: absolute;
  top: 18px;
  left: 24px;
  color: #7cb8bc;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
}

.card3d__name {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  text-transform: uppercase;
}

.card3d__role { color: #9fb0ad; }
.card3d__lines { color: #c9d1ce; line-height: 1.6; text-transform: none; letter-spacing: 0.02em; }

/* ---------- Hikâye görüntüleyici (telefon) ---------- */

.stories {
  position: fixed;
  inset: 0;
  z-index: 145;
  overflow: hidden;
  background: #000;
  color: var(--on-photo);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.stories__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.stories__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 24%),
    linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 34%);
}

.stories__bars {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.stories__bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
}

.stories__bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.stories__head {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  left: 12px;
  right: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stories__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.stories__name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.stories__meta { color: rgba(255, 255, 255, 0.75); font-size: 10.5px; }

.stories__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  font-size: 20px;
}

.stories__cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
  z-index: 3;
  pointer-events: none;
}

.stories__no { color: rgba(255, 255, 255, 0.75); margin-bottom: 8px; }

.stories__title {
  font-size: clamp(44px, 13vw, 72px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.stories__nav {
  position: absolute;
  top: 80px;
  bottom: 0;
  z-index: 2;
}

.stories__nav--prev { left: 0; width: 34%; }
.stories__nav--next { right: 0; width: 66%; }
.stories__nav:focus-visible { outline-offset: -6px; }

/* ---------- Link sayfası (/link) ---------- */

.lk-page { min-height: 100vh; min-height: 100svh; }

.lk {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 44px) 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
}

.lk__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.lk__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 5px var(--ink), 0 0 0 6px var(--sea);
  margin-bottom: 8px;
}

.lk__name {
  font-size: 46px;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lk__bio { color: var(--dim); font-size: 16px; }

.lk__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
}

.lk__feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--on-photo);
  isolation: isolate;
}

.lk__feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.2s var(--ease-out);
}

.lk__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 13, 13, 0.75), rgba(10, 13, 13, 0) 60%);
}

.lk__feature:hover img { transform: scale(1.05); }

.lk__feature-body { display: flex; flex-direction: column; gap: 6px; }

.lk__feature-title {
  font-size: 30px;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  text-transform: uppercase;
}

.lk__feature-arrow { font-size: 22px; }

.lk__links { display: flex; flex-direction: column; gap: 10px; }

.lk__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
}

.lk__link:hover { background: var(--ink-2); border-color: var(--sea); }
.lk__link:active { transform: scale(0.98); }

.lk__link-text { display: flex; flex-direction: column; gap: 4px; }
.lk__sub { color: var(--dim); font-size: 10.5px; text-transform: none; letter-spacing: 0.02em; }

.lk__foot { margin-top: 18px; color: var(--dim); text-align: center; }

/* ---------- Ara boyutlar ---------- */

@media (max-width: 1100px) {
  .nav__mode [data-mode-label],
  .nav__music [data-music-label] { display: none; }
}

@media (max-width: 1180px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__clock { display: none; }
  .records {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "player player"
      "table now"
      "shelf shelf";
  }
}

/* ---------- Tablet ve telefon ---------- */

@media (max-width: 899px) {
  :root { --nav-h: 56px; }

  .nav { padding-block: calc(env(safe-area-inset-top, 0px) + 14px) 14px; }
  .nav__logo { font-size: 16px; }
  .nav__links { display: none; }
  .nav__right { gap: 20px; }
  .nav__menu { display: block; padding: 6px 0; }

  .hero__top { flex-direction: column; gap: 6px; }
  .hero__coords { text-align: left; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__scroll { display: none; }

  .intro__label { grid-column: 1 / -1; margin-bottom: 20px; padding-top: 0; }
  .intro__text { grid-column: 1 / -1; }

  .about__media { grid-column: 1 / span 10; }
  .about__body { grid-column: 1 / -1; padding-top: 0; }

  .chapter__no { grid-column: 1 / span 2; }
  .chapter__title { grid-column: 3 / -1; }
  .chapter__side { grid-column: 1 / -1; }

  .frame--1 { grid-column: 1 / -1; }
  .frame--2 { grid-column: 4 / -1; margin-top: 0; }
  .frame--3 { grid-column: 1 / span 10; }
  .chapter__quote { grid-column: 1 / -1; max-width: 12em; }
  .frame--wide .frame__media { aspect-ratio: 4 / 5; }
  .frame__cap { grid-template-columns: auto 1fr; row-gap: 2px; }
  .frame__meta { grid-column: 2; text-align: left; }

  .collab__label,
  .collab__title { grid-column: 1 / -1; }

  .wall__label,
  .wall__title,
  .wall__lede { grid-column: 1 / -1; }
  .wall__form { grid-template-columns: 1fr; }
  .collab__name { grid-column: 1 / span 11; }
  .collab__arrow { grid-column: 12; grid-row: 1; }
  .collab__desc { grid-column: 1 / -1; }

  .contact__col,
  .contact__col--mail,
  .contact__col--card { grid-column: 1 / -1; }
  .qr { display: none; }
  .nav__mode [data-mode-label],
  .nav__music [data-music-label] { display: none; }
  .records { grid-template-columns: 104px minmax(0, 1fr); }

  .footer__top { grid-template-columns: 1fr; }
  .footer__links { flex-direction: column; gap: 6px; }
  .footer__name { font-size: calc(100cqw / 4.9741); font-stretch: 62%; letter-spacing: -0.012em; }

  .lightbox__nav { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); margin-top: 0; }
  .lightbox__img { max-height: calc(100svh - 220px); }
}

@media (max-width: 480px) {
  .frame--2 { grid-column: 3 / -1; }
  .frame--3 { grid-column: 1 / span 11; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
