/* ============================================================
   OZGUR — independent software studio
   tokens: ink #060606 · bone #EDEDE8 · dim #73736C · accent #4353FF
   type:   Anton (display) · Space Grotesk (body) · JetBrains Mono (labels)
   ============================================================ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@font-face {
  font-family: 'Anton';
  src: url('../assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #060606;
  --ink-2: #0c0c0c;
  --bone: #EDEDE8;
  --dim: #73736C;
  --line: rgba(237, 237, 232, 0.09);
  --line-strong: rgba(237, 237, 232, 0.18);
  --line-dark: rgba(6, 6, 6, 0.14);
  --accent: #4353FF;
  /* küçük metin / ince odak halkası için AA geçen açık ton (#060606 üzerinde 6.4:1) */
  --accent-lt: #7B87FF;
  --pad: clamp(20px, 4vw, 64px);
  --display: 'Anton', Impact, sans-serif;
  --body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-loading="true"] { overflow: hidden; }

img { max-width: 100%; vertical-align: top; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

/* selection */
::selection { background: var(--accent); color: var(--bone); }

/* ------------------------------------------------ WebGL canvas */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* GL-driven text: DOM copy stays for layout/a11y, GL paints the pixels */
.gl-text { color: var(--bone); }
body[data-gl="on"] .gl-text { color: transparent; }

/* ------------------------------------------------ blueprint grid */
.blueprint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  padding: 0 var(--pad);
  justify-content: space-between;
}
.blueprint i {
  width: 1px;
  height: 100%;
  background: var(--line);
}

/* ------------------------------------------------ loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__bottom {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
}
.loader__pct { color: var(--bone); }

/* ------------------------------------------------ nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: difference; /* self-inverts over the light About section */
}
.nav__logo { font-weight: 500; font-size: 13px; letter-spacing: 0.14em; }
.nav__logo-dot { color: var(--accent); mix-blend-mode: normal; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { position: relative; padding: 4px 0; color: var(--bone); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  /* 300ms hover'da tembel hissettiriyordu; UI geçişleri 150-250ms bandında olmalı */
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.nav__cta:hover, .nav__cta:focus-visible {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.nav__cta:active { transform: scale(0.97); }

/* 1px + #4353FF zayıf kalıyordu; accent-lt ile 6.4:1 ve 2px */
:focus-visible { outline: 2px solid var(--accent-lt); outline-offset: 3px; }

/* ------------------------------------------------ sections shared */
section, .footer { position: relative; z-index: 3; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--pad);
  margin-bottom: clamp(24px, 4vh, 48px);
  color: var(--dim);
}
.section-head__index { color: var(--accent); }

/* ------------------------------------------------ hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(28px, 5vh, 64px);
}
.hero__eyebrow {
  color: var(--dim);
  margin-bottom: 2vh;
}
.hero__title {
  font-family: var(--display);
  /* 'OZGUR' in Anton is ~2.33em wide — 39vw fills the padded container edge to edge */
  font-size: clamp(80px, 39vw, 660px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin-left: -0.03em;
  user-select: none;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: clamp(24px, 5vh, 56px);
}
.hero__sub {
  max-width: 420px;
  color: var(--bone);
  font-size: 15px;
}
.hero__log { color: var(--dim); text-align: right; }
.hero__log li { margin-top: 6px; white-space: nowrap; }
.hero__log .t { color: var(--accent); margin-right: 10px; }
.hero__scroll {
  position: absolute;
  right: var(--pad);
  top: 50%;
  color: var(--dim);
  writing-mode: vertical-rl;
}
.hero__media {
  position: absolute;
  left: 0; right: 0;
  top: 14%;
  height: 66%;
  pointer-events: none;
}
.hero__panel {
  position: absolute;
  left: var(--pad);
  top: 24%;
  width: 190px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 6, 6, 0.55);
  padding: 10px 12px;
  color: var(--dim);
  z-index: 4;
}
.hero__panel-title {
  display: block;
  color: var(--bone);
  margin-bottom: 8px;
}
.hero__panel-row {
  display: grid;
  grid-template-columns: 58px 1fr 30px;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  font-size: 10px;
}
.hero__panel-row .bar {
  display: block;
  height: 3px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero__panel-row .bar b {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ------------------------------------------------ works (horizontal strip) */
.works { padding: clamp(80px, 14vh, 160px) 0 0; }
.works__title {
  font-family: var(--display);
  /* 'WORKS' ~2.61em wide — 35vw ≈ full container width.
     margin, not padding: the GL texture draws from the element box origin */
  font-size: clamp(70px, 35vw, 580px);
  line-height: 0.9;
  margin: 0 var(--pad) clamp(40px, 8vh, 100px);
  user-select: none;
}
.works__stage {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.works__track {
  display: flex;
  gap: clamp(24px, 5vw, 80px);
  padding: 0 var(--pad);
  will-change: transform;
}
.works__hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--dim);
  white-space: nowrap;
}
.work {
  flex: 0 0 auto;
  width: min(56vw, 820px);
}
.work__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: box-shadow 0.6s ease;
}
/* each app radiates its own light */
.work[data-pal="stokpax"] .work__media {
  --glow: 67, 83, 255;
}
.work[data-pal="vega"] .work__media {
  --glow: 122, 59, 255;
}
.work[data-pal="altrak"] .work__media {
  --glow: 255, 177, 59;
}
.work[data-pal="reels"] .work__media {
  --glow: 255, 59, 168;
}
.work .work__media {
  border-color: rgba(var(--glow), 0.35);
  box-shadow:
    0 0 40px rgba(var(--glow), 0.22),
    0 0 140px rgba(var(--glow), 0.13),
    inset 0 0 60px rgba(var(--glow), 0.06);
}
.work:hover .work__media {
  box-shadow:
    0 0 60px rgba(var(--glow), 0.38),
    0 0 200px rgba(var(--glow), 0.2),
    inset 0 0 60px rgba(var(--glow), 0.08);
}
.work__thumb {
  width: 100%; height: 100%;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work:hover .work__thumb { transform: scale(1.06); }
.work__info { padding-top: 18px; }
.work__row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.work__date { color: var(--accent); }
.work__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 56px);
  letter-spacing: 0.02em;
  line-height: 1;
}
.work__desc {
  margin-top: 10px;
  max-width: 520px;
  color: var(--dim);
  font-size: 14px;
}
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.work__tags li {
  border: 1px solid var(--line-strong);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--bone);
  transition: border-color 0.3s;
}
.work:hover .work__tags li { border-color: var(--accent); }

/* ------------------------------------------------ about (light) */
.about {
  background: var(--bone);
  color: var(--ink);
  padding: clamp(120px, 20vh, 220px) var(--pad);
  overflow: visible;
}
/* elastic ink curves bleeding into the light section */
.curve {
  position: absolute;
  left: 0; right: 0;
  height: clamp(60px, 10vh, 120px);
  pointer-events: none;
}
.curve svg { width: 100%; height: 100%; display: block; }
.curve path { fill: var(--ink); }
.curve--top { top: -1px; }
.curve--bottom { bottom: -1px; }
.about__ghost {
  position: absolute;
  top: clamp(40px, 7vh, 90px);
  left: var(--pad);
  font-family: var(--display);
  font-size: clamp(70px, 11vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6, 6, 6, 0.16);
  user-select: none;
  pointer-events: none;
}
.about__holo {
  position: absolute;
  left: 38%;
  top: -6%;
  width: clamp(14px, 1.6vw, 26px);
  height: 112%;
  transform: rotate(27deg);
  background: linear-gradient(180deg,
    #ff5c5c 0%, #ffb13b 18%, #f2ff5c 34%, #45e0a8 52%,
    #45b8ff 68%, #7a5cff 84%, #ff5cd7 100%);
  filter: saturate(1.35) blur(0.4px);
  box-shadow: 0 0 24px rgba(122, 92, 255, 0.35);
  animation: holo-drift 7s ease-in-out infinite alternate;
}
@keyframes holo-drift {
  from { transform: rotate(27deg) translateY(-2%); filter: saturate(1.35) hue-rotate(0deg) blur(0.4px); }
  to   { transform: rotate(24deg) translateY(3%);  filter: saturate(1.35) hue-rotate(70deg) blur(0.4px); }
}
.section-head--dark { color: rgba(6,6,6,0.45); padding: 0; }
.about__mark {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 26vw, 420px);
  opacity: 0.35;
  pointer-events: none;
}
.about__mark svg { width: 100%; height: auto; }
.about__mark path, .about__mark rect {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
}
.about__manifesto {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 15em;
  margin: clamp(30px, 6vh, 70px) 0;
}
.about__manifesto .hl {
  background: var(--ink);
  color: var(--bone);
  padding: 0 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.about__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 80px);
  color: rgba(6,6,6,0.7);
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
}
.about__meta .k { display: block; color: rgba(6,6,6,0.4); margin-bottom: 4px; }

/* ------------------------------------------------ services */
.services { padding: clamp(90px, 15vh, 170px) 0; }
.services__marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 2.5vh, 30px) 0;
}
.services__marquee {
  display: block;
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 190px);
  line-height: 1;
  user-select: none;
  will-change: transform;
  white-space: nowrap;
}
.services__marquee--b {
  font-size: clamp(40px, 6.5vw, 110px);
  margin-top: -0.28em; /* rows overlap like colliding tickers */
}
.services__list {
  padding: clamp(36px, 6vh, 70px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px clamp(20px, 3vw, 50px);
  color: var(--dim);
  font-size: 12px;
}
.services__list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.services__list .n {
  display: inline-block;
  color: var(--accent);
  margin-right: 12px;
}

/* ------------------------------------------------ gallery */
.gallery { padding: clamp(80px, 13vh, 150px) 0 clamp(100px, 16vh, 190px); }
.gallery__stage {
  position: relative;
  height: clamp(360px, 62vh, 640px);
  cursor: grab;
  touch-action: pan-y;
}
.gallery__stage.dragging { cursor: grabbing; }
.gallery__hint {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  color: var(--dim);
}

/* ------------------------------------------------ footer */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(90px, 12vh, 130px) var(--pad) 26px; /* clears the fixed nav */
  overflow: hidden;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__mark { width: clamp(70px, 8vw, 120px); opacity: 0.9; }
.footer__mark svg { width: 100%; height: auto; }
.footer__mark path, .footer__mark rect {
  stroke: var(--bone);
  stroke-width: 1.5;
  fill: none;
}
.footer__cols { display: flex; gap: clamp(40px, 8vw, 130px); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { color: var(--dim); transition: color 0.3s; }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--bone); }
.footer__col-title { color: var(--dim); margin-bottom: 6px; }
/* wordmark constructs itself on scroll: guides + outline → solid fill */
.footer__wordmark {
  position: relative;
  font-family: var(--display);
  font-size: clamp(90px, 37vw, 620px);
  line-height: 0.8;
  text-align: center;
  margin-top: clamp(40px, 8vh, 90px);
  margin-bottom: clamp(30px, 5vh, 60px);
  letter-spacing: 0.01em;
  user-select: none;
}
.footer__wm-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 237, 232, 0.28);
}
.footer__wm-solid {
  position: absolute;
  inset: 0;
  color: var(--bone);
  clip-path: inset(0 100% 0 0);
}
.footer__wm-guides { position: absolute; inset: -6% 0; pointer-events: none; }
.footer__wm-guides .g { position: absolute; background: var(--line-strong); }
.footer__wm-guides .g--cap  { left: -4vw; right: -4vw; top: 12%; height: 1px; }
.footer__wm-guides .g--base { left: -4vw; right: -4vw; bottom: 8%; height: 1px; }
.footer__wm-guides .g--d1,
.footer__wm-guides .g--d2 {
  top: -30%; bottom: -30%;
  left: 50%; width: 1px;
}
.footer__wm-guides .g--d1 { transform: rotate(32deg); }
.footer__wm-guides .g--d2 { transform: rotate(-32deg); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ------------------------------------------------ responsive */
@media (max-width: 768px) {
  .blueprint i:nth-child(4), .blueprint i:nth-child(5) { display: none; }
  .nav__links { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__log { text-align: left; }
  .hero__scroll { display: none; }
  .hero__panel { display: none; }
  .work { width: 84vw; }
  .about__ghost { font-size: 17vw; }
  .about__mark {
    position: static;
    transform: none;
    width: 150px;
    margin-top: 30px;
  }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* no pinning — the strip becomes a plain horizontal scroller */
  .works__stage { height: auto; overflow-x: auto; padding-bottom: 40px; }
  .works__track { width: max-content; }
  .works__hint { display: none; }
}
