/* Aktif Su Jeti – ortak stiller */
:root {
  --ink: #1d2125;
  --ink-600: #4a525a;
  --ink-500: #5f6870;
  --line: #dfe3e6;
  --paper-50: #f6f8f9;
  --jet: #1d6fa5;
  --jet-light: #3d93cf;
  --jet-tint: #e7f1f8;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.grid > *, .flex > * { min-width: 0; }

/* Tipografi */
.display { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; }
.title { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; line-height: 1; letter-spacing: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .02em; }
.tag { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.tag-jet { color: var(--jet); }

/* Teknik çizim arka planı */
.blueprint {
  background-color: var(--paper-50);
  background-image:
    linear-gradient(rgba(29,111,165,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,165,.07) 1px, transparent 1px),
    linear-gradient(rgba(29,111,165,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,165,.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.blueprint-dark {
  background-color: #1d2125;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 600; font-size: 16px; padding: .9rem 1.35rem; border-radius: 4px; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-jet { background: var(--jet); color: #fff; }
.btn-jet:hover { background: #155882; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--jet-tint); }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Menü */
.nav a { position: relative; padding: .4rem 0; font-weight: 500; color: var(--ink-600); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--jet); }
#header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0,0,0,.25); }

/* Ölçü çizgisi (teknik çizim süsü) */
.dim { position: relative; display: flex; align-items: center; gap: 10px; color: var(--jet); }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55; }
.dim > span { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.dim-ends { border-left: 1px solid currentColor; border-right: 1px solid currentColor; height: 12px; }

/* Köşe işaretleri (fotoğraf çerçevesi) */
.marks { position: relative; }
.marks::before, .marks::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--jet); border-style: solid; pointer-events: none; z-index: 2; }
.marks::before { top: -8px; left: -8px; border-width: 1.5px 0 0 1.5px; }
.marks::after { bottom: -8px; right: -8px; border-width: 0 1.5px 1.5px 0; }

/* Kesim hattı animasyonu */
.cutline { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.is-drawn .cutline, .cutline.is-drawn { animation: draw 3.2s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Ortaya çıkma */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Malzeme listesi – fareyle görsel önizleme */
.mat-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .25s; }
.mat-row:hover { color: var(--jet); }
@media (min-width: 1024px) { .mat-row:hover { padding-left: 14px; } }
.mat-preview { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 4/3; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .2s, transform .2s; border: 6px solid #fff; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); background: #eee center/cover no-repeat; }
.mat-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Kalınlık cetveli */
.ruler { height: 64px; border-bottom: 2px solid var(--ink); }
.ruler-tick { position: absolute; bottom: 0; width: 1px; background: var(--ink); }
.ruler-label { position: absolute; bottom: -26px; transform: translateX(-50%); font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-500); }
.pin { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pin-stem { width: 1px; background: var(--jet); }
.pin-dot { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--jet); transition: transform .15s, background .15s; }
.pin:hover .pin-dot, .pin.active .pin-dot { transform: scale(1.25); background: var(--jet); }
.pin-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; white-space: nowrap; padding: 4px 8px; background: #fff; border: 1px solid var(--line); border-radius: 3px; transition: border-color .15s, color .15s; }
.pin:hover .pin-label, .pin.active .pin-label { border-color: var(--jet); color: var(--jet); }

/* Galeri sekmeleri */
.tab { padding: .6rem 0; margin-right: 1.75rem; font-weight: 500; color: var(--ink-500); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--jet); }

/* Galeri iş kartı */
.job { display: block; text-align: left; width: 100%; }
.job-img { position: relative; overflow: hidden; background: var(--paper-50); }
.job-img img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.job:hover .job-img img { transform: scale(1.045); }
.job-plate { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-top: 0; padding: 10px 12px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.job:target .job-img, .job.highlight .job-img { outline: 3px solid var(--jet); outline-offset: 3px; }

/* Tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); background: var(--paper-50); }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tbody tr:hover { background: #fafbfc; }

/* Form */
.field { width: 100%; background: #fff; border: 1px solid var(--line-dark, #c9cfd4); border-radius: 4px; padding: .8rem .95rem; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--jet); box-shadow: 0 0 0 3px rgba(29,111,165,.15); }
.field::placeholder { color: #9aa2a9; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235f6870' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border: 1px solid #c9cfd4; border-radius: 999px; font-size: 15px; cursor: pointer; transition: all .15s; user-select: none; }
.chip input:checked + span { border-color: var(--jet); background: var(--jet-tint); color: var(--jet); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29,111,165,.25); }

/* SSS */
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details .plus { transition: transform .2s; }
details[open] .plus { transform: rotate(45deg); }

/* Referans logoları */
.ref img { filter: grayscale(1); opacity: .65; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.ref:hover img { filter: none; opacity: 1; }

/* Erişilebilirlik / hareket */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cutline { stroke-dashoffset: 0; animation: none !important; }
}

/* Su akışı (şema) */
.flow { stroke-dasharray: 6 9; animation: flow .7s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -15; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }

/* Sayfa başlığı */
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--jet); }
