/* =========================================================
   Yalçındağlar Mühendislik · pafta dili
   siyah zemin, emniyet sarısı, teknik çizgi
   ========================================================= */

:root {
  --canvas: #0A0A09;
  --surface: #141412;
  --surface-2: #1C1C19;
  --ink: #EEEADF;
  --ink-soft: #8F8B7F;
  --line: rgba(238, 234, 223, 0.10);
  --line-strong: rgba(238, 234, 223, 0.22);
  --accent: #FFC20E;
  --accent-ink: #0A0A09;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --nav-h: 68px;
  --dock-h: 0px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* film greni */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.mono {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.skip {
  position: fixed;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 1rem; }

/* =========================================================
   ÜST BAR · antet
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(10, 10, 9, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-current {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-word small {
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav-links a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-act { display: flex; align-items: center; gap: 0.75rem; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.25rem 0 0.75rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn-bars { display: grid; gap: 6px; width: 22px; }
.menu-btn-bars i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn-bars i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--canvas);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 12vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-menu nav a:active { color: var(--accent); }
.mobile-menu .mono { color: var(--ink-soft); text-transform: none; letter-spacing: 0.06em; }

/* =========================================================
   1 · HERO · katmanlı sahne
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas);
}
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer-in { position: absolute; inset: 0; will-change: transform; }

/* arka plan: pafta ızgarası */
.l-grid .layer-in {
  inset: -6%;
  background:
    radial-gradient(ellipse 60% 55% at 72% 62%, rgba(255, 194, 14, 0.10), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 320px 320px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 320px 320px,
    linear-gradient(rgba(238, 234, 223, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(238, 234, 223, 0.04) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 55%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 60% 55%, #000 40%, transparent 100%);
}

/* uzak direkler */
.l-far .layer-in { top: auto; height: 46%; bottom: 7%; opacity: 0.5; }
.far-svg { width: 100%; height: 100%; }
.far-svg use, .far-svg path { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.far-svg .far-wires path { stroke-width: 0.8; opacity: .7; }
.far-svg .horizon { stroke: var(--line-strong); }

/* ana direk */
.l-pylon .layer-in { left: auto; right: clamp(-4rem, 2vw, 4rem); top: auto; bottom: 0; width: auto; height: 94%; aspect-ratio: 400 / 700; }
.pylon { width: 100%; height: 100%; overflow: visible; }
.pylon path { fill: none; stroke-linecap: square; }
.py-body path { stroke: var(--accent); stroke-width: 2.2; }
.py-body .ins { stroke-width: 1.6; }
.py-cond .cond { stroke: rgba(238, 234, 223, 0.42); stroke-width: 1.1; }
.py-ground { stroke: var(--line-strong); stroke-width: 1; }
.pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 0.035 0.965;
  stroke-dashoffset: 1;
  opacity: 0;
}
.hero.live .py-pulse .pulse { opacity: 1; animation: flow 3.2s linear infinite; }
.hero.live .py-pulse .p2 { animation-delay: -1.1s; animation-duration: 3.8s; }
.hero.live .py-pulse .p3 { animation-delay: -2.3s; animation-duration: 4.4s; }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* metnin oturduğu yerde perde (yalnızca sol) */
.l-scrim {
  background: linear-gradient(90deg, rgba(10, 10, 9, 0.92) 0%, rgba(10, 10, 9, 0.7) 38%, transparent 66%),
              linear-gradient(0deg, rgba(10, 10, 9, 0.9) 0%, transparent 30%);
}

/* içerik */
.l-content { pointer-events: auto; z-index: 3; }
.hero-inner {
  inset: auto auto calc(5.5rem + 4vh) var(--gutter);
  max-width: min(64rem, 64vw);
}
.hero-kicker { color: var(--accent); margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.6rem, 10.5vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.h-line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.h-line > span { display: block; }
.hero-title .hl { font-style: normal; color: var(--accent); }
.hero.live .hero-title .hl { animation: tube 1.1s steps(1, end) 1; }
@keyframes tube {
  0% { opacity: 1; } 8% { opacity: .2; } 14% { opacity: 1; } 22% { opacity: .35; }
  26% { opacity: 1; } 48% { opacity: .6; } 52% { opacity: 1; } 100% { opacity: 1; }
}
.hero-sub {
  max-width: 34rem;
  margin-top: 1.8rem;
  color: rgba(238, 234, 223, 0.82);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }

/* ön plan */
.l-front { z-index: 4; }
.front-cable { position: absolute; left: 0; top: 0; width: 100%; height: 38%; filter: blur(1.5px); }
.fc-body { fill: none; stroke: #030303; stroke-width: 22; }
.fc-hi { fill: none; stroke: rgba(238, 234, 223, 0.10); stroke-width: 2; }
.warn {
  position: absolute;
  right: clamp(-5rem, -4vw, -2rem);
  bottom: clamp(-9rem, -11vw, -4rem);
  width: clamp(14rem, 30vw, 30rem);
  transform: rotate(-9deg);
  filter: blur(1.2px) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

/* antet şeridi */
.hero-meta {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  border-top: 1px solid var(--line-strong);
  background: rgba(10, 10, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.68rem;
}
.hero-meta > div { display: flex; gap: 0.8rem; padding: 0.9rem var(--gutter); border-right: 1px solid var(--line-strong); }
.hero-meta dt { color: var(--ink-soft); }
.hero-meta dd { margin: 0; color: var(--ink); }

/* =========================================================
   ŞERİT
   ========================================================= */
.band {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-1.6deg) scale(1.04);
  margin: 1.4rem 0 0;
  border-block: 3px solid var(--canvas);
}
.band-track { display: flex; align-items: center; width: max-content; padding: 0.85rem 0; }
.band span {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 1.4rem;
}
.band i {
  width: 34px; height: 14px; flex: none;
  background: repeating-linear-gradient(-45deg, var(--canvas) 0 5px, transparent 5px 10px);
}

/* =========================================================
   2 · MANİFESTO · bilinçli sessizlik
   ========================================================= */
.manifesto {
  padding: clamp(7rem, 18vh, 12rem) var(--gutter) clamp(6rem, 14vh, 10rem);
  max-width: 1500px;
}
.manifesto-text {
  max-width: 22ch;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.manifesto-text .hl { color: var(--accent); }
.manifesto-text .w { display: inline; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--line-strong);
  margin-left: auto;
  max-width: 64rem;
}
.pr { padding: 1.5rem 1.75rem 0 0; }
.pr + .pr { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.pr-k { display: block; color: var(--accent); margin-bottom: 0.9rem; }
.pr p { color: rgba(238, 234, 223, 0.74); font-size: 1rem; }

/* =========================================================
   3 · DEVRE · zirve
   ========================================================= */
.circuit {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.circuit-grid {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
}
.circuit-copy { display: flex; flex-direction: column; min-height: 0; }
.eyebrow { color: var(--accent); margin-bottom: 1rem; }
.circuit-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  line-height: 0.96;
  text-transform: uppercase;
  max-width: 11ch;
}

.stages { list-style: none; margin: auto 0 0; padding: 0; display: grid; }
.stage { padding: 1.4rem 0 0; border-top: 2px solid var(--accent); }
.stage h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.stage p { margin-top: 0.8rem; max-width: 30rem; color: rgba(238, 234, 223, 0.78); }

.checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.6rem 0 0;
  padding: 0;
  font-size: 0.64rem;
}
.checks li {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: background-color .3s, color .3s, border-color .3s;
}
.checks li.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.circuit-figure { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.bld { width: 100%; height: 100%; max-height: calc(100vh - var(--nav-h) - 4rem); overflow: visible; color: var(--ink-soft); }
.bld .dr { fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.s-struct .dr { stroke: rgba(238, 234, 223, 0.5); stroke-width: 1.4; }
.s-struct .dr.thick { stroke-width: 2.6; stroke: rgba(238, 234, 223, 0.72); }
.soil { opacity: 0.16; }
.lvl path { stroke: var(--ink-soft); stroke-width: 1; }
.bld text { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; fill: var(--ink-soft); }
.win { fill: var(--accent); fill-opacity: 0.88; stroke: rgba(238, 234, 223, 0.36); stroke-width: 1; }
.strong .dr { stroke: var(--accent); stroke-width: 2.4; }
.strong .riser { stroke-width: 3.4; }
.weak .dr { stroke: var(--ink); stroke-width: 1.3; opacity: 0.85; }
.earth .dr { stroke: var(--ink); stroke-width: 2; }
.fx { fill: var(--accent); }
.bld .lbl { fill: var(--ink); font-size: 13px; }
.bld .pulse { stroke-width: 4; stroke: #FFF4C8; stroke-dasharray: 0.06 0.94; }
.bld .pulse.weakp { stroke: var(--ink); stroke-width: 2.5; }
.bld .pulse.on { opacity: 1; animation: flow 1.8s linear infinite; }
.c-done path { fill: var(--accent); }
.c-done text { fill: var(--accent-ink); font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: 0.08em; text-anchor: middle; }

/* çizim başlangıç durumları (yalnızca hareket açıkken) */
.js:not(.rm) .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js:not(.rm) .bld .lbl,
.js:not(.rm) .bld .lvl,
.js:not(.rm) .bld .soil,
.js:not(.rm) .c-done,
.js:not(.rm) .c-glow,
.js:not(.rm) .fx { opacity: 0; }
.js:not(.rm) .win { fill-opacity: 0; stroke-opacity: 0; }

/* sahne metinleri üst üste (yalnızca hareket açıkken) */
.js:not(.rm) .stages { grid-template-areas: "s"; }
.js:not(.rm) .stage {
  grid-area: s;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.js:not(.rm) .stage.on { opacity: 1; transform: none; pointer-events: auto; }

/* hareket kapalıyken veya JS yoksa: liste olarak */
.rm .stages, html:not(.js) .stages { gap: 1rem; margin-top: 2rem; }
.rm .stage h3, html:not(.js) .stage h3 { font-size: 1.4rem; }
.rm .stage p, html:not(.js) .stage p { font-size: 0.95rem; }
.rm .checks, html:not(.js) .checks { display: none; }
.rm .circuit-grid, html:not(.js) .circuit-grid { height: auto; min-height: 100vh; }
.rm .proj-track, html:not(.js) .proj-track { width: auto; overflow-x: auto; padding-bottom: 1rem; }

/* =========================================================
   4 · HİZMETLER · sert silme
   ========================================================= */
.services {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.svc-head { position: sticky; top: calc(var(--nav-h) + 3rem); }
.svc-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.svc-head p { margin-top: 1.5rem; max-width: 26rem; color: rgba(238, 234, 223, 0.74); }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px;
  grid-template-areas: "t s" "p s";
  column-gap: 1.5rem;
  padding: 1.6rem 1rem 1.7rem 0;
  border-bottom: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), color .3s var(--ease), padding .4s var(--ease);
}
.svc h3 {
  grid-area: t;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}
.svc p { grid-area: p; margin-top: 0.6rem; max-width: 36rem; color: rgba(238, 234, 223, 0.7); font-size: 0.98rem; transition: color .3s; }
.svc-sym { grid-area: s; align-self: center; width: 72px; height: 72px; }
.svc-sym path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: square; transition: stroke .3s; }

@media (hover: hover) and (pointer: fine) {
  .svc:hover { background: var(--accent); color: var(--accent-ink); padding-left: 1.25rem; }
  .svc:hover p { color: rgba(10, 10, 9, 0.8); }
  .svc:hover .svc-sym path { stroke: var(--accent-ink); }
}

/* =========================================================
   5 · PROJELER · yatay pafta şeridi
   ========================================================= */
.projects { position: relative; overflow: hidden; border-top: 1px solid var(--line-strong); }
.proj-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
}
.proj-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.proj-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.85;
  text-transform: uppercase;
}
.proj-head p { max-width: 24rem; color: rgba(238, 234, 223, 0.74); }

.proj-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 0 var(--gutter);
  width: max-content;
}
.card {
  position: relative;
  flex: none;
  width: clamp(18rem, 34vw, 32rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.ph-in {
  position: absolute;
  inset: 0 -12%;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 194, 14, 0.12), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(238, 234, 223, 0.05) 0 1px, transparent 1px 14px),
    var(--surface-2);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s var(--ease); }
.card:hover .ph img { filter: none; }
.ph:has(img)::after, .ph:has(img) .ph-tag { display: none; }
.ph::after {
  content: "";
  position: absolute;
  inset: 22% 30%;
  background: var(--sym) center / contain no-repeat;
  opacity: 0.5;
}
.ph[data-sym="bld"]  { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23FFC20E' stroke-width='2'%3E%3Cpath d='M14 76V14h52v62M14 30h52M14 46h52M14 62h52M26 20v4M40 20v4M54 20v4'/%3E%3C/svg%3E"); }
.ph[data-sym="tr"]   { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23FFC20E' stroke-width='2'%3E%3Ccircle cx='32' cy='40' r='16'/%3E%3Ccircle cx='48' cy='40' r='16'/%3E%3Cpath d='M2 40h14M64 40h14'/%3E%3C/svg%3E"); }
.ph[data-sym="pv"]   { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23FFC20E' stroke-width='2'%3E%3Cpath d='M14 26h52v36H14zM14 62l52-36M14 44h52M40 26v36M18 6l10 12M30 2l10 12'/%3E%3C/svg%3E"); }
.ph[data-sym="lamp"] { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23FFC20E' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3Cpath d='M28.7 28.7l22.6 22.6M51.3 28.7L28.7 51.3M4 40h20M56 40h20'/%3E%3C/svg%3E"); }
.ph[data-sym="earth"]{ --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='%23FFC20E' stroke-width='2'%3E%3Cpath d='M40 6v36M16 42h48M24 54h32M32 66h16'/%3E%3C/svg%3E"); }
.ph-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  font-size: 0.62rem;
  color: var(--ink-soft);
  padding: 0.3rem 0.5rem;
  border: 1px dashed var(--line-strong);
}
.card-body { padding: 1.4rem 1.4rem 1.5rem; }
.card h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1;
  text-transform: uppercase;
}
.spec { margin: 1.1rem 0 0; font-size: 0.66rem; }
.spec > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; color: var(--ink); }

.card-end {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.6rem;
  background: transparent;
  border: 2px dashed var(--line-strong);
}
.card-end p {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

/* =========================================================
   6 · KAPANIŞ · şalter
   ========================================================= */
.close {
  --a: 0%;
  --b: 0%;
  position: relative;
  background: var(--accent);
  color: var(--accent-ink);
  clip-path: polygon(0 var(--a), 100% var(--b), 100% 100%, 0 100%);
}
.close :focus-visible { outline-color: var(--accent-ink); }
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(7rem, 16vh, 11rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  min-height: 100vh;
}
.close h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 9.5vw, 9.5rem);
  line-height: 0.84;
  text-transform: uppercase;
  max-width: 10ch;
}
.close-lead { margin-top: 1.8rem; max-width: 34rem; font-weight: 400; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.3rem); }

.close-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.big-btn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 20rem);
  padding: 1.2rem 1.5rem 1.3rem;
  background: var(--accent-ink);
  color: var(--accent);
  text-decoration: none;
  border: 3px solid var(--accent-ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.big-btn .mono { color: var(--ink-soft); font-size: 0.7rem; }
.big-btn strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.big-btn:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 rgba(10, 10, 9, 0.9); }
.big-btn-alt { background: transparent; color: var(--accent-ink); }
.big-btn-alt .mono { color: rgba(10, 10, 9, 0.6); }

.close-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(3rem, 7vh, 4.5rem) 0 0;
  border-top: 2px solid var(--accent-ink);
}
.close-info > div { padding: 1.1rem 1.25rem 0 0; }
.close-info > div + div { padding-left: 1.25rem; border-left: 1px solid rgba(10, 10, 9, 0.25); }
.close-info dt { font-size: 0.66rem; color: rgba(10, 10, 9, 0.62); margin-bottom: 0.5rem; }
.close-info dd { margin: 0; font-weight: 400; line-height: 1.45; }
.close-info a { text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }

.breaker { justify-self: center; width: min(100%, 15rem); }
.breaker svg { width: 100%; overflow: visible; filter: drop-shadow(12px 14px 0 rgba(10, 10, 9, 0.9)); }
.bk-body { fill: #EDE7D6; stroke: var(--accent-ink); stroke-width: 4; }
.bk-rail { stroke: var(--accent-ink); stroke-width: 2; fill: none; }
.bk-slot { fill: #1b1b18; }
.bk-lever path { fill: var(--accent-ink); }
.bk-lever circle { fill: #3a3a35; }
.breaker text { font-family: var(--f-display); font-weight: 900; font-size: 26px; text-anchor: middle; fill: var(--accent-ink); }
.breaker .bk-cap { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; }
.bk-led { fill: #5d5a50; transition: fill .3s; }
.close.on .bk-led { fill: #1FB44B; }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1.25rem var(--gutter) calc(1.25rem + var(--dock-h));
  border-top: 2px solid var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 400;
}
.foot .mono { font-size: 0.66rem; align-self: center; }
.hazard { height: 22px; background: repeating-linear-gradient(-45deg, var(--accent-ink) 0 16px, var(--accent) 16px 32px); }

/* =========================================================
   MOBİL DOCK
   ========================================================= */
.dock { display: none; }

/* =========================================================
   GİRİŞ KOREOGRAFİSİ başlangıç durumları
   ========================================================= */
.js:not(.rm) .h-line > span { transform: translateY(108%); }
.js:not(.rm) [data-intro] { opacity: 0; transform: translateY(24px); }
.js:not(.rm) .hero-meta[data-intro] { transform: translateY(100%); opacity: 1; }
.js:not(.rm) .l-far .layer-in { opacity: 0; }
.js:not(.rm) .warn { opacity: 0; }

/* =========================================================
   DUYARLI
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; --dock-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .nav .btn-sm { display: none; }
  .brand-word strong { font-size: 1.25rem; }
  .brand-mark { width: 34px; height: 34px; }

  .hero { min-height: 600px; }
  .l-pylon .layer-in { right: -22%; height: 74%; bottom: 6%; opacity: 0.55; }
  .l-far .layer-in { height: 30%; bottom: 14%; }
  .l-scrim { background: linear-gradient(0deg, rgba(10, 10, 9, 0.96) 0%, rgba(10, 10, 9, 0.7) 45%, transparent 75%); }
  .hero-inner { max-width: none; right: var(--gutter); bottom: calc(var(--dock-h) + 4.8rem); }
  .hero-title { font-size: clamp(3.4rem, 17vw, 6rem); }
  .hero-sub { margin-top: 1.2rem; font-size: 1rem; }
  .hero-cta { display: none; }
  .warn { width: 9rem; right: -1.5rem; bottom: auto; top: 22%; filter: blur(1.4px); }
  .front-cable { height: 26%; }
  .hero-meta { grid-template-columns: 1fr 1fr; bottom: var(--dock-h); }
  .hero-meta > div { padding: 0.75rem var(--gutter); }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .hero-meta .hm-hide, .hero-meta > div:nth-child(2) { display: none; }

  .principles { grid-template-columns: 1fr; }
  .pr, .pr + .pr { padding: 1.25rem 0; border-left: 0; }
  .pr + .pr { border-top: 1px solid var(--line); }

  .circuit-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: calc(var(--nav-h) + 1rem) var(--gutter) calc(var(--dock-h) + 1rem);
  }
  .circuit-copy { display: contents; }
  .circuit-copy .eyebrow { display: none; }
  .circuit-title { grid-row: 1; font-size: clamp(2rem, 9vw, 3rem); max-width: none; }
  .circuit-figure { grid-row: 2; }
  .bld { max-height: 100%; }
  .stages { grid-row: 3; margin: 0; }
  .stage { padding-top: 0.9rem; }
  .stage h3 { font-size: 1.6rem; }
  .stage p { font-size: 0.92rem; margin-top: 0.4rem; }
  .checks { display: none; }

  .services { grid-template-columns: 1fr; }
  .svc-head { position: static; }
  .svc { grid-template-columns: 1fr 52px; padding-right: 0; }
  .svc-sym { width: 52px; height: 52px; }

  .proj-wrap { min-height: 0; padding-bottom: 4rem; }
  .proj-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .proj-track::-webkit-scrollbar { display: none; }
  .card { width: 82vw; scroll-snap-align: start; }

  .close-grid { grid-template-columns: 1fr; min-height: 0; }
  .breaker { order: -1; justify-self: start; width: 6.5rem; }
  .close-info { grid-template-columns: 1fr; }
  .close-info > div, .close-info > div + div { padding: 1rem 0; border-left: 0; border-bottom: 1px solid rgba(10, 10, 9, 0.25); }
  .big-btn { flex: 1 1 100%; }

  .dock {
    position: fixed;
    z-index: 95;
    left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: var(--dock-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--canvas);
    border-top: 1px solid var(--line-strong);
  }
  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .dock-call { background: var(--accent); color: var(--accent-ink); }
  .dock-wa { color: var(--ink); }
}

@media (max-width: 900px) and (max-height: 700px) {
  .stage p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
