/* KorApps — baskı provası dili: dither'lı WebGL zemin arkada, içerik üstüne yapıştırılmış kâğıt şeritleri.
   Renk yok: her gri, siyah ve beyaz noktalardan oluşur. */
:root {
  --paper: #ECECE8;
  --ink: #0E0E0F;
  --ink-soft: #55555A;
  --ghost: #85858A;
  --diff: #FFFFFF;
  --f-display: "Anybody", "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --f-text: "Newsreader", Georgia, "Times New Roman", "Songti SC", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C0C0D; --ink: #EAEAE6; --ink-soft: #A3A3A6; --ghost: #6C6C70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C0C0D; --ink: #EAEAE6; --ink-soft: #A3A3A6; --ghost: #6C6C70;
  color-scheme: dark;
}
:lang(zh-Hans) { --f-text: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 40;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; padding-inline: var(--gutter); overflow-x: clip; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.slip { background: var(--paper); padding: .55em .8em; width: fit-content; max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: transparent; color: inherit; border: 1px solid currentColor;
  padding: 9px 14px; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ---------- Üst bar: fark modu, altındaki her şeyin tersi ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px;
  color: var(--diff); mix-blend-mode: difference;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.top a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top a:hover, .top a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.top .brand { font-weight: 500; }
.top nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(12px, 2.2vw, 28px); }
.top .btn:hover { background: var(--diff); color: #000; }
@media (max-width: 640px) { .top nav .sec-link { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(96px, 15vh, 170px) clamp(40px, 6vw, 88px);
}
.hero-text { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); min-width: 0; }
.hero-text > p { margin: 0; }
.name {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--name-size, clamp(72px, 13.5vw, 220px)); line-height: .8; margin: 0; letter-spacing: -.01em;
  display: flex; flex-direction: column;
}
.name .line { white-space: nowrap; }
.name .indent { padding-left: .35em; }
.ch { display: inline-block; font-variation-settings: "wdth" 50, "wght" 100; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; max-width: 34ch; }
.lede em { font-style: italic; }
.anchor { width: 100%; aspect-ratio: 1 / 1; max-width: 100%; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .name { font-size: var(--name-size, clamp(64px, 24vw, 220px)); }
  .hero .anchor { width: min(80%, 480px); justify-self: end; margin-top: -6%; }
}

/* ---------- Kayan şerit ---------- */
.ticker { margin-inline: calc(-1 * var(--gutter)); background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker-track span {
  font-family: var(--f-display); font-variation-settings: "wdth" 135, "wght" 600;
  font-size: clamp(18px, 2.3vw, 30px); text-transform: uppercase; white-space: nowrap; padding-right: 1.4em;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Bölümler ---------- */
.block { padding-block: clamp(72px, 11vw, 170px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head h2, .big {
  font-family: var(--f-display); text-transform: uppercase; margin: 0;
  font-size: clamp(52px, 10vw, 150px); line-height: .85;
  font-variation-settings: "wdth" 62, "wght" 850; text-wrap: balance; overflow-wrap: anywhere;
}
.sec-head p { margin: 0; }

/* ---------- Uygulama kartı ---------- */
.app {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.sheet { position: relative; display: block; aspect-ratio: 4 / 5; max-width: 100%; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); transition: filter .3s; }
.sheet canvas { display: block; width: 100%; height: 100%; }
a.sheet:hover, a.sheet:focus-visible { filter: invert(1); }
.app-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; background: var(--paper); padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 0 0 1px var(--ink); }
.app-body h3 {
  font-family: var(--f-display); text-transform: uppercase; margin: 0;
  font-size: clamp(48px, 7vw, 110px); line-height: .85; font-variation-settings: "wdth" 70, "wght" 850;
  transition: font-variation-settings .4s;
}
.app:hover .app-body h3 { font-variation-settings: "wdth" 140, "wght" 250; }
.app-body p { margin: 0; max-width: 46ch; }
.app-body .kicker { color: var(--ink-soft); }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.specs dt { padding-right: 24px; color: var(--ink-soft); }
.specs dd { font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app .sheet { width: min(100%, 420px); }
}

/* ---------- İlke: kaydırdıkça mürekkeplenen kelimeler ---------- */
.manifesto .label { margin: 0 0 24px; }
.words { margin: 0; font-size: clamp(28px, 4.3vw, 62px); line-height: 1.16; max-width: 19em; font-weight: 400; }
.words .hl { background: var(--paper); padding: .02em .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.words .w { color: var(--ghost); transition: color .5s; }
.words .w.on { color: var(--ink); }
.words .w.it { font-style: italic; }

/* ---------- Sıfırlar ---------- */
.zeros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.zeros li { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 2vw, 28px); min-width: 0; }
.zeros li + li { border-left: 1px solid var(--ink); }
.zeros .z { font-family: var(--f-display); font-size: clamp(72px, 10vw, 160px); line-height: .8; font-variation-settings: "wdth" 50, "wght" 900; transition: font-variation-settings .45s; }
.zeros li:hover .z { font-variation-settings: "wdth" 150, "wght" 120; }
.zeros .zl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.zeros-note { margin: 14px 0 0; color: var(--ink-soft); }
@media (max-width: 760px) {
  .zeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeros li:nth-child(3) { border-left: 0; }
  .zeros li:nth-child(n+3) { border-top: 1px solid var(--ink); }
}

/* ---------- Terminal ---------- */
.term { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1px var(--ink); min-width: 0; }
.term-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.term pre {
  margin: 0; padding: 16px 14px 18px; overflow-x: auto;
  font-family: var(--f-mono); font-size: clamp(12px, 1.2vw, 14px); line-height: 1.65; white-space: pre;
  min-height: 15.5em;
}
.term .dim { opacity: .62; }
.term .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--paper); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.keys { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; list-style: none; margin: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.keys li { font-family: var(--f-mono); font-size: 12px; min-width: 44px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid currentColor; }

/* ---------- Uygulama sayfası ---------- */
.hero.app-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.app-hero .sheet { width: min(100%, 460px); justify-self: end; }
.status { display: flex; align-items: flex-start; gap: 10px; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .45em; border: 1px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 1px, transparent 1.5px) 0 0 / 3px 3px; }
@media (max-width: 1100px) {
  .hero.app-hero { grid-template-columns: minmax(0, 1fr); }
  .app-hero .sheet { justify-self: start; width: min(80%, 420px); }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.steps li { display: grid; grid-template-columns: clamp(56px, 7vw, 96px) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px clamp(14px, 2vw, 24px); counter-increment: step; }
.steps li + li { border-top: 1px solid var(--ink); }
.steps li::before { content: counter(step); font-family: var(--f-display); font-size: clamp(40px, 5vw, 72px); line-height: .8; font-variation-settings: "wdth" 55, "wght" 850; }
.steps li { font-size: 18px; }

.note { display: flex; flex-direction: column; gap: 14px; background: var(--paper); padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 0 0 1px var(--ink); }
.note h2 { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 48px); line-height: .95; margin: 0; font-variation-settings: "wdth" 110, "wght" 400; }
.note p { margin: 0; max-width: 60ch; }

/* ---------- Gizlilik politikası ---------- */
.policy-head { padding-block: clamp(96px, 15vh, 170px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.policy-head h1 { font-family: var(--f-display); text-transform: uppercase; margin: 0; font-size: clamp(48px, 9vw, 140px); line-height: .85; font-variation-settings: "wdth" 62, "wght" 850; overflow-wrap: anywhere; text-wrap: balance; }
.policy-head p { margin: 0; }
.policy { list-style: none; margin: 0; padding: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); max-width: 1120px; }
.policy li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px clamp(20px, 4vw, 56px); padding: clamp(18px, 2.4vw, 28px); }
.policy li + li { border-top: 1px solid var(--ink); }
.policy h2 { margin: 0; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; font-variation-settings: "wdth" 95, "wght" 700; }
.policy p { margin: 0; max-width: 65ch; }
@media (max-width: 760px) { .policy li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(56px, 8vw, 120px); }
.contact-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.contact .slip { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.contact p { margin: 0; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mail { font-family: var(--f-display); font-variation-settings: "wdth" 80, "wght" 600; font-size: clamp(22px, 3.4vw, 46px); line-height: 1.05; overflow-wrap: anywhere; text-decoration: none; }
.mail:hover { text-decoration: underline; }
.contact .hint { color: var(--ink-soft); }
@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact .anchor { width: min(70%, 420px); justify-self: end; }
}
.end-pad { padding-bottom: clamp(56px, 8vw, 120px); }

footer.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px;
  padding: 14px var(--gutter);
  background: var(--ink); color: var(--paper);
}
footer.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer.foot a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }

/* Anı şeridi: footer'ın altında, telefonun alt güvenli alanını o taşır */
.memento {
  position: relative; z-index: 1; text-align: center; letter-spacing: .32em;
  padding: 7px var(--gutter) calc(7px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); color: var(--ink-soft);
}

/* ---------- İmleç ---------- */
.cursor {
  position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--diff); mix-blend-mode: difference; pointer-events: none; z-index: 30;
  opacity: 0; display: none; transition: width .25s, height .25s, margin .25s, opacity .3s;
}
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor.live { opacity: 1; }
.cursor.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }

/* WebGL yoksa noktalı yedek */
.no-gl .anchor { border-radius: 50%; background: radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px) 0 0 / 6px 6px; }

/* ---------- Göz (cables.gl) ---------- */
/* Heykelin yerine çizilir; data-eye="off" olursa canvas gizlenir ve heykel geri gelir. */
.eye { position: relative; }
.eye canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .8s; }
.eye[data-eye="on"] canvas { opacity: 1; }
.eye[data-eye="off"] canvas { display: none; }
.no-gl .eye[data-eye="on"] { background: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .words .w { transition: none; }
  .term .caret { animation: none; }
  .eye canvas { transition: none; }
}
