/* ==========================================================
   Bölümler
   ========================================================== */

/* ---------- Hero: 3D malzeme sahnesi ---------- */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--dark); color: var(--white); }
.motion .hero { height: 440vh; }
.motion .hero.no-3d { height: 100vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 62% 42%, #2e2720 0%, #1a1612 55%, var(--dark) 100%);
}
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: none; }
.hero.no-3d .hero__fallback { display: block; }
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { display: block; width: 100%; height: 100%; }
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.72) 0%, rgba(12, 10, 8, 0.25) 45%, transparent 70%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.55) 0%, transparent 35%);
}

.hero__state { position: absolute; z-index: 2; }
.hero__state--a { left: 0; right: 0; bottom: 0; padding-bottom: clamp(48px, 7vw, 96px); }
.hero__kicker { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; color: var(--bronze-hi); margin-bottom: 24px; }
.hero__title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(42px, 7.2vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero__title .char { display: inline-block; transform-origin: 50% 100%; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.hero__lead { max-width: 460px; font-size: 18px; color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Uçuş sırasında beliren malzeme adları */
.hero__state--b {
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--header-h) + 5vh);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 620px;
  pointer-events: none;
}
.hero__state--b li {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(18, 16, 13, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
}

/* Birleşme bittiğinde */
.hero__state--c { top: calc(var(--header-h) + 6vh); left: 0; right: 0; opacity: 0; visibility: hidden; }
.hero__end {
  max-width: 11ch;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero__end span { color: var(--bronze-hi); }
.hero__state--c p { max-width: 400px; margin: 22px 0 28px; color: rgba(255, 255, 255, 0.78); }

.hero__meter {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--header-h) + 28px);
  width: 220px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 10px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.hero__meter b { font-family: var(--f-head); font-weight: 600; font-size: 28px; color: var(--white); font-variant-numeric: tabular-nums; text-align: right; }
.hero__meter i { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, 0.2); }
.hero__meter em { display: block; height: 100%; background: var(--bronze-hi); transform-origin: left; transform: scaleX(0); }

html:not(.motion) .hero__state--b,
html:not(.motion) .hero__meter,
.hero.no-3d .hero__state--b,
.hero.no-3d .hero__meter { display: none; }

/* ---------- Bilgi şeridi ---------- */

.infobar { background: var(--white); border-bottom: 1px solid var(--line); }
.infobar__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.infobar a { display: flex; flex-direction: column; padding: 24px 28px 24px 0; font-weight: 500; transition: color 0.3s; }
.infobar a + a { padding-left: 28px; border-left: 1px solid var(--line); }
.infobar a:hover { color: var(--bronze); }
.infobar small { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tipografi içinden büyüyen görsel ---------- */

.statement { position: relative; background: var(--paper); }
.statement__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.statement__eyebrow { position: absolute; top: calc(var(--header-h) + 24px); left: 50%; transform: translateX(-50%); z-index: 2; }
.statement__type {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(38px, 7.4vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-align: center;
}
.st-row { display: block; white-space: nowrap; }
.st-move { display: inline-block; }
.st-img {
  display: inline-block;
  width: 1.9em;
  height: 0.78em;
  margin: 0 0.12em;
  vertical-align: -0.02em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-2);
}
.st-img img { width: 100%; height: 100%; object-fit: cover; }

/* Kaydırmayla tüm sahneyi kaplayan kopya (JS ekler) */
.st-full { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; clip-path: inset(50% 50% 50% 50%); }
.st-full img { width: 100%; height: 100%; object-fit: cover; }
.st-full::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 10, 8, 0.55), transparent 50%); }

.statement__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 40px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--white);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 24px);
  opacity: 0;
}
.statement__caption span { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.5); flex: 1 1 160px; }

/* Hareket kapalıyken: görsel bandı olarak göster */
html:not(.motion) .statement__stage { height: auto; padding: 140px 0 100px; }
html:not(.motion) .statement__caption { position: static; opacity: 1; color: var(--ink); margin: 40px var(--gutter) 0; }
html:not(.motion) .statement__caption span { border-color: var(--line); }

/* ---------- Hakkımızda ---------- */

.about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__big { font-family: var(--f-head); font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -0.015em; }
.about__text { color: var(--ink-2); }
.checks { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-weight: 500; }
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 21px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--bronze);
  border-bottom: 2px solid var(--bronze);
  transform: rotate(-45deg);
}
.about__sign { margin-top: 36px; display: flex; align-items: center; gap: 14px; }
.about__mark { width: 30px; padding: 9px; box-sizing: content-box; background: var(--dark); border-radius: 50%; }
.about__sign strong { display: block; font-weight: 600; }
.about__sign small { color: var(--muted); font-size: 14px; }

/* ---------- Hizmetler: üst üste binen kartlar ---------- */

.services { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); background: var(--paper-2); }
.stack { position: relative; }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--i, 0) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  height: min(74vh, 640px);
  margin-bottom: 6vh;
  background: var(--white);
  overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px rgba(23, 20, 15, 0.06);
}
.stack-card:nth-child(2) { --i: 1; }
.stack-card:nth-child(3) { --i: 2; }
.stack-card:nth-child(4) { --i: 3; }
.stack-card:nth-child(5) { --i: 4; margin-bottom: 0; }
.stack-card__body { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 56px); }
.stack-card__no { font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--bronze); }
.stack-card h3 { margin: auto 0 16px; font-family: var(--f-head); font-weight: 600; font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.stack-card p { color: var(--ink-2); max-width: 380px; }
.stack-card ul { margin-top: 28px; border-top: 1px solid var(--line); }
.stack-card li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.stack-card__media { overflow: hidden; }
.stack-card__media img { width: 100%; height: 115%; object-fit: cover; }
.stack-card__shade { position: absolute; inset: 0; background: var(--dark); opacity: 0; pointer-events: none; }

/* ---------- Süreç: yatay ---------- */

.process { background: var(--dark); color: var(--on-dark); }
.process__pin { padding: clamp(90px, 11vw, 140px) 0; }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.process__bar { width: min(320px, 100%); height: 2px; background: var(--line-dark); }
.process__bar i { display: block; height: 100%; background: var(--bronze-hi); transform-origin: left; transform: scaleX(0); }

.process__track {
  display: flex;
  gap: 28px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.process__track::-webkit-scrollbar { display: none; }
.phase { flex: 0 0 clamp(280px, 30vw, 460px); scroll-snap-align: start; }
.phase__media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--dark-2); }
.phase__media img { width: 120%; max-width: none; height: 100%; object-fit: cover; }
.phase__no { display: block; margin-top: 24px; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--bronze-hi); }
.phase h3 { margin: 6px 0 10px; font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 2vw, 30px); letter-spacing: -0.02em; }
.phase p { color: var(--on-dark-2); max-width: 400px; }

@media (min-width: 900px) {
  .motion .process__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 0 40px; overflow: hidden; }
  .motion .process__track { overflow: visible; width: max-content; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: 10vw; }
  .motion .phase__media { aspect-ratio: auto; height: 42vh; }
}

/* ---------- Kayan büyük yazı ---------- */

.bigline {
  display: block;
  padding: clamp(40px, 6vw, 80px) 0;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.bigline__track { display: flex; align-items: center; gap: 4vw; width: max-content; will-change: transform; }
.bigline__track span {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 150px);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.bigline__track b { width: 0.5em; height: 0.5em; font-size: clamp(56px, 9vw, 150px); background: var(--bronze); border-radius: 50%; flex: none; }
.bigline:hover .bigline__track span { color: var(--bronze); }

/* ---------- İletişim ---------- */

.contact__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__lead { margin-top: 20px; color: var(--ink-2); max-width: 440px; }
.contact__phone {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 2px no-repeat;
  padding-bottom: 8px;
  transition: background-size 0.7s var(--ease), color 0.4s;
}
.contact__phone:hover { background-size: 100% 2px; color: var(--bronze); }
.contact__list { margin-top: 28px; border-top: 1px solid var(--line); }
.contact__list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-size: 14px; padding-top: 3px; }
.contact__list dd { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--bronze); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.map-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.map-tab {
  padding: 16px 20px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: var(--white);
  color: var(--ink-2);
  font: 500 14px/1.4 var(--f-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.map-tab small { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.map-tab + .map-tab { border-left: 1px solid var(--line); }
.map-tab.is-active { border-bottom-color: var(--bronze); color: var(--ink); }
.map-frame { aspect-ratio: 4 / 3; background: var(--paper); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.85) contrast(1.05); }
.map-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--bronze); }
.map-link:hover { text-decoration: underline; }

/* ---------- Duyarlı ---------- */

@media (max-width: 900px) {
  .hero__meter { display: none; }
  .hero__state--b { max-width: none; }
  .hero__state--b li { font-size: 13px; padding: 6px 12px; }
  .infobar__inner { grid-template-columns: 1fr; }
  .infobar a { padding: 14px 0; }
  .infobar a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }

  .stack-card { grid-template-columns: 1fr; height: auto; }
  .stack-card__media { order: -1; aspect-ratio: 16 / 10; }
  .stack-card h3 { margin-top: 18px; }
}

@media (max-width: 600px) {
  .hero__title { font-size: 11vw; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .infobar a:nth-child(3) { display: none; }
  .statement__type { font-size: 10.4vw; }
  .st-row { white-space: normal; }
  .hero__state--c p { display: none; }
  .hero__state--c .btn { width: auto; margin-top: 20px; }
  .statement__caption { font-size: 15px; bottom: 28px; }
  .stack-card ul { display: none; }
  .phase { flex-basis: 82vw; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .contact__actions { flex-direction: column; }
}

/* ---------- Ürün kartlarındaki marka satırları ---------- */

.stack-card:nth-child(6) { --i: 5; margin-bottom: 0; }
.stack-card:nth-child(5) { margin-bottom: 6vh; }
.brand-rows { margin: 24px 0 0; border-top: 1px solid var(--line); }
.brand-row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.brand-row dt { font-size: 13px; color: var(--muted); padding-top: 4px; }
.brand-row dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.brand-row dd span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Markalar ---------- */

.brands { background: var(--paper); }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.brand-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.brand-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.brand-tile:hover::before { transform: translateY(0); }
.brand-tile__name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.5s var(--ease), transform 0.6s var(--ease);
}
.brand-tile img { max-width: 72%; height: 52px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.5s, opacity 0.5s, transform 0.6s var(--ease); }
/* Sadece beyaz olan logolar: açık zeminde koyu siluet, koyu hover zemininde orijinal beyaz */
.brand-tile.is-light img { filter: brightness(0); opacity: 0.6; }
.brand-tile:hover img { transform: translateY(-3px); }
.brand-tile small { font-size: 12px; color: var(--muted); transition: color 0.5s var(--ease); }
.brand-tile:hover .brand-tile__name { color: var(--bronze); transform: translateY(-3px); }
.brand-tile:hover small { color: var(--ink-2); }
/* Beyaz logolarda hover zemini koyu olur ki logo kendi renginde görünsün */
.brand-tile.is-light::before { background: var(--dark); }
.brand-tile.is-light:hover small { color: var(--on-dark-2); }
.brand-tile:hover img,
.brand-tile.is-light:hover img { filter: none; opacity: 1; }

@media (max-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tile { min-height: 110px; }
  .brand-row { grid-template-columns: 1fr; gap: 6px; }
}
