/* =========================================================
   BUENDECO — Apple-esque redesign
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --surface-dark: #161617;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --brand-1: #8fd3f4;
  --brand-2: #1a8fd6;
  --brand-3: #0057a8;
  --grad: linear-gradient(95deg, var(--brand-1) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --nav-h: 48px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.28, .11, .32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* tema token'ları — açık */
  color-scheme: light;
  --surface: #ffffff;
  --alt-hover: #ececef;
  --field-bg: #ffffff;
  --link: #0071e3;
  --badge-bg: rgba(0,0,0,.06);
  --nav-bg: rgba(255,255,255,.72);
  --nav-link: rgba(29,29,31,.8);
  --nav-edge: rgba(0,0,0,.08);
  --menu-bg: rgba(255,255,255,.96);
  --word-dim: #d2d2d7;
  --fab-bg: rgba(29,29,31,.86);
  --card-shadow: 0 24px 48px rgba(0,0,0,.08);
  --glow: rgba(143,211,244,.35);
  /* izometrik bina */
  --iso-edge: rgba(30,50,80,.07);
  --iso-slab-t: #ffffff; --iso-slab-l: #e7e9ee; --iso-slab-r: #cdd2da;
  --iso-col-t: #f6f7f9;  --iso-col-l: #dde1e7;  --iso-col-r: #c2c8d1;
  --iso-plate-t: #f6faff; --iso-plate-l: #dce8f4; --iso-plate-r: #c3d5e8;
  --iso-wall-1: #eef3f8; --iso-wall-2: #e2eaf2;
  --iso-sign-t: #ffffff; --iso-sign-l: #f2f4f7; --iso-sign-r: #d7dce3;
  --iso-bubble: #ffffff;
}

/* tema token'ları — koyu (yalnızca ziyaretçi seçerse; varsayılan her zaman açık) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-alt: #111113; --surface: #1c1c1e; --alt-hover: #1c1c1e; --field-bg: #1c1c1e;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b; --line: #38383a;
  --blue: #0a84ff; --blue-hover: #409cff; --link: #2997ff;
  --badge-bg: rgba(255,255,255,.1);
  --nav-bg: rgba(22,22,23,.72); --nav-link: rgba(245,245,247,.8); --nav-edge: rgba(255,255,255,.08);
  --menu-bg: rgba(10,10,11,.96); --word-dim: #3a3a3c; --fab-bg: rgba(58,58,60,.86);
  --card-shadow: 0 24px 48px rgba(0,0,0,.5); --glow: rgba(26,143,214,.22);
  --iso-edge: rgba(255,255,255,.05);
  --iso-slab-t: #3b3f47; --iso-slab-l: #2c2f36; --iso-slab-r: #212329;
  --iso-col-t: #464a52;  --iso-col-l: #34373e;  --iso-col-r: #26282e;
  --iso-plate-t: #0f141b; --iso-plate-l: #18202b; --iso-plate-r: #111821;
  --iso-wall-1: #1c2430; --iso-wall-2: #161d27;
  --iso-sign-t: #3b3f47; --iso-sign-l: #24272d; --iso-sign-r: #1b1d22;
  --iso-bubble: #0f141b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
small { font-size: .8em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2); margin-bottom: 14px;
}
.eyebrow--light { color: var(--ink-3); }
.h1 {
  font-size: clamp(44px, 8vw, 96px); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06;
  font-weight: 700; letter-spacing: -0.03em;
}
.h3 {
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12;
  font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px;
}
.lead {
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; font-weight: 500;
  color: var(--ink-2); margin-top: 20px; max-width: 640px;
}
.lead--light { color: var(--ink-3); }
.muted { color: var(--ink-2); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad--green {
  background: linear-gradient(95deg, #a8e063 0%, #3ccf91 45%, #1a8fd6 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 980px; border: 0;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { transform: scale(.98); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--link); font-size: 17px; font-weight: 500;
}
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translate(3px, -1px); }
.link-arrow--light { color: #2997ff; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 980px; margin-bottom: 14px;
  background: var(--badge-bg); color: var(--ink-2);
}
.badge--light { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--nav-edge); }
.nav.is-dark { background: rgba(22,22,23,.72); color: #f5f5f7; }
.nav.is-dark .nav__links a { color: rgba(245,245,247,.8); }
.nav.is-dark .nav__links a:hover { color: #fff; }
.nav.is-dark .nav__toggle span { background: #f5f5f7; }
.nav__inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.nav__brand img { width: 20px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 13px; color: var(--nav-link); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav.is-dark .nav__links a.is-active { color: #fff; }
.nav__cta {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 980px;
  background: var(--blue); color: #fff; transition: background-color .2s;
}
.nav__cta:hover { background: var(--blue-hover); }
.theme-btn {
  width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 50%; background: none;
  display: grid; place-items: center; color: inherit; opacity: .8;
  transition: opacity .2s, background-color .2s;
}
.theme-btn:hover { opacity: 1; background: var(--badge-bg); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; position: relative;
}
.nav__toggle span {
  position: absolute; left: 14px; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 24px var(--gutter);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .03s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .06s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .09s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .12s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .15s; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(24px, 4vw, 48px);
  text-align: center; overflow: hidden;
}
.hero__copy { padding: 0 var(--gutter); max-width: 980px; margin: 0 auto; }
.hero__title {
  font-size: clamp(52px, 10vw, 120px); line-height: .98; font-weight: 800; letter-spacing: -0.045em;
}
.hero__lead {
  font-size: clamp(19px, 2vw, 26px); line-height: 1.3; font-weight: 500; color: var(--ink-2);
  margin-top: 26px;
}
.hero__ctas { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 34px; }

.hero__skyline {
  /* --skw: ortadaki orijinal kulelerin genişliği; yanlar js/skyline.js ile tuvale çizilir */
  --skw: min(360px, 56vw);
  position: relative; width: 100%; max-width: 1280px; height: calc(var(--skw) * 300 / 425);
  margin: clamp(56px, 7vw, 96px) auto 0;
  pointer-events: none;
}
/* görseldeki kuleler 1920px karede x:745–1170, y:0–300 arasında — sadece o bölgeyi göster */
.hero__skyline-crop {
  position: absolute; top: 0; bottom: 0; left: 50%; width: var(--skw);
  transform: translateX(-50%); overflow: hidden;
}
/* yan yapılar + gece ışıkları (js/skyline.js) — üstte vinç/anten/yıldız payı, kenarlarda yumuşak kaybolma */
.hero__lights {
  position: absolute; left: 0; top: -64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
/* şehir ışıltısı */
.hero__skyline::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -24%; height: 70%;
  background: radial-gradient(closest-side, rgba(255,190,90,.16), rgba(26,143,214,.08) 55%, transparent);
  opacity: 0; transition: opacity 1.6s var(--ease); pointer-events: none;
}
:root[data-theme="dark"] .hero__skyline::before { opacity: 1; }
.hero__skyline img {
  position: absolute; top: 0; left: -175.3%; width: 451.8%; max-width: none; height: auto;
  /* krem zemin → beyaz: çizgi illüstrasyonu sayfaya erir */
  filter: grayscale(1) brightness(1.12) contrast(1.35);
  mix-blend-mode: multiply;
  animation: rise 2s .5s var(--ease) both;
}
@keyframes rise {
  from { clip-path: inset(100% 0 0 0); transform: translateY(24px); }
  to   { clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- Build story: kaydırdıkça inşa edilen bina ---------- */
.build { position: relative; height: 340vh; }
.build__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  max-width: var(--maxw); margin: 0 auto; padding: var(--nav-h) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(300px, 1fr) 1.35fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.build__title {
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.032em;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; gap: 16px; padding: clamp(10px, 1.8vh, 18px) 0 clamp(10px, 1.8vh, 18px) 20px;
  border-left: 2px solid var(--line);
  color: var(--ink-3);
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.steps__n { font-size: 13px; font-weight: 600; padding-top: 6px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.steps p {
  font-size: 15px; line-height: 1.45; margin-top: 4px; max-width: 360px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .5s var(--ease);
}
.steps li.is-active { color: var(--ink); border-left-color: var(--brand-2); }
.steps li.is-active .steps__n { color: var(--brand-2); }
.steps li.is-active p { max-height: 80px; opacity: 1; color: var(--ink-2); }

.build__stage { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.build__stage::before {
  content: ""; position: absolute; inset: 12% 5% 6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(10px);
}
.build__stage svg { width: 100%; height: auto; max-height: calc(100svh - var(--nav-h) - 60px); overflow: visible; }
.iso polygon { stroke-linejoin: round; stroke: var(--iso-edge); stroke-width: .6; }
.iso text { font-family: var(--font); }
.iso g { transform-box: view-box; }
.build__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 240px; width: 60%; margin: 8px auto 0; }
.build__bar span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.build--static { height: auto; }
.build--static .build__sticky { position: static; height: auto; padding-block: 40px 80px; }
.build--static .steps li { color: var(--ink); }
.build--static .steps p { max-height: none; opacity: 1; }
.build--static .build__bar { display: none; }

/* ---------- Statement (scroll-lit words) ---------- */
.statement {
  padding: clamp(100px, 16vw, 200px) var(--gutter);
  max-width: 1100px; margin: 0 auto;
}
.statement__text {
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em;
}
.statement__text .w { color: var(--word-dim); transition: color .35s var(--ease); }
.statement__text .w.is-lit { color: var(--ink); }

/* ---------- Tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 1440px !important;
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: clamp(460px, 52vw, 640px);
  display: flex; flex-direction: column; justify-content: flex-start; text-align: center;
  isolation: isolate;
}
.tile__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease);
}
.tile:hover .tile__bg { transform: scale(1.04); }
.tile__body { padding: clamp(36px, 4.5vw, 56px) 28px; }
.tile__title { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.tile__sub { font-size: clamp(18px, 1.7vw, 22px); margin: 8px 0 16px; line-height: 1.3; }
.tile--dark { color: #fff; }
.tile--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 32%, rgba(0,0,0,0) 62%);
}
.tile--blueprint::before {
  background: linear-gradient(180deg, rgba(6,22,48,.92) 0%, rgba(6,22,48,.6) 34%, rgba(6,22,48,0) 64%);
}
.tile--light { background: #e8e8ea; color: #1d1d1f; }
.tile--light .badge { background: rgba(0,0,0,.06); color: #6e6e73; }
.tile--light::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(232,232,234,.9) 0%, rgba(232,232,234,0) 55%);
}
.tile--light .tile__sub { color: #6e6e73; }
.tile--market {
  background: radial-gradient(120% 90% at 50% 110%, #0a5fae 0%, #082c56 45%, #050b14 100%);
  color: #fff;
}
.tile--market .tile__sub { color: rgba(255,255,255,.72); }
.market-grid {
  margin: auto auto 48px; display: grid; grid-template-columns: repeat(3, 64px); gap: 14px;
  transform: perspective(700px) rotateX(48deg) rotateZ(-30deg);
}
.market-grid span {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(143,211,244,.95), rgba(26,143,214,.55));
  box-shadow: 0 18px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5);
  animation: float 6s var(--ease) infinite;
}
.market-grid span:nth-child(odd) { animation-delay: -2s; opacity: .8; }
.market-grid span:nth-child(3n) { animation-delay: -4s; opacity: .6; }
@keyframes float { 0%,100% { transform: translateZ(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius-md); padding: 32px 28px 36px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--card-shadow); }
.card__icon {
  width: 40px; height: 40px; margin-bottom: 26px;
  fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.feature-list { list-style: none; padding: 0; margin: 40px 0 0; }
.feature-list li {
  display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list__n { font-size: 13px; font-weight: 600; color: var(--brand-2); padding-top: 5px; font-variant-numeric: tabular-nums; }
.feature-list h3 { font-size: 21px; letter-spacing: -0.02em; }
.feature-list p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* ---------- Projects (dark) ---------- */
.showcase { margin: 0 auto; max-width: 1280px !important; }
.showcase__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius-lg); overflow: hidden;
  cursor: zoom-in;
}
.showcase__btn img { width: 100%; transition: transform 1.2s var(--ease); }
.showcase__btn:hover img { transform: scale(1.02); }
.showcase img { aspect-ratio: 16 / 9; object-fit: cover; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(56px, 8vw, 96px) !important; text-align: center;
}
.stat { padding: 8px; }
.stat__n {
  display: block; font-size: clamp(56px, 8vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #6e6e73 130%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { display: block; margin-top: 12px; color: #a1a1a6; font-size: 17px; line-height: 1.35; }
.stat__l small { color: #6e6e73; }

.plan {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-top: clamp(80px, 10vw, 140px) !important;
}
.plan__media .showcase__btn { background: #fff; padding: 12px; }
.plan__media img { aspect-ratio: auto; border-radius: 14px; }
.plan__copy .muted { color: #a1a1a6; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px; padding: 7px 13px; border-radius: 980px;
  background: var(--surface-dark); border: 1px solid #2a2a2c; color: #d2d2d7;
  transition: background-color .25s, border-color .25s;
}
.chips li:hover { background: #1f2a36; border-color: var(--brand-2); color: #fff; }

.rail-wrap { margin-top: clamp(80px, 10vw, 140px) !important; max-width: none !important; }
.rail-head {
  display: flex; align-items: end; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto 24px;
}
.rail-nav { display: flex; gap: 12px; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 26px; line-height: 1;
  background: #333336; color: #f5f5f7; transition: background-color .2s, opacity .2s;
  display: grid; place-items: center; padding-bottom: 3px;
}
.rail-btn:hover { background: #48484c; }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding: 4px max(0px, calc((100vw - var(--maxw)) / 2 - var(--gutter))) 24px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .showcase__btn {
  flex: 0 0 auto; width: clamp(260px, 38vw, 480px); scroll-snap-align: start; border-radius: var(--radius-md);
}
.rail img { aspect-ratio: 4 / 3; object-fit: cover; }

.project {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 64px);
  padding-top: 40px; border-top: 1px solid var(--line);
}
.project + .project { margin-top: clamp(56px, 7vw, 96px); }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mosaic .showcase__btn { border-radius: var(--radius-sm); grid-column: span 2; }
.mosaic .showcase__btn:first-child { grid-column: span 6; border-radius: var(--radius-md); }
.mosaic img { aspect-ratio: 3 / 2; object-fit: cover; }
.mosaic[data-count="4"] .showcase__btn:not(:first-child) { grid-column: span 2; }

/* ---------- Kurumsal ---------- */
.acronym {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(10px, 2vw, 28px);
  font-size: clamp(22px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.02em;
}
.acronym__part { color: var(--ink-3); white-space: nowrap; }
.acronym__part b {
  font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acronym__part span { transition: opacity .6s var(--ease); }
.acronym__note { text-align: center; color: var(--ink-2); margin-top: 18px !important; }

.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(56px, 8vw, 100px) !important;
}
.bento__item {
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px);
  font-size: 19px; line-height: 1.4; font-weight: 500;
}
.bento__item .eyebrow { color: var(--brand-2); }
.bento__item--wide { grid-column: span 4; }
.bento__big { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.bento__big strong { color: var(--brand-2); }
.bento__item--wide .muted { font-size: 19px; max-width: 720px; }
.bento__item--story { grid-column: span 4; }
.bento__item--ref {
  grid-column: span 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 40px;
}
.bento__item--ref .eyebrow { margin: 0 auto 0 0; }
.bento__ref { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.bento__ref small { font-weight: 500; color: var(--ink-3); }

.timeline { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline li { position: relative; padding-top: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; right: -24px; top: 5px; height: 2px; background: var(--line);
}
.timeline li:last-child::before { right: 0; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px var(--surface);
}
.timeline span { display: block; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); font-size: 15px; font-weight: 400; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ccard {
  background: var(--bg-alt); border-radius: var(--radius-md); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 4px; min-height: 190px;
  transition: transform .4s var(--ease), background-color .3s;
}
a.ccard:hover { transform: translateY(-3px); background: var(--alt-hover); }
.ccard svg { width: 28px; height: 28px; fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.ccard__l { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 22px; }
.ccard__v { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.hours { display: grid; grid-template-columns: auto auto; gap: 2px 14px; font-size: 15px; }
.hours span { color: var(--ink-2); font-weight: 500; }
.open-now { font-size: 13px; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: #1f9d55; }
.open-now.is-closed { color: var(--ink-3); }
.open-now:empty { display: none; }

.form { background: var(--bg-alt); border-radius: var(--radius-md); padding: clamp(24px, 3vw, 36px); }
.form .h3 { margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: block; margin-bottom: 12px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 16px 10px; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 130px; }
.field--select::after {
  content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(90deg);
  color: var(--ink-2); font-size: 22px; pointer-events: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.field > span {
  position: absolute; left: 17px; top: 18px; font-size: 17px; color: var(--ink-3); pointer-events: none;
  transform-origin: 0 0; transition: transform .2s var(--ease), color .2s;
}
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span {
  transform: translateY(-10px) scale(.72); color: var(--ink-2);
}
.form__note { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 12px; }

.map { margin-top: 16px !important; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.25); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; padding: 48px var(--gutter) 28px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__logo { width: 160px; height: auto; margin-bottom: 32px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer__cols a, .footer__cols span { display: block; padding: 4px 0; }
.footer__cols a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.footer__credit {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); text-align: center;
}
.footer__credit strong {
  font-weight: 700; letter-spacing: .04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__credit a { color: var(--ink-2); font-weight: 500; }
.footer__credit a::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.footer__credit a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Metin içi bağlantı ---------- */
.inline-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Alt sayfalar (ör. /yapi-market/) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(40px, 6vw, 72px); text-align: center; }
.page-hero > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 22px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero .hero__ctas { margin-top: 30px; }
.btn--ghost { background: var(--badge-bg); color: var(--ink); }
.btn--ghost:hover { background: var(--alt-hover); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why .card h3 { font-size: 21px; }

.faq { max-width: 860px !important; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--brand-2); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 24px 0; margin: 0; }

.contact__cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 833px) { .why, .contact__cards--3 { grid-template-columns: 1fr; } }

/* ---------- WhatsApp FAB ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px;
  border-radius: 980px; background: var(--fab-bg); color: #fff; font-size: 15px; font-weight: 600;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform .3s var(--ease), background-color .3s;
}
.wa:hover { transform: translateY(-2px); background: #25d366; }
.wa svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0,0,0,.92); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: lb-in .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; object-fit: contain; }
.lightbox figcaption { font-size: 14px; color: #a1a1a6; text-align: center; }
.lightbox__close, .lightbox__nav {
  border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%;
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; line-height: 1;
  transition: background-color .2s;
}
.lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 16px; }
.lightbox__nav { justify-self: center; padding-bottom: 3px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }

/* ---------- Koyu mod: görsel uyarlamaları ---------- */
/* gece: çizgiler koyu griye iner, yanan pencereler öne çıksın */
:root[data-theme="dark"] .hero__skyline img { filter: grayscale(1) brightness(1.12) contrast(1.35) invert(1) brightness(.42); mix-blend-mode: screen; }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.3); }
:root[data-theme="dark"] .tile--light .tile__bg { filter: brightness(.92); }
:root[data-theme="dark"] .section--dark { border-top: 1px solid #1d1d1f; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero açılışı: gözlemciyi beklemeden, sayfa yüklenir yüklenmez */
/* ekranın ilk görünen kısmı (ana sayfa ve alt sayfa girişleri) gözlemciyi beklemez — hızlı görünür, LCP için iyi */
.hero .reveal, .page-hero .reveal { animation: intro 1.1s var(--ease) both; }
.hero .reveal:nth-child(2), .page-hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3), .page-hero .reveal:nth-child(3) { animation-delay: .18s; }
.hero .reveal:nth-child(4), .page-hero .reveal:nth-child(4) { animation-delay: .28s; }
.page-hero .reveal:nth-child(5) { animation-delay: .36s; }
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; }
@keyframes intro { from { opacity: 0; transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .reveal, .page-hero .reveal, .hero__skyline img { animation: none; }
  .market-grid span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .nav__links { gap: 20px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide, .bento__item--story, .bento__item--ref { grid-column: span 2; }
}

@media (max-width: 833px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .theme-btn { margin-left: auto; margin-right: 0; }
  .tiles { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media img { aspect-ratio: 4 / 3; }
  .plan { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .br-d { display: none; }

  /* build story: sahne üstte, aktif adım altta */
  .build { height: 300vh; }
  .build__sticky {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 0;
    padding-top: calc(var(--nav-h) + 20px); padding-bottom: 20px; text-align: center;
  }
  .build__copy { display: contents; }
  .build__copy .eyebrow { display: none; }
  .build__title { font-size: clamp(30px, 8vw, 40px); margin-bottom: 0; grid-row: 1; }
  .build__stage { grid-row: 2; min-height: 0; }
  .build__stage svg { max-height: 100%; }
  .steps { grid-row: 3; position: relative; min-height: 120px; }
  .steps li {
    position: absolute; inset: 0; border: 0; padding: 0; justify-content: center; text-align: center;
    opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .steps li.is-active { opacity: 1; transform: none; }
  .steps__n { display: none; }
  .steps p { max-width: 320px; margin-inline: auto; }
  .build--static .steps { min-height: 0; }
  .build--static .steps li { position: static; opacity: 1; transform: none; margin-bottom: 18px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards--4 { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 4 / 3.4; border-radius: 20px; }
  .hero__ctas { gap: 20px; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .contact__cards { grid-template-columns: 1fr; }
  .ccard { min-height: 0; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide, .bento__item--story, .bento__item--ref { grid-column: auto; }
  .bento__item--ref { flex-direction: column; gap: 10px; }
  .bento__item--ref .eyebrow { margin-bottom: 4px; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline li { padding: 0 0 0 26px; }
  .timeline li::before { left: 5px; right: auto; top: 14px; bottom: -22px; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 6px; }
  .mosaic { gap: 8px; }
  .mosaic .showcase__btn { grid-column: span 3; }
  .mosaic .showcase__btn:first-child { grid-column: span 6; }
  .map iframe { height: 320px; }
  .wa span { display: none; }
  .wa { width: 52px; padding: 0; justify-content: center; }
  .acronym { flex-direction: column; align-items: center; gap: 4px; }
  .rail .showcase__btn { width: 82vw; }
}
