/* ==========================================================================
   Arslanlı Yatırım & Danışmanlık · v3 "Evrak"
   Ortak tasarım sistemi: renkler, yazı, kâğıt, üst bilgi, fihrist, alt bilgi,
   kaşe, kalem işaretleri, düğmeler, formlar, sayfa geçişleri.
   ========================================================================== */

/* ---------- Yazı tipleri (SIL Open Font License, assets/fonts) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Display";
  src: url("../fonts/newsreader-display.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Değişkenler ---------- */

:root {
  /* kâğıt */
  --paper: #eeeae1;
  --paper-2: #e4dfd2;
  --sheet: #f9f7f2;
  --kraft: #c9b48a;

  /* mürekkep */
  --ink: #1a1a1d;
  --ink-2: #47464a;
  --ink-3: #7a766d;
  --rule: rgba(26, 26, 29, 0.16);
  --rule-2: rgba(26, 26, 29, 0.32);

  /* kalemler: logodaki lacivert ve somon, masadaki tükenmez ve kırmızı kaleme dönüşür */
  --pen: #23409c;
  --navy: #1a3870;
  --red: #cf412f;
  --salmon: #de7468;
  --hl: #f2df4f;

  /* telli dosya renkleri */
  --f-blue: #8ea8d4;
  --f-green: #9fbb98;
  --f-red: #dc7c6d;
  --f-orange: #e39b62;
  --f-lilac: #b2a5d0;
  --f-yellow: #e8cd68;
  --f-grey: #b8b5ad;
  --f-manila: #d9c69c;
  --f-pink: #e2aab0;

  --bg: var(--paper);
  --fg: var(--ink);

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-display: "Newsreader Display", "Newsreader", Georgia, serif;
  --font-type: "Courier Prime", "Courier New", monospace;

  --t-mega: clamp(3.4rem, 10.5vw, 11.5rem);
  --t-h1: clamp(2.7rem, 6.6vw, 7rem);
  --t-h2: clamp(2.1rem, 4.4vw, 4.6rem);
  --t-h3: clamp(1.45rem, 2.2vw, 2.1rem);
  --t-lead: clamp(1.22rem, 1.75vw, 1.55rem);
  --t-body: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --gutter: clamp(16px, 2.6vw, 36px);
  --wrap: 1480px;
  --section: clamp(72px, 8.5vw, 136px);
  --hdr-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* ---------- Temel ---------- */

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

html {
  overflow-x: clip; /* dönen kaşe, kopan yaprak gibi süslemeler yatay kaydırma yaratmasın */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: var(--t-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* kâğıt lifi: çok hafif, sabit bir gren */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .09  0 0 0 0 .08  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body[data-theme="dark"] {
  --bg: #121214;
  --fg: #ece8de;
  --ink-2: #b9b5ab;
  --ink-3: #8c887f;
  --rule: rgba(236, 232, 222, 0.16);
  --rule-2: rgba(236, 232, 222, 0.32);
  color-scheme: dark;
}

main { position: relative; z-index: 1; display: block; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

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

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

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

.skip {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--t-small);
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Yazı ---------- */

.display {
  font-family: var(--font-sans);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1; /* Türkçe: İ/Ğ noktaları üst satırdaki harfin altında çengel gibi görünmesin */
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display--x { font-stretch: 112%; font-weight: 750; letter-spacing: -0.03em; }
.serif-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.italic { font-style: italic; }

.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.12; }
.lead { font-size: var(--t-lead); line-height: 1.38; color: var(--ink-2); text-wrap: pretty; }
body[data-theme="dark"] .lead { color: var(--ink-2); }
.small { font-size: var(--t-small); }

/* küçük etiket: italik serif, büyük harf ve mono kullanılmaz */
.label {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-small);
  color: var(--ink-3);
  letter-spacing: 0;
}
.label b { font-style: normal; font-family: var(--font-sans); font-weight: 600; font-stretch: 85%; color: var(--fg); }

.ui {
  font-family: var(--font-sans);
  font-stretch: 88%;
  font-weight: 560;
  letter-spacing: 0.005em;
}

.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose h2 {
  margin: 1.8em 0 0.5em;
  font-family: var(--font-sans);
  font-weight: 750;
  font-stretch: 80%;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.1;
}
.prose ul, .prose ol { padding-left: 1.2em; margin: 1em 0; }
.prose li + li { margin-top: 0.35em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* fosforlu kalem */
mark, .hl {
  color: inherit;
  background: linear-gradient(100deg, transparent 0.2em, var(--hl) 0.35em, var(--hl) calc(100% - 0.3em), transparent calc(100% - 0.1em)) no-repeat 0 62% / var(--hl-size, 100%) 72%;
  padding: 0 0.12em;
  margin: 0 -0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  mix-blend-mode: multiply;
}
body[data-theme="dark"] mark { mix-blend-mode: normal; color: var(--ink); }
.js [data-hl] { --hl-size: 0%; transition: background-size 0.9s var(--ease-out); }
.js [data-hl].is-on { --hl-size: 100%; }

/* metin bağlantısı: üzerine gelince fosforlu kalemle çizilir */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 85% / 0% 55%;
  transition: background-size 0.45s var(--ease-out), text-decoration-color 0.2s;
}
.link:hover { background-size: 100% 55%; text-decoration-color: transparent; }
body[data-theme="dark"] .link:hover { color: var(--ink); }

/* ---------- Düğmeler: kaşe ---------- */

.btn {
  --b-fg: var(--fg);
  --b-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.35em 0.95em 1.4em;
  border: 1.5px solid var(--b-fg);
  border-radius: 7px;
  background: var(--b-bg);
  color: var(--b-fg);
  box-shadow: inset 0 0 0 3px var(--b-bg-solid, var(--bg)), inset 0 0 0 4.5px var(--b-fg);
  font-family: var(--font-sans);
  font-weight: 650;
  font-stretch: 82%;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-stamp), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: rotate(-1.6deg) translateY(-1px); }
.btn:active { transform: rotate(-1.6deg) scale(0.955); transition-duration: 0.08s; }
.btn--ink {
  --b-bg: var(--ink);
  --b-bg-solid: var(--ink);
  --b-fg: var(--paper);
  border-color: var(--ink);
}
body[data-theme="dark"] .btn--ink { --b-bg: var(--fg); --b-bg-solid: var(--fg); --b-fg: var(--ink); border-color: var(--fg); }
.btn--red { --b-fg: var(--red); }
.btn--sm { font-size: 0.875rem; padding: 0.75em 1em; }
.btn .arw { width: 1.6em; height: 0.8em; flex: none; overflow: visible; }
.btn .arw path { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.btn:hover .arw path { animation: arw-draw 0.55s var(--ease-out); }
@keyframes arw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Kalem işaretleri (el çizimi) ---------- */

.annot {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  color: var(--pen);
}
.annot path {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sw, 2.2);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.annot--red { color: var(--red); }
/* kalem çizgisi soldan sağa çizilir (gerilmiş SVG'de dash yöntemi Chrome'da kesik çizer; kırpma kullanılır) */
.js .annot { clip-path: inset(-30% 100% -30% -4%); }
.js .annot.is-on { clip-path: inset(-30% -4% -30% -4%); transition: clip-path var(--d, 0.9s) cubic-bezier(0.55, 0.1, 0.35, 1) var(--delay, 0s); }
.annot-wrap { position: relative; display: inline-block; white-space: nowrap; }
.annot--circle { inset: -0.32em -0.45em -0.28em -0.5em; width: calc(100% + 0.95em); height: calc(100% + 0.6em); }
.annot--under { left: -0.1em; right: -0.1em; bottom: -0.32em; width: calc(100% + 0.2em); height: 0.42em; }

/* ---------- Kaşe ---------- */

.kase {
  display: inline-block;
  color: var(--pen);
  mix-blend-mode: multiply;
  transform: rotate(var(--rot, -5deg));
  filter: url(#ink);
}
body[data-theme="dark"] .kase { mix-blend-mode: screen; color: #8ea3ee; }
.kase svg { width: 100%; height: auto; overflow: visible; }
.kase text { font-family: var(--font-sans); fill: currentColor; }
.kase--red { color: var(--red); }
.js .kase[data-stamp] { opacity: 0; }
.js .kase[data-stamp].is-on { animation: stamp 0.5s var(--ease-out) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(calc(var(--rot, -5deg) - 6deg)) scale(1.6); }
  55% { opacity: 1; transform: rotate(var(--rot, -5deg)) scale(0.97); }
  100% { opacity: 1; transform: rotate(var(--rot, -5deg)) scale(1); }
}

/* ---------- Üst bilgi ---------- */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--hdr-h);
  color: var(--fg);
  view-transition-name: hdr;
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}
.hdr.is-hidden { transform: translateY(-110%); }
html:not(.js) .hdr { position: absolute; } /* JS yoksa üst bilgi sayfayla birlikte kayar, metnin üstüne binmez */
.hdr__in {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.hdr__in > * { pointer-events: auto; }
.hdr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 1px 0 var(--rule);
}
.hdr.is-solid::before { opacity: 0.94; }
.hdr__brand { position: relative; display: block; width: clamp(118px, 11vw, 150px); color: var(--navy); }
body[data-theme="dark"] .hdr__brand { color: var(--fg); }
.hdr__folio {
  position: relative;
  justify-self: center;
  font-style: italic;
  font-size: var(--t-small);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hdr__folio b { font-style: normal; font-family: var(--font-sans); font-weight: 600; font-stretch: 85%; color: var(--fg); }
.hdr__act { position: relative; display: flex; align-items: center; gap: 10px; }
.hdr__menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 10px 12px;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--font-sans);
  font-weight: 650;
  font-stretch: 82%;
  font-size: 1rem;
}
.hdr__tabs { display: grid; gap: 3px; width: 22px; }
.hdr__tabs i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out); }
.hdr__tabs i:nth-child(1) { width: 100%; }
.hdr__tabs i:nth-child(2) { width: 72%; margin-left: auto; }
.hdr__tabs i:nth-child(3) { width: 88%; }
.hdr__menu:hover .hdr__tabs i:nth-child(2) { width: 100%; }
.hdr__menu:hover .hdr__tabs i:nth-child(3) { width: 60%; }
.hdr__cta { font-size: 0.875rem; padding: 0.8em 1.05em; }

@media (max-width: 860px) {
  .hdr__folio { display: none; }
  .hdr__cta { display: none; }
  .hdr__in { grid-template-columns: auto 1fr auto; }
  :root { --hdr-h: 64px; }
}

/* logo */
.logo { width: 100%; height: auto; overflow: visible; }
.logo__word { fill: currentColor; }
.logo__wave rect {
  fill: var(--salmon);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scaleY(var(--s, 1));
}
body[data-theme="dark"] .logo__wave rect { fill: var(--salmon); opacity: 0.9; }

/* ---------- Fihrist (menü) ---------- */

.fih {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  background: var(--sheet);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.fih.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.75s var(--ease-out), visibility 0s; }
.fih__in {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 28px clamp(28px, 5vw, 96px);
  min-height: 100%;
  padding-top: 0;
  padding-bottom: 28px;
}
.fih__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; height: var(--hdr-h); }
.fih__top .hdr__brand { color: var(--navy); }
.fih__close {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 10px 4px;
  font-family: var(--font-sans); font-weight: 650; font-stretch: 82%; font-size: 1rem;
}
.fih__close svg { width: 18px; height: 18px; }
.fih__h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); margin-bottom: 6px; }
.fih__h span { font-family: var(--font-sans); font-weight: 800; font-stretch: 68%; font-size: clamp(1.6rem, 2.4vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.01em; }
.fih__h em { font-size: var(--t-small); color: var(--ink-3); }

.idx { counter-reset: none; }
.idx a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0.12em 0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 760;
  font-stretch: 72%;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.idx a .t { position: relative; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 78% / 0% 46%; transition: background-size 0.4s var(--ease-out); }
.idx a:hover .t, .idx a[aria-current="page"] .t { background-size: 100% 46%; }
.idx a .dots {
  flex: 1;
  min-width: 24px;
  height: 0.12em;
  align-self: center;
  margin-top: 0.3em;
  background: radial-gradient(circle, currentColor 1.1px, transparent 1.6px) 0 50% / 9px 4px repeat-x;
  opacity: 0.55;
  transform-origin: left;
}
.idx a .pg { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.42em; min-width: 2.2em; text-align: right; color: var(--ink-3); }
.idx--sm a { font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 650; font-stretch: 80%; padding: 0.3em 0; }
.idx--sm a .pg { font-size: 0.7em; }
.idx .tab { width: 14px; height: 18px; flex: none; align-self: center; border-radius: 3px 3px 0 0; background: var(--c, var(--f-manila)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }

.fih__side { display: grid; align-content: start; gap: 34px; }
.fih__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
  color: var(--ink-2);
}
.fih__foot a { text-decoration: none; }
.fih__foot a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .fih__in { grid-template-columns: 1fr; }
  .fih__side { gap: 26px; }
}

/* ---------- Alt bilgi: yazının kapanışı ---------- */

.ftr {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 150px) 0 28px;
  border-top: 1px solid var(--rule);
}
.ftr__close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}
.ftr__salute { font-family: var(--font-display); font-style: normal; font-size: clamp(2.6rem, 7vw, 7.2rem); line-height: 0.95; letter-spacing: -0.025em; }
.ftr__salute em { font-family: var(--font-serif); font-style: italic; }
.ftr__sign { margin-top: 18px; max-width: 48ch; color: var(--ink-2); }
.ftr__kase { width: clamp(250px, 28vw, 380px); --rot: -7deg; margin-right: clamp(0px, 3vw, 48px); }

.ftr__ekler {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 32px;
  padding-top: 22px;
  border-top: 1.5px solid var(--fg);
}
.ftr__ekler > h2 { font-family: var(--font-sans); font-weight: 800; font-stretch: 70%; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.ftr__ek { display: grid; gap: 6px; align-content: start; }
.ftr__ek .label { font-size: var(--t-micro); }
.ftr__ek a { text-decoration: none; }
.ftr__ek a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ftr__ek .big { font-family: var(--font-sans); font-weight: 650; font-stretch: 85%; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.25; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--t-small); }
.ftr__base {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: var(--t-micro);
  color: var(--ink-3);
}
.ftr__base a { color: inherit; text-decoration: none; }
.ftr__base a:hover { color: var(--fg); text-decoration: underline; }
.ftr__base nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 900px) {
  .ftr__close { grid-template-columns: 1fr; }
  .ftr__kase { justify-self: end; width: min(300px, 80vw); }
  .ftr__ekler { grid-template-columns: 1fr 1fr; }
  .ftr__ekler > h2 { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ftr__ekler { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp ---------- */

.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 15px 11px 12px;
  background: var(--sheet);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-sans); font-weight: 650; font-stretch: 82%; font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.wa svg { width: 20px; height: 20px; color: #1c8a4a; }
.wa:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.wa:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 520px) { .wa span { display: none; } .wa { padding: 12px; } }

/* ---------- Formlar ---------- */

.field { display: grid; gap: 6px; }
.field label, .field .flabel { font-family: var(--font-serif); font-style: italic; font-size: var(--t-small); color: var(--ink-2); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  padding: 10px 0 9px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--rule-2);
  border-radius: 0;
  font-family: var(--font-type);
  font-size: 1.0625rem;
  color: var(--fg);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--pen); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 0.7; }
.field__err { min-height: 0; font-family: var(--font-sans); font-size: var(--t-micro); color: var(--red); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: var(--red); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 1.5px solid var(--fg);
  border-radius: 3px;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--pen);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 18%, 86% 4%, 38% 72%);
  transform: scale(0) rotate(-12deg);
  transition: transform 0.25s var(--ease-stamp);
}
.check input:checked::after { transform: scale(1.15) rotate(-6deg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-family: var(--font-sans); font-stretch: 88%; font-size: var(--t-small); min-height: 1.4em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #1c7a43; }

/* ---------- Bülten kaydı: kenardaki ayraç ve resmi form ---------- */

.nl-tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 54;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 15px 11px;
  writing-mode: vertical-rl;
  background: var(--hl);
  color: var(--ink);
  border-radius: 8px 0 0 8px;
  box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.06), -8px 12px 22px -14px rgba(0, 0, 0, 0.45);
  font-family: var(--font-sans);
  font-weight: 700;
  font-stretch: 82%;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translate(7px, -50%);
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
/* yapışkan ayracın sayfaya yapışan, biraz daha koyu ucu */
.nl-tab::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 9px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
}
.nl-tab svg { width: 18px; height: 18px; flex: none; }
.nl-tab:hover, .nl-tab:focus-visible { transform: translate(0, -50%); }
.fih.is-open ~ .nl-tab { opacity: 0; pointer-events: none; }
body[data-theme="dark"] .nl-tab { box-shadow: -8px 12px 22px -14px rgba(0, 0, 0, 0.9); }

/* hizmet sayfasında sağ kenar "Ek" sekmelerine ait; ayraç sola geçer */
@media (min-width: 861px) {
  body[data-page="service"] .nl-tab {
    right: auto;
    left: 0;
    border-radius: 0 8px 8px 0;
    transform: translate(-7px, -50%) rotate(180deg);
  }
  body[data-page="service"] .nl-tab::after { right: auto; left: 0; transform: scaleX(-1); }
  body[data-page="service"] .nl-tab:hover, body[data-page="service"] .nl-tab:focus-visible { transform: translate(0, -50%) rotate(180deg); }
}

@media (max-width: 760px) {
  .nl-tab {
    top: auto;
    bottom: 0;
    left: 16px;
    right: auto;
    writing-mode: horizontal-tb;
    padding: 11px 14px 12px;
    border-radius: 8px 8px 0 0;
    font-size: 0.86rem;
    transform: translateY(5px);
  }
  .nl-tab::after { top: auto; left: 0; width: auto; height: 7px; bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)); }
  .nl-tab:hover, .nl-tab:focus-visible { transform: none; }
  .ftr { padding-bottom: 86px; }
}

dialog.nl {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.nl[open] { display: flex; justify-content: flex-end; align-items: flex-start; }
dialog.nl::backdrop { background: rgba(26, 26, 29, 0.46); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.nl[open]::backdrop { animation: nl-fade 0.4s ease both; }
.nl.is-closing::backdrop { animation: nl-fade 0.3s ease reverse both; }

.nl__sheet {
  position: relative;
  width: min(780px, calc(100% - 32px));
  margin: 16px 16px 16px auto;
  padding: clamp(22px, 3vw, 40px) clamp(22px, 3.4vw, 46px) clamp(26px, 3vw, 42px) clamp(46px, 5vw, 76px);
  background: var(--sheet);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 12px 24px -16px rgba(0, 0, 0, 0.35);
  transform-origin: 100% 50%;
}
/* delgeçle açılmış iki delik: formun dosyaya takılacak kenarı */
.nl__sheet::before, .nl__sheet::after {
  content: "";
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.28);
}
.nl__sheet::before { top: 24%; }
.nl__sheet::after { top: 70%; }
.nl[open] .nl__sheet { animation: nl-in 0.65s var(--ease-out) both; }
.nl.is-closing .nl__sheet { animation: nl-out 0.32s var(--ease-in) both; }
@keyframes nl-in { from { opacity: 0; transform: translateX(70px) rotate(2.2deg); } to { opacity: 1; transform: none; } }
@keyframes nl-out { to { opacity: 0; transform: translateX(60px) rotate(1.5deg); } }
@keyframes nl-fade { from { opacity: 0; } to { opacity: 1; } }

.nl__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 26px;
  border-bottom: 1.5px solid var(--ink);
}
.nl__close {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 2px 8px 8px;
  background: none; border: 0;
  font-family: var(--font-sans); font-weight: 650; font-stretch: 82%; font-size: 0.95rem;
}
.nl__close svg { width: 17px; height: 17px; }
.nl__title { margin: 8px 0 14px; font-size: clamp(2.6rem, 5.4vw, 4.4rem); text-transform: uppercase; }
.nl__lead { max-width: 58ch; margin-bottom: 26px; color: var(--ink-2); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); line-height: 1.5; }

.nlf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-left: 1px solid var(--rule-2);
}
.nlf__cell {
  gap: 1px;
  padding: 9px 14px 6px;
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  transition: background-color 0.2s;
}
.nlf__cell--wide { grid-column: 1 / -1; }
.nlf__cell label { font-size: 0.84rem; color: var(--ink-3); }
.nlf__cell label b {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-right: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 0.7rem;
  color: var(--ink-2);
}
.nl .req { color: var(--red); font-style: normal; }
.field.nlf__cell input, .field.nlf__cell select, .field.nlf__cell textarea {
  padding: 5px 0 3px;
  border: 0;
  font-size: 1.02rem;
}
.field.nlf__cell textarea { min-height: 76px; resize: vertical; }
.field.nlf__cell select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%231a1a1d' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 4px center / 12px 8px;
  cursor: pointer;
}
.nlf__cell:focus-within { background: rgba(242, 223, 79, 0.28); }
.nlf__cell:focus-within label { color: var(--ink); }
.field.nlf__cell.has-error { background: rgba(207, 65, 47, 0.06); }
.field.nlf__cell.has-error label { color: var(--red); }
.nlf__cell .field__err:empty { display: none; }
.nlf__checks { display: grid; gap: 12px; margin-top: 22px; }
.nlf__checks .check { color: var(--ink-2); }
.nlf__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--rule-2);
}
.nlf.is-busy button[type="submit"] { opacity: 0.6; pointer-events: none; }

.nl__done { padding: 6px 0 4px; }
.nl__done:focus { outline: none; }
.nl__done .btn { margin-top: 6px; }

.nl__stamp {
  position: absolute;
  right: 9%;
  top: 30%;
  width: min(300px, 62%);
  color: var(--red);
  mix-blend-mode: multiply;
  filter: url(#ink);
  opacity: 0;
  pointer-events: none;
  transform: rotate(-9deg);
}
.nl__stamp svg { width: 100%; height: auto; overflow: visible; }
.nl__stamp text { font-family: var(--font-sans); fill: currentColor; }
.nl.is-done .nl__stamp { animation: nl-stamp 0.5s var(--ease-out) both; }
/* teşekkür notuna geçince kaşe başlığın üstünden çekilir, notun sağ altında kalır */
.nl.is-swapped .nl__stamp { top: auto; bottom: 22px; right: 26px; width: min(210px, 46%); opacity: 1; animation: none; transform: rotate(-7deg); }
.nl.is-swapped .nl__sheet { padding-bottom: 96px; }
@keyframes nl-stamp {
  0% { opacity: 0; transform: rotate(-15deg) scale(1.7); }
  55% { opacity: 1; transform: rotate(-9deg) scale(0.96); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}

@media (max-width: 760px) {
  .nl__sheet { width: auto; margin: 10px; padding: 18px 18px 24px 40px; }
  .nl__sheet::before, .nl__sheet::after { left: 13px; width: 11px; height: 11px; }
  .nlf__grid { grid-template-columns: 1fr; }
  .nl__top .docmeta span:last-child { display: none; }
}

/* ---------- Bildirim ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 120;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  padding: 12px 18px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sans); font-stretch: 88%; font-size: var(--t-small);
  border-radius: 6px;
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  pointer-events: none;
}
.toast.is-on { transition: transform 0.45s var(--ease-out), visibility 0s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Ortak sayfa parçaları ---------- */

.only-touch { display: none; }
@media (hover: none) {
  .only-fine { display: none; }
  .only-touch { display: inline; }
}

.section { padding-block: var(--section); position: relative; }

/* sayfa başı: her sayfada farklı kurulur, bu yalnızca en sade iskelet */
.pagehead { padding-top: calc(var(--hdr-h) + clamp(40px, 7vw, 110px)); }

/* evrak üst satırı: sayı, tarih, konu */
.docmeta {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  font-family: var(--font-serif); font-style: italic; font-size: var(--t-small); color: var(--ink-3);
}
.docmeta b { font-style: normal; font-family: var(--font-sans); font-weight: 600; font-stretch: 85%; color: var(--fg); }

/* sonraki evrak bağlantısı (sayfa sonu) */
.next {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 18px 28px;
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1.5px solid var(--fg);
  text-decoration: none;
}
.next__k { font-style: italic; color: var(--ink-3); font-size: var(--t-small); align-self: start; }
.next__t { font-family: var(--font-sans); font-weight: 800; font-stretch: 66%; font-size: clamp(2.6rem, 8vw, 8rem); line-height: 1; text-transform: uppercase; }
.next__t span { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 80% / 0% 40%; transition: background-size 0.5s var(--ease-out); }
.next:hover .next__t span { background-size: 100% 40%; }
body[data-theme="dark"] .next:hover .next__t span { color: var(--ink); }
.next .arw { width: clamp(60px, 8vw, 120px); height: auto; overflow: visible; }
.next .arw path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } .next .arw { display: none; } }

/* ---------- Açılış görünümleri ---------- */

.js [data-rise] { opacity: 0; transform: translateY(28px); }
.js [data-rise].is-on { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) var(--delay, 0s), transform 1.1s var(--ease-out) var(--delay, 0s); }

/* ---------- Sayfa geçişi: yeni evrak masaya konur ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.5s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 0.8s var(--ease-out) both; filter: drop-shadow(0 -18px 40px rgba(0, 0, 0, 0.12)); }
::view-transition-group(hdr) { animation-duration: 0.5s; }
@keyframes vt-out { to { transform: translateY(-5%) scale(0.965) rotate(-0.6deg); opacity: 0.35; } }
@keyframes vt-in { from { transform: translateY(102%) rotate(1.6deg); } to { transform: none; } }

/* ---------- Hareketi azalt ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .annot { clip-path: none; }
  .js .kase[data-stamp] { opacity: 1; }
  .js [data-hl] { --hl-size: 100%; }
}

/* JavaScript 4 saniyede yüklenemezse her şey görünür kalsın */
.reveal-fallback [data-rise], .reveal-fallback .kase[data-stamp] { opacity: 1 !important; transform: none !important; }
.reveal-fallback .annot { clip-path: none !important; }
.reveal-fallback [data-hl] { --hl-size: 100% !important; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
