:root {
  --midnight: #00012d;
  --ink: #2b2958;
  --bone: #f3efe6;
  --sand: #e4dccb;
  --paper: #ffffff;
  --mist: #a5a3bc;
  --line: rgba(43, 41, 88, .35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rail: 64px;
  --measure: 62ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
h1, h2, h3 { font-weight: 400; line-height: 1.1; }
.sans { font-family: var(--sans); font-size: 13px; line-height: 1.5; letter-spacing: .01em; }

/* ---------- Giriş: iki yarı ---------- */
.split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}
.half {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 24px;
  transition: flex-basis .6s cubic-bezier(.65, 0, .35, 1);
}
.half--arch { background: var(--bone); color: var(--ink); }
.half--coll { background: var(--midnight); color: var(--paper); }
.half + .half { border-left: 1px solid var(--line); }
.half--coll { border-left-color: rgba(255,255,255,.3); }
.split:has(.half:hover) .half { flex-basis: 42%; }
.split:has(.half:hover) .half:hover { flex-basis: 58%; }
.half__logo { width: clamp(180px, 26vw, 320px); }
.half__logo svg { width: 100%; height: auto; }
.half__go {
  position: absolute;
  bottom: 40px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .02em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  opacity: .75;
  transition: opacity .3s;
}
.half:hover .half__go { opacity: 1; }
.half::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 760px) {
  .split { flex-direction: column; }
  .half { min-height: 100vh; min-height: 100dvh; flex-basis: auto !important; }
  .half + .half { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
}
@media (prefers-reduced-motion: reduce) {
  .half { transition: none; }
  .split:has(.half:hover) .half, .split:has(.half:hover) .half:hover { flex-basis: 50%; }
}

/* ---------- İç sayfa: ray + içerik ---------- */
.page { display: flex; min-height: 100vh; }
.rail {
  flex: 0 0 var(--rail);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.rail__home { width: 28px; color: var(--ink); padding: 12px; margin: -12px; box-sizing: content-box; }
.rail__home svg { width: 100%; height: auto; }
.rail__name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .32em;
  opacity: .7;
}
.rail__switch {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.rail__switch span { border-left: 1px solid currentColor; padding-left: 6px; }

.main { flex: 1 1 auto; min-width: 0; }
.wrap { max-width: 1120px; padding: 56px 56px 96px; }

.nav {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-size: 13px;
  margin-bottom: 96px;
}
.nav a { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a[aria-current] { border-bottom-color: var(--ink); }
.nav a:hover { border-bottom-color: var(--line); }

.title { font-size: clamp(40px, 6vw, 72px); font-weight: 300; letter-spacing: -.01em; max-width: 14ch; }
.lede { font-size: 24px; font-weight: 400; max-width: var(--measure); margin-top: 24px; color: var(--ink); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }

.section { margin-top: 96px; }
.section > h2 { font-size: 30px; font-weight: 400; margin-bottom: 32px; }

/* künye: etiket | değer */
.spec { font-family: var(--sans); font-size: 14px; max-width: 560px; }
.spec div { display: grid; grid-template-columns: 140px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec div:first-child { border-top: 1px solid var(--line); }
.spec dt { color: var(--ink); opacity: .6; padding-right: 16px; }
.spec dd { border-left: 1px solid var(--line); padding-left: 16px; }

/* önce / sonra */
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); --cut: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--cut)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 1px; background: var(--paper); pointer-events: none; }
.ba__line::before, .ba__line::after {
  position: absolute; bottom: 20px; font-family: var(--sans); font-size: 11px; letter-spacing: .1em;
  color: var(--paper); text-shadow: 0 0 8px rgba(0,0,0,.5); text-transform: uppercase;
}
.ba__line::before { content: "önce"; right: 14px; }
.ba__line::after { content: "sonra"; left: 14px; }
.ba input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.ba__pair figure { background: var(--bone); }
.ba__pair figcaption { font-family: var(--sans); font-size: 12px; padding: 10px 0; opacity: .7; }

/* galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-family: var(--sans); font-size: 12px; margin-top: 8px; opacity: .7; }

dialog.lightbox { border: 0; padding: 0; background: var(--midnight); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: var(--midnight); }
dialog.lightbox img { width: 100%; height: 100%; object-fit: contain; }
dialog.lightbox form { position: absolute; top: 20px; right: 24px; }
dialog.lightbox button { background: none; border: 0; color: var(--paper); font-family: var(--sans); font-size: 13px; cursor: pointer; }

/* proje listesi */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 36px; }
.projects img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.projects h3 { font-size: 26px; margin-top: 14px; }
.projects p { font-family: var(--sans); font-size: 13px; opacity: .65; margin-top: 4px; }

/* ürün detayı */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.product__media { display: grid; gap: 1px; }
.product__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); }
.product__info { border-left: 1px solid var(--line); padding-left: 48px; margin-left: 48px; position: sticky; top: 56px; align-self: start; }
.product__group { font-family: var(--sans); font-size: 13px; opacity: .65; }
.product__info h1 { font-size: clamp(36px, 4.5vw, 54px); font-weight: 300; margin-top: 8px; }
.price { font-family: var(--sans); font-size: 16px; margin-top: 20px; }
.price small { display: block; font-size: 12px; opacity: .6; margin-top: 2px; }
.note { margin-top: 32px; }
.note h2 { font-size: 22px; font-style: italic; font-weight: 400; margin-bottom: 8px; }
.product__info .spec { margin-top: 32px; max-width: none; }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14px; letter-spacing: .02em;
  padding: 14px 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--bone); cursor: pointer;
}
.btn--ghost { background: transparent; color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* koyu tema: collection iç sayfaları */
.page--coll { background: var(--midnight); color: var(--paper); }
.page--coll .rail, .page--coll .product__info { border-color: rgba(255,255,255,.3); }
.page--coll .rail__home, .page--coll .spec dt, .page--coll .lede { color: var(--paper); }
.page--coll .nav a[aria-current] { border-bottom-color: var(--paper); }
.page--coll .spec div, .page--coll .spec dd { border-color: rgba(255,255,255,.3); }
.page--coll .btn { background: var(--paper); color: var(--midnight); border-color: var(--paper); }
.page--coll .btn--ghost { background: transparent; color: var(--paper); }
.page--coll .product__media img { background: #0c0d3d; }

.foot { margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; opacity: .6; display: flex; gap: 32px; flex-wrap: wrap; }
.page--coll .foot { border-color: rgba(255,255,255,.3); }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__info { border-left: 0; padding-left: 0; margin-left: 0; position: static; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
}
@media (max-width: 700px) {
  :root { --rail: 44px; }
  .lede { font-size: 21px; }
  .title { font-size: 40px; }
  .wrap { padding: 32px 20px 72px; }
  .nav { margin-bottom: 56px; gap: 20px; }
  .section { margin-top: 64px; }
  .spec div { grid-template-columns: 110px 1fr; }
  .ba__pair { grid-template-columns: 1fr; }
  .rail__home { width: 22px; }
}

/* ---------- Faz 1 eklemeleri ---------- */
.section--tight { margin-top: 56px; }

/* koleksiyon ana sayfa: gruplar */
.groups { display: grid; gap: 1px; background: rgba(255,255,255,.3); border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.groups a { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 32px 0; background: var(--midnight); }
.groups h2 { font-size: 40px; font-weight: 300; }
.groups p { font-family: var(--sans); font-size: 14px; opacity: .7; margin-top: 6px; }
.groups img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ürün listesi */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 36px; }
.products img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: #0c0d3d; }
.products h3 { font-size: 26px; margin-top: 14px; }
.products p { font-family: var(--sans); font-size: 13px; opacity: .7; margin-top: 4px; }
.products .sold { opacity: .5; }

/* iletişim formu */
.form { max-width: 560px; font-family: var(--sans); font-size: 14px; }
.form label { display: block; margin-top: 20px; opacity: .7; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 0; font: inherit; font-size: 16px; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--ink); }
.page--coll .form input, .page--coll .form textarea { border-bottom-color: rgba(255,255,255,.3); }
.page--coll .form input:focus, .page--coll .form textarea:focus { border-bottom-color: var(--paper); }
.form .btn { margin-top: 28px; }
.form__hp { position: absolute; left: -9999px; }
.notice { font-family: var(--sans); font-size: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 560px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact dl { font-family: var(--sans); font-size: 14px; }
.contact dt { opacity: .6; margin-top: 20px; }
.contact dd { font-size: 16px; margin-top: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .groups a { grid-template-columns: 1fr; gap: 16px; } .groups h2 { font-size: 32px; } }

/* hakkında */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* önce/sonra sayfada birden fazla */
.ba + .ba { margin-top: 32px; }
.ba-title { font-family: var(--sans); font-size: 13px; opacity: .7; margin: 0 0 10px; }

/* 404 */
.big { font-size: clamp(60px, 12vw, 140px); font-weight: 300; line-height: 1; }

.lede a, .prose a, .notice a { border-bottom: 1px solid currentColor; }
@media (max-width: 700px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

/* WH Web House imzası (stdanismanlik.com.tr ile aynı hareket) */
.foot .wh { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-weight: 600; letter-spacing: .02em; opacity: 1; transition: color .25s; }
.wh b { display: grid; place-items: center; min-width: 22px; height: 18px; padding: 0 4px; border: 1px solid currentColor; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.wh:hover b { background: var(--ink); border-color: var(--ink); color: var(--bone); transform: rotate(-6deg); }
.page--coll .wh:hover b { background: var(--paper); border-color: var(--paper); color: var(--midnight); }
@media (prefers-reduced-motion: reduce) { .wh b { transition: none; } .wh:hover b { transform: none; } }
.form__kvkk { font-size: 12px; opacity: .7; margin-top: 16px; }
.form__kvkk a { border-bottom: 1px solid currentColor; }
.prose h2 { font-size: 24px; margin-top: 32px; margin-bottom: 8px; }
