:root {
  --ivory: #FBF5EA;
  --paper: #F4EBDC;
  --ink: #2A1A12;
  --ink-soft: #5A4033;
  --muted: #7A5A2E;
  --line: #E4D6BD;
  --gold: #D9A441;
  --wine: #7A1F1F;
  --stage-dark: #1A0F0B;
  --maxw: 1440px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: Manrope, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine); }
a:hover { color: #4E1212; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 20px 40px; color: var(--ivory);
}
.site-head .brand { display: flex; align-items: baseline; gap: 12px; }
.site-head .brand b { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
.site-head .brand span { font-size: 13px; opacity: .85; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--gold); }
.lang-select { position: relative; display: inline-flex; align-items: center; }
.lang-select::after {
  content: ""; position: absolute; right: 12px; pointer-events: none;
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .7;
}
.lang-select select {
  appearance: none; -webkit-appearance: none;
  background: rgba(251, 245, 234, .07);
  border: 1px solid rgba(251, 245, 234, .22); border-radius: 999px;
  color: inherit; font: inherit; font-size: 13px; line-height: 1;
  padding: 9px 30px 9px 14px; cursor: pointer;
}
.lang-select select:hover { border-color: var(--gold); color: var(--gold); }
.lang-select select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-select option { color: #1b1b1b; background: #fff; }

/* ---------- stage ---------- */
.stage-section { position: relative; background: var(--stage-dark); }
.stage-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.stage {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
  aspect-ratio: 2752 / 1536;
}
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .maestro-on {
  inset: auto;
  left: 42.88%; top: 45.83%; width: 13.81%; height: 38.15%;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.stage.maestro .maestro-on { opacity: 1; }
.stage svg.zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage svg.zones polygon.hit { fill: transparent; cursor: pointer; }
.stage svg.zones rect.dim {
  fill: #140A06; opacity: 0; pointer-events: none;
  transition: opacity .32s cubic-bezier(.3,.7,.3,1);
}
.stage.active svg.zones rect.dim { opacity: .74; }
.stage svg.zones polygon.cone {
  opacity: 0; pointer-events: none;
  transition: opacity .32s cubic-bezier(.3,.7,.3,1);
}
.stage.active svg.zones polygon.cone { opacity: 1; }
.stage .lit {
  inset: 0; width: 100%; height: 100%; position: absolute;
  opacity: 0; pointer-events: none;
  transition: opacity .32s cubic-bezier(.3,.7,.3,1);
  filter: brightness(1.26) saturate(1.06) contrast(1.04);
  will-change: opacity;
}
.stage.active .lit { opacity: 1; }
.stage svg.zones g.glows {
  pointer-events: none; opacity: 0;
  filter: blur(22px); mix-blend-mode: screen;
  transition: opacity .32s cubic-bezier(.3,.7,.3,1);
}
.stage.active svg.zones g.glows { opacity: .34; }

.stage-card {
  position: absolute; width: min(232px, 55%); padding: 14px 16px; background: var(--ivory);
  border: 1px solid var(--gold); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20,10,6,.4);
  display: flex; flex-direction: column; gap: 6px; z-index: 4; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.7,.3,1),
              left .36s cubic-bezier(.3,.7,.3,1), top .36s cubic-bezier(.3,.7,.3,1),
              visibility 0s linear .26s;
}
.stage.active .stage-card {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.7,.3,1),
              left .36s cubic-bezier(.3,.7,.3,1), top .36s cubic-bezier(.3,.7,.3,1),
              visibility 0s;
}
.stage-card.jump { transition: opacity .26s ease, transform .26s cubic-bezier(.2,.7,.3,1), visibility 0s; }
.stage-card .eyebrow { font-family: var(--display); font-size: 14px; color: var(--muted); }
.stage-card .eyebrow:empty, .p-hero .eyebrow:empty { display: none; }
.stage-card h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.stage-card p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }
.stage-card .tags { font-size: 11px; color: var(--muted); }
.stage-card .cta { font-size: 11.5px; font-weight: 600; color: var(--wine); }
.stage-card:hover { border-color: var(--wine); }
.stage-card:hover .cta { color: #4E1212; }

.stage-caption {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 900px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; pointer-events: none;
}
.stage-caption .tagline em { font-style: italic; }
.stage-caption .tagline {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px;
  line-height: 1.2; letter-spacing: -.02em; color: var(--ivory);
  text-shadow: 0 2px 18px rgba(20,10,6,.75);
}
.stage-hint {
  font-size: 13px; color: #E8DCC6; background: rgba(20,10,6,.62);
  padding: 7px 14px; border-radius: 999px;
}
.stage-scroll::-webkit-scrollbar { height: 0; }
.stage-scroll { scrollbar-width: none; }

/* ---------- project list ---------- */
.list-section { padding: 88px 0 96px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.list-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 42px; letter-spacing: -.02em; }
.list-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist li { border-bottom: 1px solid var(--line); }
.plist a, .plist .row {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 440px) minmax(0, 1fr) auto;
  gap: 8px 28px; align-items: baseline;
  padding: 18px 44px 18px 12px; text-decoration: none; color: var(--ink); min-height: 44px;
  transition: background .18s ease, padding-left .18s ease;
}
.plist a::after {
  content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%) translateX(-6px);
  color: var(--wine); opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.plist a:hover { background: var(--paper); padding-left: 18px; }
.plist a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.plist a:focus-visible { outline: 2px solid var(--wine); outline-offset: -2px; }
.plist .num { font-size: 13px; color: var(--muted); }
.plist .name { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.plist .desc { font-size: 15px; color: var(--ink-soft); line-height: 1.5; padding-top: 2px; }
.plist .sect { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.plist .row { color: var(--muted); }

/* ---------- simple content blocks ---------- */
.block { padding: 72px 0; border-top: 1px solid var(--line); }
.block > .wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
.block .split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.block figure { margin: 0; }
.block figure img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.block figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.block h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 1.1; letter-spacing: -.02em; }
.block p { margin: 0 0 16px; max-width: 880px; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.block p:last-child { margin-bottom: 0; }
.placeholder { color: var(--muted); }
.highlight {
  margin-top: 32px; max-width: 880px; padding: 26px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.highlight .eyebrow { font-family: var(--display); font-size: 16px; color: var(--muted); }
.highlight h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.highlight .meta { font-size: 14px; line-height: 1.5; color: var(--muted); }
.highlight p { margin: 4px 0 0; font-size: 16px; }
.highlight a { font-size: 15px; font-weight: 600; }

.site-foot { background: var(--ink); color: var(--ivory); padding: 72px 0 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.site-foot h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.02em; }
.site-foot .lead { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: #E4D6BD; }
.site-foot .links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; }
.site-foot .links a { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); font-size: 17px; text-decoration: none; }
.site-foot .links a span { border-bottom: 1px solid rgba(251,245,234,.35); padding-bottom: 2px; }
.site-foot .links a svg { flex: 0 0 auto; opacity: .85; }
.site-foot .links a:hover { color: var(--gold); }
.site-foot .links a:hover span { border-color: var(--gold); }
.site-foot .colophon { width: 100%; padding-top: 36px; font-size: 11px; line-height: 1.5; color: #A8927A; text-align: center; }

/* ---------- project page ---------- */
.p-hero { position: relative; height: 620px; overflow: hidden; background: var(--stage-dark); }
.p-hero .shot {
  position: absolute; inset: 0;
  background-image: url("../img/stage.jpg");
  background-repeat: no-repeat;
  background-size: 220% auto;
}
.p-hero .veil { position: absolute; inset: 0; background: rgba(20,10,6,.58); }
.p-hero .inner { position: absolute; left: 0; right: 0; bottom: 64px; color: var(--ivory); }
.p-hero .eyebrow { font-family: var(--display); font-size: 20px; color: var(--gold); }
.p-hero h1 { margin: 14px 0 12px; font-family: var(--display); font-weight: 600; font-size: 84px; line-height: .98; letter-spacing: -.03em; }
.p-hero p { margin: 0; font-size: 22px; line-height: 1.4; max-width: 760px; color: #F1E6D2; }

.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.p-meta div { display: flex; flex-direction: column; gap: 6px; }
.p-meta dt, .p-meta .k { font-size: 13px; color: var(--muted); }
.p-meta .v { font-size: 16px; }

.p-body { display: grid; grid-template-columns: 180px minmax(0, 960px); gap: 40px; padding: 64px 0 0; }
.p-rail { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.p-rail .k { font-family: var(--display); font-size: 15px; color: var(--muted); }
.p-rail a { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9A8466; text-decoration: none; min-height: 28px; }
.p-rail a .dot { width: 8px; height: 8px; border-radius: 50%; background: #D8C7AA; flex: 0 0 auto; }
.p-rail a.on { color: var(--ink); font-weight: 600; }
.p-rail a.on .dot { width: 12px; height: 12px; background: var(--gold); }

.movement { display: flex; flex-direction: column; gap: 32px; margin-bottom: 64px; padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.movement .grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 40px; }
.movement .num { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--wine); letter-spacing: -.01em; }
.movement .mov { font-family: var(--display); font-weight: 600; font-size: 21px; }
.movement .head { font-size: 14px; color: var(--muted); }
.movement .text { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.movement p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.quote { position: relative; padding: 26px 30px 26px 56px; background: var(--paper); border-radius: 12px; }
.quote::before { content: "\201C"; position: absolute; left: 18px; top: 6px; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; color: var(--gold); }
.quote span { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.4; }
.metrics { display: flex; flex-wrap: wrap; gap: 16px; }
.metrics div { flex: 1 1 180px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.metrics b { display: block; font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--wine); letter-spacing: -.02em; }
.metrics span { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.reslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reslist li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.reslist li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.steps div { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.steps b { display: block; font-size: 16px; margin-bottom: 6px; }
.steps span { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- case study ekran görüntüleri ---------- */
.shots { display: grid; gap: 22px; }
/* masaüstü + mobil ikilisi: yan yana, mobil olan dar sütunda */
.shots.mix { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 6px 22px rgba(42, 26, 18, .08);
}
.shots figure.tall img { max-height: 560px; max-width: 100%; width: auto; margin: 0 auto; }
.shots figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) {
  .shots.mix { grid-template-columns: minmax(0, 1fr); }
  .shots figure.tall img { max-height: none; width: 100%; }
}

.imgslot { height: 340px; border: 1.5px dashed #C4AE8A; border-radius: 12px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }

.p-foot { margin-top: 48px; background: var(--ink); color: var(--ivory); padding: 48px 0; }
.p-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.p-foot a { color: var(--ivory); text-decoration: none; }
.p-foot .next { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.p-foot .next .k { font-family: var(--display); font-size: 15px; color: var(--gold); }
.p-foot .next .n { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .block > .wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .p-body { grid-template-columns: minmax(0,1fr); }
  .p-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px 18px; }
  .movement .grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .p-hero h1 { font-size: 64px; }
  .p-hero { height: 520px; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .site-head { position: static; background: var(--stage-dark); padding: 14px 16px; flex-wrap: wrap; }
  .site-nav { gap: 16px; font-size: 13px; }
  .stage-scroll .stage { width: 820px; max-width: none; }
  .stage-section { padding-bottom: 96px; }
  .stage-caption { bottom: 16px; gap: 8px; }
  .stage-caption .tagline { font-size: 20px; }
  .plist a, .plist .row { grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .plist .desc, .plist .sect { grid-column: 2; }
  .list-head { flex-direction: column; gap: 8px; }
  .p-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: minmax(0,1fr); }
  .block > .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .block h2 { font-size: 30px; }
  .block p { font-size: 17px; }
  .block .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-foot .links { align-items: flex-start; text-align: left; }
  .p-hero { height: 420px; }
  .p-hero h1 { font-size: 44px; }
  .p-hero p { font-size: 17px; }
  .p-hero .inner { bottom: 28px; }
  .movement .num { font-size: 40px; }
}

/* Dokunmatik cihazlarda hover kartı yerine doğrudan liste kullanılır */
@media (hover: none) {
  /* dokunmatikte kart biraz daha büyük ve okunur olsun */
  .stage-card { width: min(260px, 62%); padding: 12px 14px; }
  .stage-card h3 { font-size: 17px; }
}
