/* Prodex: tek açık tema. Logo renkleri temel alındı: kömür siyahı + oksit kırmızısından parlak kırmızıya geçiş.
   Yerleşim fikri: logo sahnesi, ardından açıklama + görsel ikilisi, aynı 5/7 ızgara tüm sayfada tekrar eder. */
:root {
  --paper: #ffffff;
  --steel: #eceef0;
  --line: #d3d8dc;
  --ink: #282828;
  --graphite: #5a6167;
  --red: #d12e34;
  --oxide: #a0383f;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Montserrat", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Üst bar ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: inline-flex; line-height: 0; }
.brand svg { width: 116px; height: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { border-bottom-color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }

/* ---------- Logo sahnesi ---------- */
.stage { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.stage .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.logo-anim { width: 100%; max-width: 660px; height: auto; overflow: visible; }

.glyph {
  fill-opacity: 0;
  stroke: var(--red);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    contour 1.5s cubic-bezier(.55, 0, .25, 1) calc(.25s + var(--i) * .11s) forwards,
    finish .7s ease calc(1.55s + var(--i) * .11s) forwards;
}
.glyph-ink { fill: var(--ink); }
.glyph-ex { fill: url(#pdx-ex-hero); }
.logo-tag {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 12.4px;
  fill: var(--ink);
  opacity: 0;
  animation: rise .8s ease 2.35s forwards;
}
@keyframes contour { to { stroke-dashoffset: 0; } }
@keyframes finish { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes rise { to { opacity: 1; } }

.slogan { padding-bottom: clamp(4px, .9vw, 12px); }
.slogan-en {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  color: var(--graphite);
  letter-spacing: .01em;
}
.slogan-rule {
  display: block;
  width: 56px; height: 3px;
  margin-block: 16px 14px;
  background: linear-gradient(90deg, var(--oxide), var(--red));
  transform-origin: left;
  transform: scaleX(0);
  animation: grow .6s cubic-bezier(.55, 0, .25, 1) 2.55s forwards;
}
.slogan-tr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -.005em;
}
.slogan-en, .slogan-tr { opacity: 0; animation: rise .8s ease forwards; }
.slogan-en { animation-delay: 2.45s; }
.slogan-tr { animation-delay: 2.75s; }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Ürün gösterimi: her grubun kendi slayt gösterisi ---------- */
.showcase { background: var(--steel); padding-block: clamp(48px, 7vw, 96px); }

.groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  column-gap: clamp(28px, 5vw, 80px);
}
/* iki grubun başlık, görsel, kontrol ve metin satırları aynı hizada */
.group {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.group-head { padding-bottom: clamp(22px, 2.6vw, 32px); align-self: end; }
.group-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1;
  letter-spacing: -.005em;
}
/* ana sayfadaki grup başlığı: Ürünler sayfasındaki ilgili bölüme bağlantı */
.group-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  transition: text-decoration-color .2s;
}
.group-link svg {
  display: inline-block;
  width: .5em; height: .5em;
  margin-left: .28em;
  vertical-align: .04em;
  color: var(--red);
  transition: transform .2s;
}
.group-link:hover,
.group-link:focus-visible { text-decoration-color: var(--red); }
.group-link:hover svg,
.group-link:focus-visible svg { transform: translateX(5px); }
.group-sub { margin-top: 10px; font: 500 17px/1.35 var(--font-body); color: var(--graphite); }

.frames, .captions { display: grid; }
.caption, .frame { grid-area: 1 / 1; transition: opacity .6s ease, visibility .6s; }
.caption:not(.is-active), .frame:not(.is-active) { opacity: 0; visibility: hidden; }

.frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  overflow: hidden;
}
.frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(10px, 2vw, 24px);
}
.frame .motif { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.frame.is-missing img { display: none; }
.frame.is-missing .motif { display: block; }
.motif .m-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.motif .m-thin { fill: none; stroke: var(--line); stroke-width: 1; }
.motif .m-red { fill: none; stroke: var(--red); stroke-width: 1.5; }
.motif .m-fill { fill: var(--steel); }
.motif text { font-family: var(--font-display); font-size: 15px; fill: var(--graphite); }

.controls { display: flex; align-items: center; gap: 16px; padding-block: 16px 18px; }
.segs { display: flex; gap: 5px; flex: 1; }
.seg {
  flex: 1;
  position: relative;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.seg::before, .seg::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; margin-top: -2px;
}
.seg::before { background: var(--line); }
.seg::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.seg.is-done::after { transform: scaleX(1); }
.seg.is-active::after {
  background: var(--red);
  animation: progress var(--dwell, 6s) linear forwards;
}
.seg.is-active.is-static::after { animation: none; transform: scaleX(1); }
.is-paused .seg.is-active::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.buttons { display: flex; gap: 4px; }
.btn-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s;
}
.btn-icon:hover { border-color: var(--ink); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon .i-play { display: none; }
.is-paused .btn-icon .i-play { display: block; }
.is-paused .btn-icon .i-pause { display: none; }

.caption-group { font-size: 15px; font-weight: 600; color: var(--oxide); }
.caption-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
  margin-block: 4px 8px;
}
.caption-text { font-size: 16px; color: var(--graphite); max-width: 46ch; }

/* ---------- Sayfalar ---------- */
.routes { padding-block: clamp(56px, 8vw, 112px); }
.routes .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.routes-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  max-width: 20ch;
}
.route-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.route-list li { border-top: 1px solid var(--line); }
.route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 24px 0 24px 0;
  text-decoration: none;
  transition: padding-left .25s ease;
}
.route::before {
  content: "";
  position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 3px; background: var(--red);
  transform: scaleY(0);
  transition: transform .25s ease;
}
.route:hover, .route:focus-visible { padding-left: 20px; }
.route:hover::before, .route:focus-visible::before { transform: scaleY(1); }
.route-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
}
.route-desc { color: var(--graphite); }

/* ---------- Alt bilgi ---------- */
.footer { background: var(--ink); color: #c9cdd0; padding-block: 48px 32px; font-size: 15px; }
.footer .wrap { display: grid; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand svg { width: 132px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; color: #fff; font-family: var(--font-display); font-size: 19px; }
.footer-nav a:hover { color: #ff8a8e; }
.footer-bottom { border-top: 1px solid #44484c; padding-top: 20px; }

/* ---------- Sayfa başı (iç sayfalar: Biz Kimiz, Ürünler, ...) ---------- */
@keyframes sweep { to { clip-path: inset(0 0 0 0); } }

/* ---------- Sayfa başı ---------- */
.page-head { padding-top: clamp(48px, 7vw, 104px); }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
  font: 600 15px/1 var(--font-body);
  letter-spacing: .02em;
  color: var(--oxide);
}
.eyebrow::before {
  content: "";
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--oxide), var(--red));
}
.page-statement {
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.1vw, 58px);
  line-height: 1.1;
  letter-spacing: -.005em;
  text-wrap: balance;
  opacity: 0;
  animation: rise .8s ease .15s forwards;
}
.page-statement .accent { color: var(--red); }

/* cetvel: sayfa başını altındaki içerikten ayırır */
.ruler {
  position: relative;
  height: 20px;
  margin-top: clamp(40px, 5.5vw, 72px);
  border-top: 1px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px) 0 0 / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, var(--graphite) 0 1px, transparent 1px 12px) 0 0 / 100% 10px no-repeat;
  clip-path: inset(0 100% 0 0);
  animation: sweep 1.4s cubic-bezier(.55, 0, .25, 1) .5s forwards;
}
.ruler::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 3px; height: 21px;
  background: var(--red);
}

/* ---------- Bilgi notu ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 16px);
  max-width: calc(100% - 32px);
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 2px;
  font-size: 15px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
  .stage .wrap, .routes .wrap { grid-template-columns: 1fr; }
  .slogan { padding-bottom: 0; }
  .groups { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 56px; }
  .group { grid-row: auto; grid-template-rows: none; }
}
@media (max-width: 720px) {
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 16px 10px; }
  .nav { flex-wrap: wrap; gap: 4px 22px; }
  .route { grid-template-columns: 1fr; gap: 4px; }
  .group-sub { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph, .logo-tag, .slogan-en, .slogan-tr, .slogan-rule { animation: none; }
  .glyph { fill-opacity: 1; stroke: none; }
  .logo-tag, .slogan-en, .slogan-tr { opacity: 1; }
  .slogan-rule { transform: none; }
  .caption, .frame, .route, .route::before, .toast, .group-link, .group-link svg { transition: none; }
  .page-statement { opacity: 1; animation: none; }
  .ruler { clip-path: none; animation: none; }
}
