/* ==========================================================================
   Deniz Arslan — Portfolyo
   İki katman: "bitmiş iş" (kâğıt) + "arka yüz" (cyanotype blueprint).
   Blueprint katmanı main.js tarafından <main>'in kopyasıyla oluşturulur ve
   imlecin etrafında bir maske ile açılır.
   ========================================================================== */

@property --r  { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --w  { syntax: "<number>"; inherits: true;  initial-value: 340; }

:root {
  --paper: #ECE7DD;
  --paper-2: #E3DDD1;
  --ink: #151412;
  --mute: #7D776C;
  --rule: rgb(21 20 18 / .16);
  --signal: #FF4D17;

  --bp: #1B3B8F;
  --bp-ink: #E4ECFF;
  --bp-dim: rgb(228 236 255 / .62);
  --bp-line: rgb(228 236 255 / .34);
  --bp-grid: rgb(228 236 255 / .13);
  --bp-grid-2: rgb(228 236 255 / .055);
  --bp-sig: #FFB199;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --g: clamp(16px, 3vw, 44px);
  --bar-h: 48px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

:root[data-theme="dark"] {
  --paper: #0B0B0D;
  --paper-2: #131317;
  --ink: #EFECE6;
  --mute: #8E8A82;
  --rule: rgb(239 236 230 / .14);
  --signal: #FF5520;

  --bp: #07132B;
  --bp-ink: #D8E8FF;
  --bp-dim: rgb(216 232 255 / .62);
  --bp-line: rgb(110 175 255 / .34);
  --bp-grid: rgb(110 175 255 / .14);
  --bp-grid-2: rgb(110 175 255 / .06);
  --bp-sig: #FF6E40;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, .55vw + 14px, 21px);
  line-height: 1.45;
  font-variation-settings: "SOFT" 30;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.5;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: var(--g); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; padding: 10px 14px;
}
.skip:focus { top: 8px; }

/* ── Üst bar ──────────────────────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr 1.4fr auto auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: 0 var(--g);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.bar__name { text-decoration: none; font-weight: 500; }
.bar__role, .bar__clock, .bar__scan { color: var(--mute); white-space: nowrap; }
.bar__scan b, .bar__clock span { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar__actions { display: inline-flex; align-items: center; gap: 8px; }
.bar__xray {
  font: inherit; text-transform: inherit; letter-spacing: inherit;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); padding: 6px 8px 6px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bar__xray b { font-weight: 500; min-width: 5.2ch; text-align: left; }
.bar__xray:hover { background: var(--ink); color: var(--paper); }
.bar__xray kbd {
  font: inherit; font-size: 10px; line-height: 1;
  border: 1px solid currentColor; padding: 2px 4px;
}
.bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--signal); transform-origin: left; scale: 0 1;
}

@media (max-width: 900px) { .bar { grid-template-columns: 1fr auto auto; } .bar__role, .bar__scan { display: none; } }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr auto; } .bar__clock { display: none; } .bar__xray kbd { display: none; } }

/* ── Sahne ────────────────────────────────────────────────────────────── */
.stage { position: relative; }
.page { display: block; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--bar-h) + clamp(18px, 3vw, 40px)) var(--g) clamp(24px, 4vw, 48px);
}

.hero__meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: .7rem; border-bottom: 1px solid var(--rule);
}
.hero__avail { display: inline-flex; align-items: center; gap: .55em; }
.hero__avail i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal);
}

.hero__mid {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 2vw;
  margin: clamp(1rem, 3vw, 2.5rem) 0;
}

.hero__title {
  position: relative;
  margin: 0;
  font-size: clamp(4.4rem, 19vw, 21rem);
  font-weight: 340;
  line-height: .86;
  letter-spacing: -.045em;
}
.js .hero__title:not(.is-split) { opacity: 0; }

.hero__model {
  width: 100%;
  max-height: 64svh;
  aspect-ratio: 1;
  justify-self: center;
  background: transparent;
}

@media (max-width: 800px) {
  .hero__mid { grid-template-columns: 1fr; gap: 0; }
  .hero__model { order: -1; width: min(80vw, 46svh); margin-bottom: -2rem; }
  .hero__title { font-size: 27vw; }
}

.line { display: block; white-space: nowrap; }
.line--2 { padding-left: .9em; font-style: italic; }
.dot { color: var(--signal); font-style: normal; }

.ch {
  display: inline-block;
  font-variation-settings: "opsz" 144, "wght" var(--w), "SOFT" var(--s, 0), "WONK" 1;
  transition: font-variation-settings .35s var(--ease);
}

.hero__foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.hero__lede {
  margin: 0; max-width: 30ch;
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.hero__lede em { font-style: italic; }
.hero__hint { margin: 0; text-align: right; color: var(--mute); }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

.crop { position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; border-width: 0; }
.crop--tl { top: calc(var(--bar-h) + 8px); left: 8px; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: calc(var(--bar-h) + 8px); right: 8px; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

@media (max-width: 640px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__hint { text-align: left; }
}

/* ── Bölümler ─────────────────────────────────────────────────────────── */
.sec { position: relative; padding: clamp(8.5rem, 11vw, 10rem) var(--g) 0; }

.sec-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-top: .8rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--ink);
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.sec-head__aside { text-align: right; color: var(--mute); }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head__aside { grid-column: 1 / -1; text-align: left; }
}

/* ── § 01 Kısaca ──────────────────────────────────────────────────────── */
.manifesto {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  max-width: 21em;
  font-size: clamp(1.75rem, 4.1vw, 4.1rem);
  font-weight: 350;
  line-height: 1.08;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 100, "SOFT" 40;
  --w-from: rgb(21 20 18 / .18);
  --w-to: var(--ink);
}
:root[data-theme="dark"] .manifesto {
  --w-from: rgb(239 236 230 / .22);
  --w-to: var(--ink);
}
.manifesto em { font-style: italic; }

.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.principles li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 1rem; }
.principles p { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.25; }
.principles .mono { color: var(--mute); }

.caps { list-style: none; margin: 0; padding: 0; align-self: start; }
.caps li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .65rem 0; border-top: 1px solid var(--rule);
}
.caps li:last-child { border-bottom: 1px solid var(--rule); }
.caps .mono { color: var(--mute); white-space: nowrap; }

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 1fr; gap: .3rem; }
}

/* ── § 02 İşler: canlı 3D modeller ─────────────────────────────────────── */
.stage3d {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg, var(--paper-2));
  cursor: grab;
  touch-action: pan-y;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.stage3d:active { cursor: grabbing; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage3d__hint {
  position: absolute; left: 12px; bottom: 10px;
  color: rgb(21 20 18 / .55);
  pointer-events: none;
  transition: opacity .4s, color .35s;
}
.stage3d--dark .stage3d__hint,
:root[data-theme="dark"] .stage3d__hint { color: rgb(239 236 230 / .55); }
.stage3d.is-touched .stage3d__hint { opacity: 0; }
@media (hover: none), (pointer: coarse) { .stage3d { cursor: default; } .stage3d__hint { display: none; } }

:root[data-theme="dark"] .hero__model {
  background: radial-gradient(circle at 50% 50%, rgb(255 85 32 / .07) 0%, transparent 68%) !important;
}
:root[data-theme="dark"] .piece .stage3d {
  background: radial-gradient(circle at 50% 42%, var(--dark-glow, #221B1A) 0%, var(--dark-bg, #121216) 78%) !important;
  border: 1px solid var(--rule);
}
:root[data-theme="dark"] .piece:nth-child(1) .stage3d { --dark-glow: #2A1618; --dark-bg: #120E10; }
:root[data-theme="dark"] .piece:nth-child(2) .stage3d { --dark-glow: #251F18; --dark-bg: #12100E; }
:root[data-theme="dark"] .piece:nth-child(3) .stage3d { --dark-glow: #1B2224; --dark-bg: #0E1113; }
:root[data-theme="dark"] .piece:nth-child(4) .stage3d { --dark-glow: #262118; --dark-bg: #12110E; }
:root[data-theme="dark"] .piece:nth-child(5) .stage3d { --dark-glow: #18241B; --dark-bg: #0E120F; }

.no-webgl .stage3d::after {
  content: "WebGL is not supported in this browser — model could not be displayed.";
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem;
  font: 11.5px/1.5 var(--mono); text-transform: uppercase; color: var(--mute); text-align: center;
}

.pieces { display: grid; gap: clamp(4rem, 9vw, 8rem); }

.piece {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.piece:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.piece:nth-child(even) .stage3d { order: 2; }

.piece__no { color: var(--mute); }
.piece__info h3 {
  margin: .5rem 0 1rem;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  font-weight: 370;
  line-height: .95;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.piece__info p { margin: 0 0 1.6rem; max-width: 34ch; font-size: 1.1rem; line-height: 1.4; }

.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.specs > div { padding: .7rem 0 .8rem; border-bottom: 1px solid var(--rule); }
.specs > div:nth-child(odd) { padding-right: 1rem; }
.specs dt { color: var(--mute); margin-bottom: .15rem; }
.specs dd { margin: 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .piece, .piece:nth-child(even) { grid-template-columns: 1fr; }
  .piece:nth-child(even) .stage3d { order: 0; }
}

/* ── § 03 Honest Weaknesses ───────────────────────────────────────────── */
.nope__list { list-style: none; margin: 0; padding: 0; }
.nope__list li {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 7rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
}
.nope__list li:last-child { border-bottom: 1px solid var(--rule); }
.nope__what {
  justify-self: start;
  font-size: clamp(1.45rem, 2.9vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.meter {
  position: relative;
  display: block;
  width: min(100%, 12rem);
  height: 3px;
  margin-top: .7rem;
  background: var(--rule);
}
.meter::after {
  content: ""; position: absolute; inset: 0;
  background: var(--signal);
  transform-origin: left;
  scale: var(--v, .5) 1;
}
.nope__list .mono { color: var(--mute); }
.nope__why { font-size: 1.02rem; line-height: 1.35; }
@media (max-width: 760px) {
  .nope__list li { grid-template-columns: 1fr auto; }
  .nope__why { grid-column: 1 / -1; }
}

/* ── § 04 Colophon ────────────────────────────────────────────────────── */
.colophon { position: relative; }
.colo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.colo > div { padding: 1rem 1.2rem 1.2rem 0; }
.colo > div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.colo dt { color: var(--mute); margin-bottom: .4rem; }
.colo dd { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.colo [data-time], .colo [data-live] { font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .colo { grid-template-columns: 1fr 1fr; }
  .colo > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .colo > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ── § 05 Contact ─────────────────────────────────────────────────────── */
.contact { padding-bottom: clamp(3rem, 8vw, 7rem); }
.contact__mail { position: relative; }
.mail {
  display: block;
  margin: 0; padding: 0;
  border: 0; background: none; color: inherit;
  font: inherit;
  font-size: clamp(2.6rem, 11vw, 12rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.045em;
  text-align: left;
  cursor: pointer;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.mail span {
  display: block;
  width: fit-content;
  background: linear-gradient(var(--signal), var(--signal)) 0 88% / 0% .07em no-repeat;
  transition: background-size .6s var(--ease-io);
}
.mail span + span { font-style: italic; padding-left: .5em; }
.mail:hover span, .mail:focus-visible span { background-size: 100% .07em; }
.mail:focus-visible { outline: none; }

.stamp {
  position: absolute; right: 4%; top: 10%;
  padding: .4em .8em;
  border: 3px solid var(--signal);
  color: var(--signal);
  font-family: var(--mono); font-size: clamp(14px, 1.6vw, 22px); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  rotate: -9deg; scale: 1.5; opacity: 0;
  pointer-events: none;
  transition: opacity .2s, scale .35s cubic-bezier(.3, 1.6, .5, 1);
}
.stamp.is-on { opacity: 1; scale: 1; }

.contact__help { margin: 2rem 0 0; color: var(--mute); max-width: 44ch; }
.contact__help a { color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 2.5rem 0 0; padding: 0; }

.foot {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1rem;
  padding: 1.1rem var(--g) 1.4rem;
  border-top: 1px solid var(--ink);
  color: var(--mute);
}
.foot b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.foot a { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ── Notes: visible only in the blueprint layer ───────────────────────── */
.note { display: none; }

/* ==========================================================================
   BLUEPRINT / X-RAY LAYER
   ========================================================================== */
.xray {
  position: absolute; inset: 0; z-index: 10;
  pointer-events: none;
  overflow: hidden;
  color: var(--bp-ink);
  background-color: var(--bp);
  background-image:
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-2) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(circle at var(--mx, -9999px) var(--my, -9999px), #000 calc(var(--r, 0px) - 1px), transparent var(--r, 0px));
          mask-image: radial-gradient(circle at var(--mx, -9999px) var(--my, -9999px), #000 calc(var(--r, 0px) - 1px), transparent var(--r, 0px));
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: --r .55s var(--ease-io);
}
.xray.is-full { -webkit-mask-image: none; mask-image: none; }

/* Everything in the copy: no fill, strokes only */
.xray * {
  color: var(--bp-ink) !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--bp-line) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.xray :where(.mono, .sec-head__aside, .specs dt, .nope__why, .contact__help) { color: var(--bp-dim) !important; }

.xray :where(.hero__title, .sec-head h2, .piece__info h3, .manifesto, .mail, .nope__what),
.xray :where(.hero__title, .manifesto, .mail) * {
  color: transparent !important;
  -webkit-text-stroke: 1px var(--bp-ink);
}

/* Box model: real boxes on the page */
.xray :is(.hero__meta > span, .hero__lede, .hero__hint, .line, .sec-head > *, .principles li, .caps li, .piece__info h3, .specs > div, .stage3d, .nope__list li > *, .colo > div, .mail span, .links li, .foot > *) {
  outline: 1px dashed var(--bp-line);
  outline-offset: 0;
}
.xray .ch { outline: 1px solid rgb(228 236 255 / .18); outline-offset: -1px; }
.xray .stage3d { outline: 1px solid var(--bp-line); }

/* Element tags, DevTools-style */
.xray :is(.sec-head h2, .hero__lede) { position: relative; }
.xray .sec-head h2::before,
.xray .hero__lede::before,
.xray .stage3d::before {
  position: absolute; left: 0; bottom: 100%; z-index: 3;
  font: 500 9.5px/1.6 var(--mono); letter-spacing: .04em;
  color: var(--bp-sig); -webkit-text-stroke: 0;
  text-transform: none;
  white-space: nowrap;
}
.xray .sec-head h2::before { content: "<h2>  font-size: clamp(2rem, 4.6vw, 4.4rem)"; }
.xray .hero__lede::before  { content: "<p.lede>  max-width: 30ch"; }
.xray .stage3d::before     { content: "<canvas>  WebGL · wireframe pass · hidden-line"; top: 8px; left: 10px; bottom: auto; }

.xray .meter { background: var(--bp-line) !important; }
.xray .meter::after { background: var(--bp-sig); }
.xray .dot { color: var(--bp-sig) !important; -webkit-text-stroke: 0; }
.xray .stamp { border-color: var(--bp-sig) !important; color: var(--bp-sig) !important; }
.xray .hero__avail i { outline: 1px solid var(--bp-ink); }

/* Notes */
.xray .note {
  display: block;
  position: absolute; z-index: 4;
  top: var(--t, auto); left: var(--l, auto); right: var(--rt, auto); bottom: var(--b, auto);
  width: max-content;
  max-width: min(var(--mw, 28ch), calc(100vw - 2 * var(--g)));
  padding: .6em .75em .7em;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .01em;
  text-transform: none;
  white-space: normal;
  -webkit-text-stroke: 0;
  font-style: normal;
  color: var(--bp-ink) !important;
  background-color: var(--bp) !important;
  border: 1px solid var(--bp-ink) !important;
  outline: none !important;
}
.xray .note::before {
  content: attr(data-n) "  —  backside";
  display: block;
  margin-bottom: .35em;
  color: var(--bp-sig);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 9.5px;
}
.xray .note b { -webkit-text-stroke: 0; font-weight: 500; color: var(--bp-sig) !important; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .xray :is(.note--h1, .note--h2, .note--xy) { display: none; }
}

/* ── Mercek halkası ───────────────────────────────────────────────────── */
.lens {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border: 1px solid var(--signal);
  border-radius: 50%;
  pointer-events: none;
  translate: -9999px -9999px;
  transition: --r .55s var(--ease-io), opacity .3s;
  opacity: 0;
}
.lens.is-on { opacity: 1; }
.lens::before {
  content: ""; position: absolute; inset: -9px;
  background:
    linear-gradient(var(--signal), var(--signal)) left center / 9px 1px no-repeat,
    linear-gradient(var(--signal), var(--signal)) right center / 9px 1px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center top / 1px 9px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center bottom / 1px 9px no-repeat;
}
.lens__label {
  position: absolute; left: 50%; top: calc(100% + 12px);
  translate: -50% 0;
  white-space: nowrap;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--ink); color: var(--paper);
}
.lens__label b { font-weight: 500; color: var(--signal); }
@media (hover: none), (pointer: coarse) { .lens { display: none; } }

/* ── Bildirim ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: var(--g); bottom: var(--g); z-index: 70;
  max-width: 34ch;
  padding: .9em 1.1em;
  background: var(--ink); color: var(--paper);
  text-transform: none; font-size: 12px; line-height: 1.5;
  border-left: 3px solid var(--signal);
  translate: 0 calc(100% + var(--g) + 10px);
  transition: translate .5s var(--ease-io);
}
.toast.is-on { translate: 0 0; }
.toast:empty { visibility: hidden; }

/* ==========================================================================
   HAREKET — yalnızca isteyenlere
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .is-split .ch {
    animation: ch-in 1s var(--ease) both;
    animation-delay: calc(var(--i) * 55ms + 150ms);
  }
  @keyframes ch-in {
    from { opacity: 0; translate: 0 .35em; rotate: 6deg; }
  }

  .hero__avail i { animation: ping 2.4s var(--ease) infinite; }
  @keyframes ping {
    0% { box-shadow: 0 0 0 0 rgb(255 77 23 / .6); }
    70%, 100% { box-shadow: 0 0 0 9px rgb(255 77 23 / 0); }
  }

  /* Dokunmatikte imleç yok: harfler kendi kendine nefes alır */
  @media (hover: none), (pointer: coarse) {
    .is-split .ch {
      transition: none;
      animation: ch-in 1s var(--ease) both, breathe 5s ease-in-out infinite;
      animation-delay: calc(var(--i) * 55ms + 150ms), calc(var(--i) * -.35s);
    }
    @keyframes breathe { 50% { --w: 820; } }
  }

  /* Scroll-driven animasyonlar (destek varsa) */
  @supports (animation-timeline: view()) and (animation-range: entry) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes rise { from { opacity: 0; translate: 0 2rem; } }

    .manifesto .w {
      animation: ink linear both;
      animation-timeline: view();
      animation-range: entry 90% cover 42%;
    }
    @keyframes ink { from { color: var(--w-from); } to { color: var(--w-to); } }

    .meter::after {
      animation: strike linear both;
      animation-timeline: view();
      animation-range: entry 100% cover 38%;
    }
    @keyframes strike { from { scale: 0 1; } }

    .bar::after {
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
    @keyframes progress { to { scale: 1 1; } }
  }

  /* Desteklemeyen tarayıcılar için IntersectionObserver yedeği (main.js) */
  .no-sda .reveal { opacity: 0; translate: 0 2rem; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .no-sda .reveal.is-in { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .xray, .lens { transition: none !important; }
  .ch { transition: none; }
}

@media print {
  .bar, .lens, .toast, .xray, .skip { display: none !important; }
  .hero { min-height: auto; }
}
