/* ============================================================
   SOLAK MARKETING — tungsten edit-room
   tokens → base → nav → hero → strip → work(vgrid) →
   proof(rail) → contact → footer → motion → responsive
   ============================================================ */

:root {
  --bg-0: #131110;
  --bg-1: #1b1815;
  --bg-2: #262019;
  --line: rgba(243, 238, 231, 0.13);
  --text: #f3eee7;
  --dim: #a79d8f;
  --amber: #f0a83e;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */

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

html {
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--amber);
  color: var(--bg-0);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

/* type roles */

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

h1,
h2 {
  font-weight: 850;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding-inline: clamp(20px, 4vw, 40px);
  background: rgba(19, 17, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 900;
  font-stretch: 122%;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.brand span {
  color: var(--dim);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a,
.mail,
.socials a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  padding-bottom: 3px;
  transition: background-size 0.25s ease, color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover,
  .mail:hover,
  .socials a:hover {
    background-size: 100% 1px;
    color: var(--amber);
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(64px, 10vw, 120px) clamp(40px, 5vw, 56px);
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  margin-top: 18px;
}

/* slate */

.slate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(36px, 5vw, 56px);
  border-block: 1px solid var(--line);
}

.slate-cell {
  padding: 20px 4px 22px;
}

.slate dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.slate dd {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  line-height: 1;
}

/* ---------- film strip ---------- */

.strip {
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
  border-block: 1px solid var(--line);
  padding-block: 26px;
}

.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(
    circle at 5px 5px,
    var(--bg-0) 3px,
    transparent 3.5px
  );
  background-size: 24px 10px;
  background-repeat: repeat-x;
}

.strip::before {
  top: 8px;
}

.strip::after {
  bottom: 8px;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 48s linear infinite;
}

/* gap yerine margin: translateX(-50%) döngüsünün dikişsiz olması için */
.strip-track .frame {
  margin-right: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .strip:hover .strip-track {
    animation-play-state: paused;
  }
}

@keyframes strip-scroll {
  to {
    transform: translateX(-50%);
  }
}

.frame {
  position: relative;
  width: 86px;
  aspect-ratio: 9 / 16;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.frame span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--text);
  background: rgba(19, 17, 16, 0.62);
  padding: 2px 4px;
  border-radius: 2px;
}

/* fallback tintleri (poster yüklenmezse) */

.t-scalp {
  background-color: #5d8150;
}

.t-stretch {
  background-color: #b06570;
}

.t-lash {
  background-color: #8a6f54;
}

.t-next {
  background: var(--bg-2);
  box-shadow: none;
  border: 1px dashed rgba(240, 168, 62, 0.55);
}

.t-next span {
  color: var(--amber);
  background: none;
}

/* ---------- work: video grid ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.fbtn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.fbtn[aria-pressed="true"] {
  color: var(--bg-0);
  background: var(--amber);
  border-color: var(--amber);
}

@media (hover: hover) and (pointer: fine) {
  .fbtn:not([aria-pressed="true"]):hover {
    color: var(--text);
    border-color: var(--dim);
  }
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 12px;
}

.vcard.hide {
  display: none;
}

.vcard {
  scroll-margin-top: 84px;
}

.vplayer {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.vplayer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vad {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(19, 17, 16, 0.78);
  padding: 4px 7px;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .vad:hover {
    background: var(--amber);
    color: var(--bg-0);
  }
}

.vplayer::after {
  content: "▸";
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  background: rgba(19, 17, 16, 0.72);
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
}

.vplayer.playing::after {
  content: "■";
}

/* makbuzdan gelince hedef video vurgulanır */
.vcard:target .vplayer {
  box-shadow: 0 0 0 2px var(--amber);
}

.vcard figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.vproof {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--bg-0);
  background: var(--amber);
  border: 0;
  padding: 4px 7px;
  border-radius: 3px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.vproof:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .vproof:hover {
    background: #f6b95e;
  }
}

/* ---------- proof rail ---------- */

.proof-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.proof-card {
  flex: 0 0 200px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-1);
  scroll-snap-align: start;
  transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .proof-card:hover {
    border-color: rgba(240, 168, 62, 0.5);
  }
}

.proof-img {
  display: block;
}

.proof-img img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: top;
}

.proof-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.proof-cap b {
  color: var(--amber);
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .proof-cap:hover {
    color: var(--text);
  }
}

/* ---------- contact / footer ---------- */

.contact {
  border-top: 1px solid var(--line);
}

.mail {
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 0.04em;
  color: var(--amber);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.socials a {
  color: var(--dim);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(19, 17, 16, 0.94);
  cursor: zoom-out;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox[hidden] {
  display: none;
}

.lb-stack {
  display: grid;
  gap: 14px;
  width: min(1000px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  cursor: default;
}

.lb-stack img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
}

.lb-x {
  position: absolute;
  top: 18px;
  right: clamp(20px, 4vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.lb-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bg-0);
  background: var(--amber);
  padding: 5px 11px;
  border-radius: 3px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .lb-hint {
    animation: hint-bob 1.4s ease-in-out infinite;
  }

  @keyframes hint-bob {
    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(4px);
    }
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(10px);
    animation: rise-in 0.6s ease forwards;
    animation-delay: calc(var(--d, 0) * 90ms);
  }

  @keyframes rise-in {
    to {
      opacity: 1;
      transform: none;
    }
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track {
    animation: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .slate dd {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .section-head {
    flex-direction: column;
    gap: 6px;
  }

  .vgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-card {
    flex-basis: 170px;
  }

  .frame {
    width: 70px;
  }
}
