/* =========================================================
   YGT Mekatronik — site stilleri
   Görsel dil: antrasit, sıcak kırık beyaz, çelik grisi; bağlantı ve aktif adımlarda amber
   ========================================================= */
:root {
  --char-950: #15171B;
  --char-900: #1C1F24;   /* antrasit */
  --char-800: #252930;
  --char-700: #31363E;
  --steel-600: #5A616B;
  --steel-500: #767D87;
  --steel-400: #9AA0A8;
  --steel-300: #BEC2C8;
  --steel-200: #D9D8D4;
  --steel-100: #E8E6E1;
  --paper:   #F4F1EA;    /* sıcak kırık beyaz */
  --paper-2: #EAE5DB;
  --white: #FFFFFF;
  --ink: #1C1F24;
  --amber: #F0A23B;      /* canlı sitedeki turuncudan esinlenen amber */
  --amber-ink: #9A5A06;  /* açık zeminde okunur amber metin */
  --navy-900: #060C36;   /* yalnızca logo kökeni; sayfada kullanılmaz */

  --font-head: "Bahnschrift", "DIN Alternate", "DIN Next", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --r: 2px;
  --fast: .2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; color: var(--char-900); }
h1 { font-size: clamp(44px, 6.6vw, 104px); }
h2 { font-size: clamp(32px, 4.2vw, 64px); }
h3 { font-size: clamp(20px, 1.7vw, 25px); letter-spacing: -0.005em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--amber); color: var(--char-900); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-600); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--amber); flex: none; }
.dark .eyebrow, .page-head .eyebrow { color: var(--steel-300); }

/* Bağlantılar ve butonlar */
.link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .01em; text-decoration: none; color: var(--char-900); padding: 4px 0; border-bottom: 2px solid var(--amber); transition: color var(--fast), gap var(--fast); }
.link:hover { gap: 14px; }
.dark .link { color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--char-900); padding: 4px 0; border-bottom: 2px solid var(--amber); }
.dark .link-arrow { color: var(--white); }
.arrow { display: inline-block; transition: transform var(--fast); }
a:hover .arrow { transform: translateX(3px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 2px solid transparent; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast); white-space: nowrap; }
.btn-amber { background: var(--amber); color: var(--char-900); }
.btn-amber:hover { background: #F7B556; }
.btn-dark, .btn-navy { background: var(--char-900); color: var(--white); }
.btn-dark:hover, .btn-navy:hover { background: var(--char-700); }
.btn-light { background: var(--white); color: var(--char-900); }
.btn-light:hover { background: var(--paper-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* =========================================================
   Başlık
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--char-900); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.07); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; flex: none; margin-left: -8px; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); padding: 6px 0; transition: color var(--fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after, .nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--amber); }
.nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); overflow: hidden; }
.lang button { background: transparent; color: rgba(255,255,255,.75); border: 0; padding: 7px 11px; font: 600 13px/1 var(--font-head); letter-spacing: .1em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--char-900); }
.header-cta { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.header-cta:hover { border-color: var(--amber); color: var(--amber); }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; }
.bars, .bars::before, .bars::after { position: absolute; width: 22px; height: 2px; background: var(--white); content: ""; transition: transform var(--fast), background var(--fast); }
.bars { left: 11px; top: 21px; } .bars::before { left: 0; top: -7px; } .bars::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Açılış: şirket adı ve hizmet yelpazesi solda, farklı iş alanlarından gerçek kareler sağda
   ========================================================= */
.hero { background: var(--paper); border-bottom: 1px solid var(--steel-200); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(calc(100vh - var(--header-h)), 820px); padding-block: clamp(40px, 6vh, 72px); }
.hero h1 { font-size: clamp(50px, 6vw, 96px); letter-spacing: -0.03em; margin: 0 0 18px; }
.hero-sub { font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; color: var(--char-700); margin: 0 0 20px; padding-left: 16px; border-left: 4px solid var(--amber); }
.hero .lead { font-size: 18px; color: var(--steel-600); max-width: 34em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(70vh, 640px); }
.hero-mosaic figure { position: relative; margin: 0; overflow: hidden; background: var(--char-800); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .m1 { grid-column: 1; grid-row: 1; } .hero-mosaic .m1 img { object-position: 40% 50%; }
.hero-mosaic .m2 { grid-column: 2; grid-row: 1 / span 2; } .hero-mosaic .m2 img { object-position: 50% 32%; }
.hero-mosaic .m3 { grid-column: 1; grid-row: 2; } .hero-mosaic .m3 img { object-position: 50% 90%; }
.hero-mosaic figcaption { position: absolute; left: 0; bottom: 0; display: flex; gap: 8px; align-items: center; background: rgba(21,23,27,.8); color: var(--white); font: 600 12px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px; }
.hero-mosaic figcaption::before { content: ""; width: 7px; height: 7px; background: var(--amber); flex: none; }

/* =========================================================
   Bölümler
   ========================================================= */
.section { padding-block: clamp(80px, 10vw, 140px); }
.section.tight { padding-block: clamp(44px, 5vw, 72px); }
.section.alt { background: var(--paper-2); }
.section.white { background: var(--white); }
.dark { background: var(--char-900); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--steel-600); font-size: 18px; max-width: 520px; }
.dark .section-head p { color: rgba(255,255,255,.7); }

/* ---------- Montaj hikâyesi: kaydırdıkça ilerler ---------- */
.story { position: relative; background: var(--char-900); color: var(--white); }
.story-track { height: calc(var(--steps, 5) * 58vh + 42vh); } /* aşama başına ~46vh kaydırma */
.story-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 40px; }
.story-copy { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.story-copy h2 { color: var(--white); margin-bottom: 36px; font-size: clamp(34px, 4vw, 60px); }
.story-progress { list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 6px; margin: 0 0 28px; padding: 0; }
.story-progress li { height: 3px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.story-progress li i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.story-steps { position: relative; min-height: 220px; }
.story-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.story-step.on { opacity: 1; transform: none; pointer-events: auto; }
.story-step .n { font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--amber); margin-bottom: 10px; }
.story-step h3 { color: var(--white); font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 12px; }
.story-step p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 30em; margin-bottom: 10px; }
.story-step .cap { font-size: 13px; letter-spacing: .06em; color: var(--steel-400); }
.story-frame { position: relative; height: 100%; max-height: 820px; overflow: hidden; background: var(--char-800); }
.story-frame figure { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; transition: opacity .45s ease; will-change: opacity; }
/* Önceki kare, yenisi üzerine tam gelene kadar tam görünür kalır; yeni kare yalnızca çözümlenince .on alır */
.story-frame figure.prev { opacity: 1; z-index: 1; transition: none; }
.story-frame figure.on { opacity: 1; z-index: 2; }
.story-wait { position: absolute; left: 14px; bottom: 14px; z-index: 3; margin: 0; padding: 8px 10px; background: rgba(21,23,27,.75); color: rgba(255,255,255,.85); font: 600 12px/1 var(--font-head); letter-spacing: .08em; opacity: 0; transition: opacity .2s ease .25s; pointer-events: none; }
.story-frame.waiting .story-wait { opacity: 1; }
.story-note { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--amber); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 15px; max-width: 30em; }
.story-note a, .story-jump { color: var(--amber); font-weight: 600; text-decoration: none; }
.story-note a:hover, .story-jump:hover { text-decoration: underline; }
.story-links { margin: 18px 0 0; }
.story-jump.small { display: inline-block; margin-top: 22px; font-size: 14px; letter-spacing: .04em; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.04 + var(--z, 0) * .08)) translateY(calc(var(--z, 0) * -1.5%)); transition: transform .12s linear; }
.story-frame .tag { position: absolute; right: 14px; bottom: 14px; background: rgba(21,23,27,.75); color: var(--white); font: 600 12px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; }
.story-frame .tag b { color: var(--amber); font-weight: 600; margin-right: 6px; }
.story-head { padding-top: clamp(80px, 9vw, 120px); }
.story-head p { color: rgba(255,255,255,.7); font-size: 18px; max-width: 560px; margin: 0; }
/* Sıralı (mobil ve hareket azaltma) görünüm */
.story-list { display: none; list-style: none; margin: 0; padding: 0 0 72px; }
.story-list li { margin-top: 40px; }
.story-list figure { margin: 0 0 16px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--char-800); }
.story-list img { width: 100%; height: 100%; object-fit: cover; }
.story-list .n { font-family: var(--font-head); font-size: 14px; letter-spacing: .14em; color: var(--amber); margin-bottom: 6px; }
.story-list h3 { color: var(--white); font-size: 26px; margin-bottom: 6px; }
.story-list p { color: rgba(255,255,255,.75); margin: 0 0 6px; }
.story-list .cap { font-size: 13px; color: var(--steel-400); }
.story.static .story-track { display: none; }
.story.static .story-list { display: block; }

/* ---------- Hakkında ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-stat { border-top: 4px solid var(--amber); padding-top: 20px; }
.about-stat .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(96px, 13vw, 190px); line-height: .85; letter-spacing: -0.04em; color: var(--char-900); }
.about-stat .big sup { font-size: .42em; vertical-align: top; position: relative; top: .1em; color: var(--amber-ink); }
.about-stat .lbl { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-top: 14px; max-width: 16em; line-height: 1.3; }
.about-text h2 { font-size: clamp(30px, 3.4vw, 50px); }
.about-text p { color: var(--steel-600); font-size: 18px; max-width: 38em; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--steel-200); }
.about-facts div { padding: 18px 18px 0 0; }
.about-facts dt { font-family: var(--font-head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 4px; }
.about-facts dd { margin: 0; font-family: var(--font-head); font-size: 19px; font-weight: 600; }

/* ---------- Hizmetler ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { background: var(--white); border: 1px solid var(--steel-200); border-top: 4px solid var(--char-900); padding: 28px 26px 32px; display: flex; flex-direction: column; min-height: 270px; transition: border-color var(--fast); }
.svc:hover { border-top-color: var(--amber); }
.svc .num { font-family: var(--font-head); font-size: 46px; font-weight: 700; line-height: 1; color: var(--steel-300); margin: 0 0 auto; padding-bottom: 36px; }
.svc h3 { font-size: clamp(21px, 1.7vw, 25px); margin: 0 0 10px; }
.svc p { color: var(--steel-600); font-size: 16px; margin: 0; }
.sys-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sys { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--char-800); color: var(--white); text-decoration: none; }
.sys img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.sys:hover img { transform: scale(1.05); }
.sys::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,23,27,.9) 0%, rgba(21,23,27,.2) 45%, rgba(21,23,27,0) 65%); }
.sys > span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; }
.sys b { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.15; }
.sys small { display: block; font-size: 12px; letter-spacing: .06em; color: var(--steel-300); margin-top: 6px; }
.sys.noimg { background: var(--char-700); }
.sys.noimg::before { content: ""; position: absolute; inset: 18px 18px auto auto; width: 42px; height: 42px; border: 2px solid var(--amber); }

/* ---------- Proje kartları (ana sayfa portföy) ---------- */
.pcard { position: relative; display: block; overflow: hidden; background: var(--char-800); color: var(--white); text-decoration: none; isolation: isolate; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(21,23,27,.9) 0%, rgba(21,23,27,.4) 32%, rgba(21,23,27,0) 58%); }
.pcard:hover img { transform: scale(1.03); }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.pcard .loc { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin: 0 0 6px; }
.pcard h3 { color: var(--white); margin: 0 0 4px; }
.pcard .pcard-system { margin: 0; font-size: 15px; color: rgba(255,255,255,.8); }
.pcard .go { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(21,23,27,.55); font-size: 17px; transition: background var(--fast), color var(--fast); }
.pcard:hover .go { background: var(--amber); color: var(--char-900); }
.featured { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(300px, 1fr)); gap: 12px; }
.featured .pcard { min-height: 300px; }
.featured .pcard.big { grid-row: span 2; }
.featured .pcard.big h3 { font-size: clamp(30px, 2.8vw, 42px); }
.featured .pcard.big .work { margin: 10px 0 0; font-size: 15px; color: rgba(255,255,255,.85); max-width: 36em; }
.featured-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; color: var(--steel-600); }
.featured-foot p { margin: 0; }

/* ---------- Sahadaki ekibimiz ---------- */
.team-banner { margin: 0; position: relative; }
.team-banner .ph { aspect-ratio: 1600 / 650; overflow: hidden; background: var(--char-800); }
.team-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.team-banner figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 0; font-size: 14px; color: var(--steel-600); }
.team-banner figcaption a { color: var(--char-900); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--amber); }
.team-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.team-body p { color: var(--steel-600); font-size: 18px; }
.team-roles { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-roles li { background: var(--white); border-top: 3px solid var(--char-900); padding: 18px; font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.25; }
.team-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.team-strip a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--steel-100); }
.team-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-strip a:hover img { transform: scale(1.04); }
.team-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; font-weight: 600; color: var(--white); background: linear-gradient(transparent, rgba(21,23,27,.85)); }

/* ---------- İş ortaklığı ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.partner h2 { margin-bottom: 22px; }
.partner .lead { color: rgba(255,255,255,.78); font-size: 19px; margin-bottom: 36px; max-width: 560px; }
.partner h3.list-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 8px; }
.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.check-list li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1F24' stroke-width='3.2'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check-list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.check-list span { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.5; }
.partner-side { display: grid; gap: 24px; align-content: start; }
.partner-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: var(--char-800); }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.partner-photo figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 30px 16px 12px; font-size: 14px; color: rgba(255,255,255,.92); background: linear-gradient(transparent, rgba(21,23,27,.88)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); counter-reset: s; }
.steps li { background: var(--char-900); padding: 20px 22px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px/1 var(--font-head); letter-spacing: .12em; color: var(--amber); margin-bottom: 10px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; color: rgba(255,255,255,.7); }
.countries { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.7); }
.countries .chip { border: 1px solid rgba(255,255,255,.28); padding: 5px 14px; color: var(--white); font-family: var(--font-head); font-weight: 600; }

/* =========================================================
   Projeler sayfası
   ========================================================= */
.page-head { background: var(--char-900); color: var(--white); padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 4px solid var(--amber); }
.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(36px, 4vw, 58px); color: var(--white); margin: 0; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head .sub { color: rgba(255,255,255,.75); font-size: 17px; max-width: 520px; margin: 0; }
.portfolio-section { padding-block: 28px clamp(64px, 8vw, 104px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 14px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; border: 1px solid var(--steel-300); background: transparent; color: var(--char-700); cursor: pointer; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.filters button:hover { border-color: var(--char-900); }
.filters button[aria-pressed="true"] { background: var(--char-900); border-color: var(--char-900); color: var(--white); box-shadow: inset 0 -3px 0 var(--amber); }
.filters .count { opacity: .6; margin-left: 6px; }
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.pitem { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pitem .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); margin-bottom: 16px; }
.pitem .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pitem:hover .ph img { transform: scale(1.03); }
.pitem .badges { position: absolute; left: 0; top: 0; display: flex; flex-wrap: wrap; gap: 2px; max-width: calc(100% - 16px); }
.pitem .badge { background: var(--char-900); color: var(--white); font: 600 11px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; padding: 9px 11px; }
.pitem .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pitem h2 { font-size: clamp(22px, 1.9vw, 28px); margin: 0 0 4px; }
.pitem .loc { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 6px; }
.pitem .work { color: var(--steel-600); font-size: 15px; line-height: 1.5; margin: 0; padding-top: 10px; border-top: 1px solid var(--steel-200); }
.pitem .go { flex: none; font-size: 20px; color: var(--char-900); transition: color var(--fast), transform var(--fast); }
.pitem:hover .go { color: var(--amber-ink); transform: translateX(3px); }

/* =========================================================
   Proje detay
   ========================================================= */
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "text photo" "info photo"; gap: 0 clamp(32px, 5vw, 72px); align-items: start; padding-block: 28px clamp(56px, 7vw, 96px); }
.detail-text { grid-area: text; }
.detail-photo { grid-area: photo; margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.detail-info { grid-area: info; }
.crumbs { font-size: 14px; color: var(--steel-500); margin: 0 0 28px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--char-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.detail h1 { font-size: clamp(40px, 4.8vw, 72px); margin-bottom: 14px; }
.detail .summary { font-size: 19px; color: var(--steel-600); margin-bottom: 28px; max-width: 34em; }
.detail-photo button { display: block; width: 100%; padding: 0; border: 0; background: var(--steel-100); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo .zoom { position: absolute; right: 0; bottom: 0; background: var(--char-900); color: var(--white); font: 600 13px/1 var(--font-head); letter-spacing: .08em; padding: 11px 14px; }
.info-card { background: var(--white); border: 1px solid var(--steel-200); border-top: 4px solid var(--amber); }
.info-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.info-card dl > div { padding: 16px 20px; border-bottom: 1px solid var(--steel-100); }
.info-card dl > div:nth-child(odd) { border-right: 1px solid var(--steel-100); }
.info-card dl > div.full { grid-column: 1 / -1; border-right: 0; }
.info-card dt { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 4px; }
.info-card dd { margin: 0; font-weight: 500; font-size: 16px; }
.scope-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.scope-list li { display: flex; gap: 10px; align-items: center; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--char-900); }
.scope-list li::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1F24' stroke-width='3.4'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.info-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 18px 20px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; grid-auto-rows: clamp(260px, 28vw, 400px); gap: 10px; }
.gallery button { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--steel-100); grid-column: span 4; }
.gallery button.wide { grid-column: span 8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left; font-size: 14px; color: var(--white); background: linear-gradient(transparent, rgba(21,23,27,.88)); opacity: 0; transition: opacity var(--fast); }
.gallery button:hover .cap, .gallery button:focus-visible .cap { opacity: 1; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.gallery-head h2 { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.pager a { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--steel-200); background: var(--white); text-decoration: none; transition: border-color var(--fast); }
.pager a:hover { border-color: var(--char-900); }
.pager .dir { font: 600 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
.pager .t { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--char-900); }
.pager a.next { text-align: right; }
.pager a.all { place-content: center; text-align: center; background: var(--char-900); border-color: var(--char-900); }
.pager a.all .t { color: var(--white); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.not-found { padding-block: 96px; }

/* =========================================================
   İletişim (bu turda içerik değişmedi)
   ========================================================= */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .lead { color: var(--steel-600); font-size: 18px; }
.brief { list-style: none; padding: 0; margin: 24px 0 36px; display: grid; gap: 10px; }
.brief li { display: flex; gap: 12px; align-items: baseline; color: var(--char-700); }
.brief li::before { content: ""; width: 14px; height: 2px; background: var(--amber); flex: none; transform: translateY(-4px); }
.contact-lines { margin: 0; border-top: 1px solid var(--steel-200); }
.contact-lines div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--steel-200); }
.contact-lines dt { font: 600 12px/1.8 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-500); }
.contact-lines dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.todo { color: var(--amber-ink); font-style: italic; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--steel-200); }
.form label { display: grid; min-width: 0; gap: 8px; font: 600 14px/1.2 var(--font-head); letter-spacing: .04em; color: var(--char-700); }
.form input, .form textarea, .form select { font: 400 16px/1.4 var(--font-body); color: var(--ink); padding: 13px 14px; border: 1px solid var(--steel-300); border-radius: var(--r); background: var(--white); width: 100%; min-width: 0; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--char-900); }
.form [aria-invalid="true"] { border-color: #B3261E; }
.form .full { grid-column: 1 / -1; }
.form .note { font: 400 14px/1.5 var(--font-body); color: var(--steel-500); margin: 0; }
.form .err { color: #B3261E; font: 500 14px/1.4 var(--font-body); margin: 0; }
.form .err:empty { display: none; }

.cta-band { background: var(--char-900); color: var(--white); border-top: 4px solid var(--amber); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 52px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); color: var(--white); max-width: 720px; }
.cta-band .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; height: auto; padding-block: 12px; }

/* =========================================================
   Alt bilgi
   ========================================================= */
.site-footer { background: var(--char-950); color: rgba(255,255,255,.68); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-grid img { height: 68px; width: auto; margin: -8px 0 12px -8px; }
.footer-grid p { max-width: 360px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Fotoğraf görüntüleyici
   ========================================================= */
.lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(14, 15, 18, .96); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lightbox figure { grid-column: 2; grid-row: 1; margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: calc(100vh - 110px); max-width: 100%; width: auto; }
.lightbox figcaption { color: rgba(255,255,255,.88); font-size: 15px; text-align: center; padding: 0 12px; }
.lightbox button { width: 52px; height: 52px; border: 0; background: rgba(255,255,255,.1); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: var(--amber); color: var(--char-900); }
.lb-close { position: fixed; top: 16px; right: 16px; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }

/* Kısa giriş animasyonu: içerik varsayılan olarak görünür (bkz. main.js) */
.reveal-wait { opacity: 0; transform: translateY(12px); }
.reveal-go { transition: opacity .35s ease, transform .35s ease; }

/* =========================================================
   Duyarlı düzen
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .header-cta { display: none; }
  .featured { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .featured .pcard { min-height: 340px; }
  .featured .pcard.big { grid-column: span 2; grid-row: auto; min-height: 520px; }
  .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { height: 54px; }
  .menu-btn { display: block; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px var(--gutter) 32px; background: var(--char-900); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a::after { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 28px; font-size: 17px; border: 0; padding: 0 26px; color: var(--char-900); background: var(--amber); text-transform: none; letter-spacing: .02em; }
  .header-actions { margin-left: auto; }
  body.menu-open { overflow: hidden; }

  /* Mobil açılış: önce şirket adı ve hizmetler, hemen altında üç kare */
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-block: 28px 36px; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 64px); margin-bottom: 12px; }
  .hero-sub { font-size: 19px; margin-bottom: 14px; }
  .hero .lead { font-size: 16px; margin-bottom: 20px; }
  .hero-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: 150px; height: auto; gap: 6px; }
  .hero-mosaic .m1, .hero-mosaic .m2, .hero-mosaic .m3 { grid-column: auto; grid-row: auto; }
  .hero-mosaic figcaption { font-size: 10px; letter-spacing: .06em; padding: 6px 7px; }
  .hero-mosaic figcaption::before { display: none; }

  .section-head, .about, .partner, .team-body { grid-template-columns: 1fr; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .story-head { padding-top: 64px; }
  .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "photo" "info"; padding-top: 20px; }
  .detail-photo { position: static; margin-bottom: 24px; }
  .detail-photo button { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .gallery button { grid-column: span 6; }
  .gallery button.wide { grid-column: span 12; }
  .gallery .cap { opacity: 1; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a.all { grid-column: 1 / -1; grid-row: 2; }
  .team-banner .ph { aspect-ratio: 3 / 2; }
  .team-roles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .featured { grid-template-columns: 1fr; }
  .featured .pcard, .featured .pcard.big { grid-column: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .portfolio { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc .num { font-size: 34px; padding-bottom: 18px; }
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact-lines div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .info-card dl { grid-template-columns: 1fr; }
  .info-card dl > div:nth-child(odd) { border-right: 0; }
  .partner-photo img { object-position: 50% 92%; }
  .team-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .team-strip span { display: none; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { text-align: left; }
  .pager a.all { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { gap: 8px; grid-auto-rows: auto; }
  .gallery button, .gallery button.wide { grid-column: span 12; aspect-ratio: 4 / 5; }
  .gallery button.wide { aspect-ratio: 16 / 9; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: fixed; bottom: 20px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lightbox img { max-height: calc(100vh - 170px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal-wait { opacity: 1; transform: none; }
}

/* KAMAZ detayı: kurulum animasyonu */
.video-frame { background: var(--char-950); border-top: 4px solid var(--amber); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--char-950); }

/* Sahadaki ekibimiz: ASAŞ toplu fotoğrafı (≈ 934×1000) kendi oranında, yanında roller ve diğer ekip kareleri */
.team-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.team-photo { margin: 0; }
.team-photo .ph { aspect-ratio: 934 / 1000; overflow: hidden; background: var(--char-800); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.team-photo figcaption { padding-top: 12px; font-size: 14px; color: var(--steel-600); }
.team-photo figcaption a { color: var(--char-900); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--amber); }
.team-side .team-roles { grid-template-columns: 1fr; margin-bottom: 24px; }
@media (max-width: 900px) { .team-layout { grid-template-columns: 1fr; } }

/* Hizmet kartları: numara yok; açıklama + müşteri ihtiyacı */
.svc .num { display: none; }
.svc h3 { margin-top: 0; }
.svc .need { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--steel-200); color: var(--char-700); font-size: 15px; font-weight: 500; }
.svc p + .need { margin-top: 20px; }
.svc { min-height: 0; }

/* Sistem kartları: bağlantı hedefi ve metin kartı */
.sys .go-to { display: inline-flex; gap: 6px; margin-top: 8px; font-style: normal; font: 600 12px/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
a.sys:hover .go-to, a.sys:focus-visible .go-to { text-decoration: underline; }
.sys.sys-text { background: var(--char-900); border-top: 4px solid var(--amber); }
.sys.sys-text::after { display: none; }
.sys.sys-text > span { top: 18px; bottom: auto; }
.sys.sys-text i { display: block; font-style: normal; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78); margin-top: 12px; }

/* Ekip şeridi: kare sayısına göre sütun */
.team-strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Mobil açılış: üç dar kare yerine tek geniş kare */
@media (max-width: 900px) {
  .hero-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-mosaic .m2, .hero-mosaic .m3 { display: none; }
  .hero-mosaic .m1 { aspect-ratio: 16 / 10; }
  .hero-mosaic .m1 img { object-position: 45% 55%; }
  .hero-mosaic figcaption { font-size: 11px; padding: 7px 10px; }
  .hero-mosaic figcaption::before { display: block; }
}

/* Proje detayı: sayfa içi bağlantılar */
.page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 0 0 28px; font-size: 15px; }
.page-nav span { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-500); margin-right: 8px; }
.page-nav a { color: var(--char-900); font-weight: 600; text-decoration: none; padding: 6px 10px; border: 1px solid var(--steel-200); background: var(--white); }
.page-nav a:hover, .page-nav a:focus-visible { border-color: var(--amber); color: var(--amber-ink); }
#kapsam, #montaj, #video, #galeri { scroll-margin-top: calc(var(--header-h) + 12px); }
.story-head .story-links { margin: 18px 0 0; }
@media (max-width: 900px) {
  /* Mobilde konum, sistem, tedarikçi ve kapsam fotoğraftan önce gelir */
  .detail { grid-template-areas: "text" "info" "photo"; }
  .detail-info { margin-bottom: 24px; }
  .detail-photo { margin-bottom: 0; }
}

/* Temsili animasyon: yalnızca kullanıcı başlatır */
.video-frame { position: relative; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 0; background: var(--amber); color: var(--char-900); font: 600 16px/1 var(--font-head); letter-spacing: .04em; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.video-play:hover, .video-play:focus-visible { background: var(--white); }
.video-play[hidden] { display: none; }
.video-play .tri { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.video-badge { position: absolute; left: 12px; top: 12px; padding: 6px 9px; background: rgba(21,23,27,.78); color: var(--white); font: 600 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }

/* PhotoSwipe: açıklama satırı ve renkler */
.pswp { --pswp-bg: #0E0F12; --pswp-placeholder-bg: #23272E; }
.pswp__ygt-caption { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 900px); padding: 14px 18px 18px; color: rgba(255,255,255,.9); font-size: 15px; text-align: center; background: linear-gradient(transparent, rgba(14,15,18,.75)); pointer-events: none; }
.pswp__counter { font-family: var(--font-head); }

/* İletişim formu kapalıyken (main.js → FORM_ENABLED = false) */
.form-off { margin: 0; padding: 14px 16px; border-left: 4px solid var(--amber); background: var(--white); color: var(--char-900); font-weight: 500; }
.form.is-off label, .form.is-off button { opacity: .55; }
.form.is-off input, .form.is-off select, .form.is-off textarea, .form.is-off button { cursor: not-allowed; }
.contact-lines a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--amber); }
.contact-lines a:hover { color: var(--amber-ink); }

/* Galeri sayfası */
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: clamp(220px, 22vw, 300px); grid-auto-flow: dense; gap: 10px; }
.gal-grid li { margin: 0; min-width: 0; }
.gal-grid li.wide { grid-column: span 2; }
.gal-grid button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--steel-100); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-grid button:hover img { transform: scale(1.03); }
.gal-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left; font-size: 14px; line-height: 1.35; color: var(--white); background: linear-gradient(transparent, rgba(21,23,27,.88)); opacity: 0; transition: opacity var(--fast); }
.gal-grid button:hover .cap, .gal-grid button:focus-visible .cap { opacity: 1; }
.gal-grid button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.gal-more-wrap { text-align: center; margin: 32px 0 0; }
.gal-more-wrap .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; height: auto; padding-block: 12px; }
.gal-note { margin: 28px 0 0; font-size: 14px; color: var(--steel-500); max-width: 60em; }
@media (max-width: 600px) {
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 6px; }
  .gal-grid .cap { opacity: 1; font-size: 12px; padding: 22px 8px 7px; }
}

/* Ana sayfa: galeri bağlantısı ("Sahadan gerçek işler" altında) */
.gallery-cta { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 14px 18px 14px 14px; background: var(--white); border: 1px solid var(--steel-200); border-left: 4px solid var(--amber); color: var(--char-900); text-decoration: none; }
.gallery-cta:hover, .gallery-cta:focus-visible { border-color: var(--amber); }
.gallery-cta-pics { display: flex; gap: 4px; flex: none; }
.gallery-cta-pics img { width: 76px; height: 76px; object-fit: cover; display: block; }
.gallery-cta-text { display: grid; gap: 4px; flex: 1; }
.gallery-cta-text b { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.gallery-cta-text small { font-size: 14px; color: var(--steel-600); }
.gallery-cta .arrow { font-size: 22px; transition: transform var(--fast); }
.gallery-cta:hover .arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .gallery-cta { flex-wrap: wrap; gap: 12px; }
  .gallery-cta-pics img { width: 64px; height: 64px; }
  .gallery-cta .arrow { display: none; }
}

/* Menüde 6 bağlantı: dar masaüstünde tek satırda kalsın */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav a { font-size: 13px; letter-spacing: .05em; }
}

/* Dar ekranlar: düğmeler kapsayıcısından geniş olamaz, metin gerekirse iki satıra geçer */
@media (max-width: 600px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
}

/* Ana sayfa: kaydırmayla ilerleyen montaj animasyonu (KAMAZ, temsili)
   .scrub-track kaydırma mesafesini verir; .scrub-stage bu süre boyunca ekranda sabit kalır.
   Son kareden sonra iz biter, sabitleme kalkar ve sayfa normal akışla iletişime geçer. */
.scrub { background: var(--char-900); color: var(--white); }
.scrub-track { height: calc(100vh + 260vh); height: calc(100svh + 260svh); position: relative; }
.scrub-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.scrub-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: 100%; }
.scrub-head { display: grid; gap: 6px; }
.scrub-head .eyebrow { margin: 0; }
.scrub-head h2 { margin: 0; color: var(--white); font-size: clamp(28px, 3.6vw, 52px); }
.scrub-hint { margin: 0; color: rgba(255,255,255,.72); font-size: 17px; }
.scrub-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 4px 0 0; }
.scrub-links .link-arrow { color: var(--white); }
.scrub-skip { color: var(--amber); font-weight: 600; text-decoration: none; font-size: 15px; }
.scrub-skip:hover, .scrub-skip:focus-visible { text-decoration: underline; }
/* Video alanı: 16:9, ekran yüksekliğine sığacak kadar büyük */
.scrub-frame { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100vh - var(--header-h) - 230px) * 16 / 9)); width: min(100%, calc((100svh - var(--header-h) - 230px) * 16 / 9)); margin: 0 auto; background: var(--char-800); overflow: hidden; border-top: 4px solid var(--amber); }
.scrub-frame > img, .scrub-canvas, .scrub-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Poster ilk kare çizilene kadar görünür; tuval son çizilen kareyi tutar; video yalnızca kaynak (görünmez) */
.scrub-canvas { opacity: 0; }
.scrub.ready .scrub-canvas { opacity: 1; }
.scrub-video { opacity: 0; pointer-events: none; }
.scrub-label { position: absolute; left: 12px; top: 12px; padding: 6px 9px; background: rgba(21,23,27,.78); color: var(--white); font: 600 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.scrub-static { padding-block: 0 clamp(56px, 7vw, 96px); }
.scrub-static figure { margin: 0; border-top: 4px solid var(--amber); }
.scrub-static img { display: block; width: 100%; height: auto; }
/* Hareket azaltma (veya video kullanılamıyor): sabitleme yok, sabit görsel */
.scrub.calm .scrub-track { height: auto; }
.scrub.calm .scrub-stage { position: static; height: auto; padding-block: clamp(56px, 7vw, 96px) 24px; }
.scrub.calm .scrub-frame, .scrub.calm .scrub-hint { display: none; }
@media (max-width: 600px) {
  .scrub-track { height: calc(100vh + 200vh); height: calc(100svh + 200svh); }
  .scrub-hint { font-size: 15px; }
  /* Dikey ekranda daha büyük, dikey kadraj; görüntü ortadan kırpılır (koridor ve vinç ortada) */
  .scrub-frame { aspect-ratio: 4 / 5; width: 100%; max-height: calc(100vh - var(--header-h) - 250px); max-height: calc(100svh - var(--header-h) - 250px); }
  .scrub-inner { gap: 14px; }
  .scrub-head h2 { font-size: 28px; }
}

/* Referanslar: logolar eşit hücrelerde; boyut, logonun en-boy oranına göre benzer görsel ağırlık verecek şekilde
   index.html'deki width/height ile verilir (bkz. README "Referanslar"). Logosu olmayan firma adıyla görünür. */
.refs-section { padding-top: 0; }
.refs-section .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.refs-section .refs-sub { margin: 10px 0 0; color: var(--steel-600); font-size: 18px; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; } /* 14 firma = 2 × 7 */
@media (max-width: 900px) { .refs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ref { display: flex; align-items: center; justify-content: center; min-width: 0; height: 112px; padding: 14px 18px; background: var(--white); border: 1px solid var(--steel-200); }
.ref img { display: block; max-width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.ref-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; text-align: center; color: var(--char-700); overflow-wrap: anywhere; }
.ref-dark { background: var(--char-900); border-color: var(--char-900); } /* yalnız beyaz (koyu zemin) sürümü olan logolar */
@media (max-width: 600px) {
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ref { height: 88px; padding: 10px 12px; }
  .ref img { max-height: 48px; }
  .ref-name { font-size: 14px; }
}

/* Menüde 7 bağlantı (Referanslar eklendi): dar masaüstünde sığsın */
@media (min-width: 1101px) and (max-width: 1320px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14px; letter-spacing: .06em; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav { gap: 11px; }
  .nav a { font-size: 12px; letter-spacing: .03em; }
}
