/* ============================================================
   CVK Koleksiyon — Sergi Salonu + Grid
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --ink: #e8e4dd;
  --ink-dim: rgba(232, 228, 221, 0.55);
  --ink-faint: rgba(232, 228, 221, 0.28);
  --hair: rgba(232, 228, 221, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --grot: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--grot);
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; overscroll-behavior: none; cursor: none; }
body.grid-view { overflow-y: auto; cursor: auto; }
@media (pointer: coarse) { body { cursor: auto; } #cursor { display: none; } }

a { color: inherit; text-decoration: none; cursor: none; }
body.grid-view a, body.grid-view button { cursor: pointer; }
button { background: none; border: none; color: inherit; font-family: inherit; cursor: none; }

/* ---------- Canvas ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
body.grid-view #gl, body.grid-view #labels { display: none; }

/* ---------- Özel imleç ---------- */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 228, 221, 0.35);
  pointer-events: none; z-index: 90;
  transition: transform 0.45s var(--ease);
  transform: scale(0.35);
}
#cursor::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px; margin: -1.5px;
  border-radius: 50%; background: var(--ink);
}
#cursor.is-link { transform: scale(0.6); border-color: rgba(232, 228, 221, 0.8); }
body.grid-view #cursor { display: none; }

/* ---------- Üst bar ---------- */
#chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(20px, 3.4vh, 34px) clamp(22px, 3.6vw, 48px);
}
.brand { font-size: 13px; letter-spacing: 0.34em; font-weight: 500; }
.brand em {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 13px; letter-spacing: 0.1em; color: var(--ink-dim); margin-left: 6px;
}
.top-nav { display: flex; gap: clamp(18px, 2.6vw, 36px); margin-left: auto; margin-right: clamp(20px, 3vw, 40px); }
.top-nav a {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); transition: color 0.3s ease;
}
.top-nav a:hover { color: var(--ink); }

#view-toggle { display: flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
#view-toggle i { font-style: normal; color: var(--ink-faint); }
#view-toggle span { color: var(--ink-faint); transition: color 0.3s ease; }
#view-toggle span.act { color: var(--ink); }
#view-toggle:hover span:not(.act) { color: var(--ink-dim); }

/* ---------- Başlık ---------- */
#page-title {
  position: fixed;
  top: clamp(64px, 11vh, 110px);
  left: clamp(22px, 3.6vw, 48px);
  z-index: 40;
  font-weight: 300;
  pointer-events: none;
}
#page-title span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: 0.05em;
  line-height: 1;
}
#page-title small {
  display: block;
  margin-top: 10px;
  font-family: var(--grot);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  color: var(--ink-dim);
}
body.grid-view #page-title { position: static; padding: clamp(110px, 16vh, 150px) clamp(22px, 3.6vw, 48px) 10px; }

/* ---------- Salon etiketleri ---------- */
#labels { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.slab-label {
  position: absolute;
  transform: translate(-50%, 0);
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}
.slab-label b {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 24px);
  letter-spacing: 0.06em;
}
.slab-label i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}

/* ---------- Grid ---------- */
#grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  padding: 24px clamp(22px, 3.6vw, 48px) 60px;
}
body.grid-view #grid { display: grid; }
.card { position: relative; overflow: hidden; }
.card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  filter: brightness(0.92);
  transform: scale(1.001);
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}
.card:hover img { transform: scale(1.05); filter: brightness(1.05); }
.card figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 2px 0;
}
.card figcaption b { font-family: var(--serif); font-weight: 300; font-size: 20px; letter-spacing: 0.05em; }
.card figcaption i { font-style: normal; font-size: 9px; letter-spacing: 0.3em; color: var(--ink-dim); }

/* ---------- Odak modu ---------- */
#focus {
  position: fixed; inset: 0; z-index: 70;
  display: flex;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
#focus.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.6s ease; }
#focus figure { flex: 1.5; overflow: hidden; }
#focus figure img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.07);
  transition: transform 1.6s var(--ease);
}
#focus.on figure img { transform: scale(1); }
#focus aside {
  flex: 1;
  min-width: 340px;
  max-width: 460px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--hair);
}
.f-idx { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
#f-name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: 0.04em; line-height: 1.05;
}
#f-desc { font-weight: 300; font-size: 13.5px; line-height: 1.75; color: rgba(232, 228, 221, 0.82); }
.f-uses-title { font-size: 9px; letter-spacing: 0.34em; color: var(--ink-dim); margin-top: 4px; }
#f-uses { font-weight: 300; font-size: 12.5px; line-height: 1.7; color: rgba(232, 228, 221, 0.68); }
.f-specs {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px;
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--hair);
}
.f-specs dt { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); }
.f-specs dd { font-size: 12px; color: var(--ink-faint); }
.f-note { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-faint); }
.f-cta {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 10.5px; letter-spacing: 0.36em;
  padding: 13px 26px;
  border: 1px solid rgba(232, 228, 221, 0.45);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.f-cta:hover { border-color: var(--ink); background: rgba(232, 228, 221, 0.06); }
.f-nav { display: flex; gap: 22px; margin-top: 12px; }
.f-nav button {
  font-size: 10px; letter-spacing: 0.24em; color: var(--ink-dim);
  transition: color 0.3s ease;
}
.f-nav button:hover { color: var(--ink); }

/* ---------- Alt şerit ---------- */
#strip {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: clamp(16px, 2.6vw, 36px); justify-content: center; flex-wrap: wrap;
  padding: 14px 20px 16px;
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-dim);
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.85) 45%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
#strip.on { opacity: 1; pointer-events: auto; }
#strip a { color: var(--ink); }
#strip a:hover { opacity: 0.6; }
body.grid-view #strip { position: static; opacity: 1; pointer-events: auto; background: none; padding-bottom: 40px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  #focus { flex-direction: column; overflow-y: auto; }
  #focus figure { flex: none; height: 42vh; }
  #focus aside { max-width: none; border-left: none; border-top: 1px solid var(--hair); justify-content: flex-start; }
  .top-nav { display: none; }
}
