/* =========================================================
   ACC — Mekanik & Endüstri
   ========================================================= */

:root {
  --ink: #141413;
  --ink-2: #1d1d1b;
  --ink-3: #343432;
  --paper: #f2f2f2;
  --white: #ffffff;
  --text: #1d1d1b;
  --muted: #5f5f5c;
  --muted-dark: #a6a6a1;
  --line: rgba(29, 29, 27, .1);
  --line-dark: rgba(255, 255, 255, .12);

  --mek: #1c5eac;
  --mek-deep: #134b8e;
  --end: #01a65c;
  --end-deep: #017a44;
  --grad: linear-gradient(100deg, var(--mek) 0%, var(--end) 100%);
  --accent: var(--mek);

  --font-display: "Exo", system-ui, sans-serif;
  --font-body: "Exo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
  --hdr-bg: #ffffff;
}

body.theme-end { --accent: var(--end); }
body.theme-mek { --accent: var(--mek); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: #fff; opacity: .85; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.on-dark .btn-ghost, .btn-ghost.light { border-color: rgba(255,255,255,.3); color: #fff; }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(28,94,172,.6); }

/* ---------- Header: fixed bar, blue on Mekanik pages, green on Endüstri pages (none on home) ---------- */
.site-header {
  --bar: var(--mek-deep); --bar-hover: #1c477a; --bar-mark: var(--end); --cta: var(--end); --cta-hover: #018f4f;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: stretch;
  color: var(--text); overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 0, 0, .16);
}
.theme-end .site-header, .site-header.bar-end {
  --bar: var(--end); --bar-hover: #018f4f; --bar-mark: #fff; --cta: var(--mek-deep); --cta-hover: #1c477a;
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hdr-bg); }
.site-header .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; max-width: 1400px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.logo img { height: 40px; width: auto; }
@media (max-width: 520px) { .logo img { height: 30px; } }

/* coloured menu block fades in from white, a little left of the links */
.nav { display: flex; align-items: stretch; position: relative; background: var(--bar); }
.nav::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 260px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--bar) 82%); opacity: 1;
}
.nav::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 100vw; background: var(--bar); }
@media (max-width: 1140px) { .nav::before { width: 140px; } }
.nav a {
  position: relative; display: flex; align-items: center; padding: 0 18px; font-size: .95rem; font-weight: 600;
  color: rgba(255, 255, 255, .88); transition: color .25s, background .25s;
}
.nav a:hover { color: #fff; background: var(--bar-hover); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--bar-mark);
}
.nav .nav-cta { background: var(--cta); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--cta-hover); }
.nav .nav-cta.active::after { display: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 0; align-self: center;
  background: transparent; color: #fff; position: relative;
}
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-header::before { background: linear-gradient(90deg, var(--hdr-bg) 0%, var(--hdr-bg) 48%, var(--bar) 88%); }
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: stretch; gap: 0; padding: 80px 24px 24px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav::before, .nav::after { display: none; }
  .nav a { justify-content: center; padding: 16px; font-size: 1.35rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .nav a.active::after { left: 50%; right: auto; width: 36px; transform: translateX(-50%); bottom: 8px; }
  .nav .nav-cta { margin: 20px 0 0; border-bottom: 0; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* =========================================================
   HOME — split hero
   ========================================================= */
.split {
  position: relative; display: flex; height: 100vh; height: 100svh; min-height: 640px;
  background: var(--ink); overflow: hidden; color: #fff;
}
.split-brand {
  position: absolute; z-index: 5; left: 50%; top: clamp(48px, 12vh, 130px); transform: translateX(-50%);
  text-align: center; pointer-events: none; width: max-content; max-width: 100%;
}
.split-brand .acc { margin: 0; line-height: 0; }
.split-brand .acc img { width: clamp(300px, 46vw, 760px); height: auto; filter: drop-shadow(0 1px 1px rgba(255,255,255,.6)); }

.split-seam {
  position: absolute; z-index: 4; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(255,255,255,.45) 45%, rgba(255,255,255,.15) 100%);
  transition: left .8s var(--ease); pointer-events: none;
}
.split[data-hover="mek"] .split-seam { left: 55.5%; }
.split[data-hover="end"] .split-seam { left: 44.5%; }

.split-panel {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 5vw, 72px); padding-bottom: clamp(40px, 9vh, 96px);
  transition: flex-basis .8s var(--ease), flex-grow .8s var(--ease);
  isolation: isolate; overflow: hidden;
}
.split-panel .bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 1.4s var(--ease), filter .8s;
  filter: saturate(.8) brightness(.8);
}
.split-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .8s;
}
.split-mek::before { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.62) 20%, rgba(255,255,255,0) 40%, rgba(20,20,19,.4) 54%, rgba(12,48,92,.94) 100%), linear-gradient(90deg, rgba(19,75,142,.3), transparent 70%); }
.split-end::before { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.62) 20%, rgba(255,255,255,0) 40%, rgba(20,20,19,.4) 54%, rgba(0,62,35,.94) 100%), linear-gradient(270deg, rgba(1,122,68,.3), transparent 70%); }
.split-end { align-items: flex-end; text-align: right; }

.split-panel:hover .bg, .split-panel:focus-visible .bg { transform: scale(1); filter: saturate(1) brightness(.95); }
.split[data-hover="mek"] .split-mek, .split[data-hover="end"] .split-end { flex-grow: 1.25; }
.split[data-hover="mek"] .split-end .bg, .split[data-hover="end"] .split-mek .bg { filter: saturate(.4) brightness(.55); }

.split-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 6.2rem); letter-spacing: -.035em; line-height: 1; white-space: nowrap; padding-top: .08em;
}
.split-mek .split-title { background: linear-gradient(90deg, #fff 40%, #8db4e4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split-end .split-title { background: linear-gradient(270deg, #fff 68%, #5fd39a); -webkit-background-clip: text; background-clip: text; color: transparent; }

.split-more { display: block; }
.split-desc { max-width: 420px; margin: 18px 0 22px; color: rgba(255,255,255,.9); font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.split-end .split-desc { margin-left: auto; }
.split-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; max-width: 520px; }
.split-end .split-tags { justify-content: flex-end; margin-left: auto; }
.split-tags li {
  font-size: .78rem; font-weight: 500; padding: .45em .9em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
}
.split-go {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem;
}
.split-go .circle {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.split-go svg { width: 20px; height: 20px; }
.split-mek:hover .circle { background: var(--mek); border-color: var(--mek); transform: rotate(-45deg); }
.split-end:hover .circle { background: var(--end); border-color: var(--end); transform: rotate(-45deg); }
.split-end .split-go { flex-direction: row-reverse; }

/* intro animation */
.split-brand .acc, .split-title, .split-more { animation: rise 1.1s var(--ease) both; }
.split-title { animation-delay: .3s; }
.split-more { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .split { flex-direction: column; height: auto; min-height: 100svh; }
  .split-brand { position: relative; left: auto; transform: none; top: auto; width: 100%; padding: 64px 16px 36px; background: #fff; }
  .split-brand .acc img { width: min(86vw, 400px); }
  .split-seam { display: none; }
  .split-panel { min-height: 40svh; flex: 1 1 auto; }
  .split-end { align-items: flex-start; text-align: left; }
  .split-end .split-go { flex-direction: row; }
  .split-end::before { background: linear-gradient(180deg, rgba(20,20,19,.3) 0%, rgba(0,62,35,.93) 100%); }
  .split-mek::before { background: linear-gradient(180deg, rgba(20,20,19,.3) 0%, rgba(12,48,92,.93) 100%); }
  .split-desc { font-size: .95rem; }
  .split-end .split-desc, .split-end .split-tags { margin-left: 0; justify-content: flex-start; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section.dark { background: var(--ink); color: #fff; }
.section.white { background: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-top: 16px; }
.section-head p { color: var(--muted); max-width: 520px; margin: 0; justify-self: end; }
.dark .section-head p { color: var(--muted-dark); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center p { justify-self: center; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } .section-head p { justify-self: start; } }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-text { color: var(--accent); }

/* ---------- Intro / statement ---------- */
.statement {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); max-width: 1050px;
}
.statement .soft { color: #9a9a95; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 80px); background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 28px 26px; }
.white .stat { background: var(--white); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.value:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(29,29,27,.25); }
.value .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; }
.value .ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -.01em; }
.value p { color: var(--muted); font-size: .93rem; margin: 0; }
.dark .value { background: var(--ink-2); border-color: var(--line-dark); }
.dark .value p { color: var(--muted-dark); }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- References ---------- */
.ref-card {
  width: 220px; height: 130px; flex-shrink: 0; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 22px; position: relative;
}
.ref-card img { max-height: 70px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; mix-blend-mode: multiply; }
.ref-card:hover img { filter: none; opacity: 1; }
.ref-card figcaption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); opacity: 0; transition: opacity .3s; }
.ref-card:hover figcaption { opacity: 1; }
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ref-grid .ref-card { width: auto; height: 170px; }
@media (max-width: 860px) { .ref-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: 28px; overflow: hidden; padding: clamp(40px, 7vw, 88px);
  background: var(--ink); color: #fff; isolation: isolate;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 0% 100%, rgba(28,94,172,.45), transparent 70%), radial-gradient(600px 300px at 100% 0%, rgba(1,166,92,.4), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cta-band p { color: var(--muted-dark); margin: 16px 0 0; max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-self: end; }
.cta-actions a.line { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 600; }
.cta-actions a.line svg { width: 20px; height: 20px; opacity: .7; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-actions { justify-self: start; } }

/* =========================================================
   Inner page hero
   ========================================================= */
.page-hero {
  position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(48px, 8vw, 96px); color: #fff; background: var(--ink); overflow: hidden; isolation: isolate;
}
.page-hero.short { min-height: 52vh; min-height: 52svh; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.theme-mek .page-hero::before { background: linear-gradient(180deg, rgba(20,20,19,.6), rgba(20,20,19,.35) 40%, rgba(12,48,92,.95)), linear-gradient(90deg, rgba(19,75,142,.5), transparent 70%); }
.theme-end .page-hero::before { background: linear-gradient(180deg, rgba(20,20,19,.6), rgba(20,20,19,.35) 40%, rgba(0,62,35,.95)), linear-gradient(90deg, rgba(1,122,68,.5), transparent 70%); }
.theme-neutral .page-hero::before { background: radial-gradient(700px 400px at 10% 100%, rgba(28,94,172,.35), transparent 70%), radial-gradient(700px 400px at 100% 0%, rgba(1,166,92,.3), transparent 70%); }
.crumbs { display: flex; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.page-hero h1 {
  font-weight: 900; font-stretch: 112%; font-size: clamp(3rem, 9vw, 8.5rem); letter-spacing: -.04em; line-height: .88;
}
.page-hero h1 .pre { display: block; font-size: .3em; font-weight: 700; letter-spacing: .02em; font-stretch: 100%; opacity: .7; margin-bottom: .3em; }
.page-hero .lead { max-width: 620px; margin: 28px 0 0; font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.82); }
.page-hero .hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-switch {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
  font-size: .9rem; transition: background .3s, border-color .3s;
}
.hero-switch:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.hero-switch b { font-family: var(--font-display); letter-spacing: .04em; }
.hero-switch .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.hero-switch .dot svg { width: 16px; height: 16px; }
.hero-switch.to-end .dot { background: var(--end); }
.hero-switch.to-mek .dot { background: var(--mek); }

/* sub-nav (anchor chips) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(242,242,242,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: .5em 1em; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: background .25s, color .25s; }
.subnav a:hover { color: var(--text); background: rgba(29,29,27,.06); }
.subnav a.active { background: var(--accent); color: #fff; }

/* ---------- Feature block (service / product) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature + .feature { margin-top: clamp(72px, 10vw, 130px); }
.feature-media { position: relative; }
.feature-media .frame {
  border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #f4f4f4, #e5e5e5); aspect-ratio: 4 / 3.2;
  display: grid; place-items: center; position: relative;
}
.feature-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-media .frame.contain { background: #fff; border: 1px solid var(--line); }
.feature-media .frame.contain img { object-fit: contain; padding: 6%; }
.feature-media:hover .frame img { transform: scale(1.04); }
.feature-media .chip {
  position: absolute; left: 20px; bottom: 20px; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 8px;
}
.feature-media .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature-media .num-badge {
  position: absolute; top: -18px; right: -10px; font-family: var(--font-display); font-weight: 900; font-size: 6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .35; pointer-events: none;
}
.feature-body h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 16px 0 20px; }
.feature-body > p { color: var(--muted); font-size: 1.04rem; }
.checks { display: grid; gap: 12px; margin: 24px 0 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.checks.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .checks.two { grid-template-columns: 1fr; }
}

/* ---------- Spec cards ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec {
  position: relative; border-radius: 22px; padding: 34px 30px; background: var(--ink-2); border: 1px solid var(--line-dark); color: #fff; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.spec:hover { transform: translateY(-4px); border-color: rgba(1,166,92,.45); }
.spec .tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #5fd39a; font-weight: 600; }
.spec h3 { font-size: 1.45rem; margin: 14px 0 18px; }
.spec ul li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-dark); color: #cfcfca; font-size: .95rem; }
.spec ul li::before { content: ""; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--end); flex-shrink: 0; }
.spec .big { font-family: var(--font-display); font-weight: 900; font-size: 4.2rem; letter-spacing: -.04em; line-height: 1; margin: 6px 0 4px; }
.spec .big sup { font-size: .45em; vertical-align: top; position: relative; top: .3em; }
@media (max-width: 960px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Benefit tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.tile { background: var(--white); padding: 34px 28px; transition: background .3s; }
.tile:hover { background: #fbfcfd; }
.tile .n { font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--accent-ink); letter-spacing: .1em; }
.tile h3 { font-size: 1.15rem; margin: 18px 0 10px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: .93rem; margin: 0; }
.dark .tiles { background: var(--line-dark); border-color: var(--line-dark); }
.dark .tile { background: var(--ink-2); }
.dark .tile:hover { background: var(--ink-3); }
.dark .tile p { color: var(--muted-dark); }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 36px 30px 32px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 22px;
}
.theme-mek .step::before { background: linear-gradient(120deg, var(--mek), #8ab6ff); -webkit-background-clip: text; background-clip: text; }
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Wide photo ---------- */
.wide-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.wide-photo figcaption {
  position: absolute; left: 24px; bottom: 24px; right: 24px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.wide-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,20,19,.75)); pointer-events: none; }
.wide-photo figcaption { z-index: 1; }
.wide-photo figcaption b { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.8rem); display: block; letter-spacing: -.02em; }
.wide-photo figcaption span { font-size: .9rem; opacity: .8; }
@media (max-width: 700px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery.two { grid-template-columns: 1fr 1fr; }
.gallery .frame { border-radius: 22px; overflow: hidden; background: #fff; aspect-ratio: 16 / 9.5; }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery .frame.contain img { object-fit: contain; padding: 5%; }
.gallery .frame:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery, .gallery.two { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc-wrap { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 80px -40px rgba(29,29,27,.35); }
.calc-wrap iframe { display: block; width: 100%; height: 1900px; border: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about-grid .sticky { position: sticky; top: 120px; align-self: start; }
.about-grid h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-top: 16px; }
.prose p { font-size: 1.08rem; color: #3a3a37; }
.prose p:first-child { font-size: 1.3rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.quote {
  margin: 36px 0 0; padding: 32px; border-radius: 22px; background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.prose .quote p, .quote p { color: #fff; margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.quote small { display: block; margin-top: 14px; color: var(--muted-dark); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .sticky { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.contact-card { border-radius: 24px; padding: clamp(28px, 4vw, 44px); background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.contact-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(400px 260px at 100% 0%, rgba(1,166,92,.35), transparent 70%), radial-gradient(400px 260px at 0% 100%, rgba(28,94,172,.4), transparent 70%); }
.contact-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 4px; }
.contact-item a, .contact-item address { font-style: normal; font-weight: 500; line-height: 1.5; }
.contact-item a:hover { color: #8db4e4; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.socials svg { width: 18px; height: 18px; }

.form { border-radius: 24px; padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); }
.form h3 { font-size: 1.6rem; margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: #3a3a37; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .98rem; padding: .9em 1em; border-radius: 12px; border: 1px solid #dcdcd8; background: #fafafa; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--mek); background: #fff; box-shadow: 0 0 0 4px rgba(28,94,172,.12); }
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: .8em .6em; border-radius: 12px; border: 1px solid #dcdcd8; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.seg input:checked + label { border-color: transparent; color: #fff; }
.seg input[value="Mekanik"]:checked + label { background: var(--mek); }
.seg input[value="Endüstri"]:checked + label { background: var(--end); }
.seg input[value="Genel"]:checked + label { background: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--mek); outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .seg { grid-template-columns: 1fr; } }

.map { margin-top: 24px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: 380px; background: #e6e9ee; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #cfcfca; padding: clamp(64px, 8vw, 100px) 0 32px; position: relative; overflow: hidden; }
.footer-big {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(6rem, 26vw, 22rem); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
  margin: -0.05em 0 -.12em; text-align: center;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-grid h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 600; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-grid .mek-h { color: #8db4e4; }
.footer-grid .end-h { color: #5fd39a; }
.footer-about .logo img { height: 40px; }
.site-footer .logo .logo-on-light { display: none !important; }
.site-footer .logo .logo-on-dark { display: block !important; }
.footer-about p { max-width: 340px; color: var(--muted-dark); margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: .85rem; color: #8d8d8d; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Logo variants, language + theme controls
   ========================================================= */
.logo-on-dark { display: none !important; }
[data-theme="dark"] .logo-on-light { display: none !important; }
[data-theme="dark"] .logo-on-dark { display: block !important; }

.tools { display: flex; align-items: center; gap: 8px; padding-left: 14px; }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.nav .lang-switch a, .lang-switch a {
  display: block; padding: 6px 11px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; line-height: 1;
  color: rgba(255,255,255,.8); border: 0; background: transparent;
}
.nav .lang-switch a::after { display: none; }
.nav .lang-switch a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav .lang-switch a.on, .lang-switch a.on { background: #fff; color: var(--bar, var(--text)); }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; display: grid; place-items: center; padding: 0; transition: background .25s, transform .4s var(--ease);
}
.theme-btn:hover { background: rgba(255,255,255,.14); transform: rotate(-20deg); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 960px) {
  .nav .tools { justify-content: center; padding: 28px 0 0; gap: 12px; }
  .nav .lang-switch a { font-size: .9rem; padding: 9px 16px; }
  .nav .theme-btn { width: 44px; height: 44px; }
}

/* home: floating controls in the top-right corner */
.tools-float {
  position: fixed; top: 16px; right: 18px; z-index: 60; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
}
.tools-float .lang-switch { border-color: rgba(0,0,0,.14); }
.tools-float .lang-switch a { color: #3a3a37; }
.tools-float .lang-switch a:hover { background: rgba(0,0,0,.06); }
.tools-float .lang-switch a.on { background: #1d1d1b; color: #fff; }
.tools-float .theme-btn { color: #1d1d1b; border-color: rgba(0,0,0,.14); }
.tools-float .theme-btn:hover { background: rgba(0,0,0,.06); }

/* =========================================================
   Dark theme ("gece modu")
   ========================================================= */
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211; --white: #1b1b1a; --text: #ecece8; --muted: #a3a39e; --muted-dark: #a3a39e;
  --line: rgba(255,255,255,.1); --ink: #0b0b0a; --ink-2: #1f1f1d; --ink-3: #2c2c2a;
  --hdr-bg: #1b1b1a;
}
[data-theme="dark"] .split-mek::before { background: linear-gradient(180deg, rgba(12,12,11,.88) 0%, rgba(12,12,11,.6) 20%, rgba(12,12,11,0) 40%, rgba(12,12,11,.4) 54%, rgba(12,48,92,.94) 100%), linear-gradient(90deg, rgba(19,75,142,.3), transparent 70%); }
[data-theme="dark"] .split-end::before { background: linear-gradient(180deg, rgba(12,12,11,.88) 0%, rgba(12,12,11,.6) 20%, rgba(12,12,11,0) 40%, rgba(12,12,11,.4) 54%, rgba(0,62,35,.94) 100%), linear-gradient(270deg, rgba(1,122,68,.3), transparent 70%); }
[data-theme="dark"] .split-seam { background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.35) 45%, rgba(255,255,255,.12) 100%); }
[data-theme="dark"] .split-brand .acc img { filter: none; }
[data-theme="dark"] .tools-float { background: rgba(27,27,26,.8); }
[data-theme="dark"] .tools-float .lang-switch { border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .tools-float .lang-switch a { color: #cfcfca; }
[data-theme="dark"] .tools-float .lang-switch a.on { background: #ecece8; color: #121211; }
[data-theme="dark"] .tools-float .theme-btn { color: #ecece8; border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .subnav { background: rgba(18,18,17,.9); }
[data-theme="dark"] .subnav a:hover { background: rgba(255,255,255,.07); }
[data-theme="dark"] .feature-media .frame { background: linear-gradient(160deg, #262624, #1c1c1b); }
[data-theme="dark"] .feature-media .frame.contain, [data-theme="dark"] .gallery .frame { background: #fff; border-color: transparent; }
[data-theme="dark"] .feature-media .chip { background: rgba(27,27,26,.92); color: var(--text); }
[data-theme="dark"] .ref-card { background: #f1f1ef; border-color: transparent; }
[data-theme="dark"] .tile:hover { background: #222220; }
[data-theme="dark"] .prose p { color: #c9c9c4; }
[data-theme="dark"] .prose p:first-child { color: var(--text); }
[data-theme="dark"] .form { background: var(--white); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .form h3 { color: var(--text); }
[data-theme="dark"] .field label { color: #d4d4cf; }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select { background: #262624; border-color: #46463f; color: var(--text); }
[data-theme="dark"] .field input::placeholder, [data-theme="dark"] .field textarea::placeholder { color: #85857f; }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field textarea:focus { background: #2c2c2a; border-color: var(--mek); box-shadow: 0 0 0 4px rgba(141,180,228,.18); }
[data-theme="dark"] .seg label { border-color: #46463f; color: var(--text); }
[data-theme="dark"] .seg input[value="Genel"]:checked + label { background: #ecece8; color: #121211; }
[data-theme="dark"] .btn-ghost:hover { border-color: var(--text); }
[data-theme="dark"] .step::before { -webkit-background-clip: text; background-clip: text; }
@media (max-width: 760px) { .split-brand { background: var(--white); } }

/* =========================================================
   Mobile layer (≤760px): tighter rhythm, swipe galleries, bottom action bar
   ========================================================= */
a, button { -webkit-tap-highlight-color: transparent; }
.m-bar { display: none; }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; }

  /* home: always exactly one screen, whatever the phone height */
  .split { height: 100vh; height: 100svh; min-height: 540px; }
  .split-brand { padding: 66px 16px 22px; flex: none; }
  .split-panel { flex: 1 1 0; min-height: 0; padding: 20px 20px 24px; }
  .split-title { font-size: clamp(2.2rem, 11.5vw, 3.1rem); }
  .split-desc { margin: 8px 0 14px; font-size: .92rem; line-height: 1.5; }
  .split-go { margin-top: 0 !important; font-size: .92rem; }
  .split-go .circle { width: 44px; height: 44px; }
  .tools-float { top: 12px; right: 12px; }

  /* inner page heroes */
  .page-hero, .page-hero.short { min-height: 0; padding: calc(var(--header-h) + 44px) 0 40px; }
  .page-hero h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .page-hero h1 .pre { font-size: .32em; }
  .page-hero .lead { margin-top: 18px; font-size: 1rem; }
  .page-hero .hero-row { gap: 24px; }
  .hero-switch { font-size: .85rem; padding: 8px 8px 8px 16px; }
  .crumbs { margin-bottom: 16px; }
  .subnav .wrap { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-top: 10px; padding-bottom: 10px; }

  /* section rhythm */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .about-grid h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); margin-top: 12px; }
  .feature { gap: 22px; }
  .feature + .feature { margin-top: 64px; }
  .feature-body h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); margin: 12px 0 14px; }
  .feature-body > p { font-size: 1rem; }
  .feature-media .frame { aspect-ratio: 16 / 11; border-radius: 18px; }
  .feature-media .num-badge { font-size: 4rem; top: -12px; right: 4px; }
  .feature-media .chip { left: 12px; bottom: 12px; font-size: .76rem; padding: 8px 12px; }
  .checks { gap: 10px; }

  /* swipeable galleries */
  .gallery, .gallery.two {
    display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .frame { flex: 0 0 84%; scroll-snap-align: center; border-radius: 16px; }

  /* cards */
  .spec { padding: 26px 22px; border-radius: 18px; }
  .spec h3 { font-size: 1.25rem; }
  .spec .big { font-size: 3.4rem; }
  .spec-grid, .steps, .values { gap: 12px; }
  .tile { padding: 24px 20px; }
  .tile h3 { margin: 10px 0 6px; }
  .value { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 22px 20px; }
  .value .ico { width: 46px; height: 46px; margin: 0; grid-row: span 2; }
  .value h3 { margin-bottom: 4px; align-self: end; }
  .step { padding: 24px 22px; }
  .step::before { font-size: 2.6rem; margin-bottom: 12px; }
  .cta-band { padding: 32px 22px; border-radius: 22px; gap: 22px; }
  .cta-band h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .cta-actions a.line { padding: 8px 0; }
  .wide-photo { border-radius: 18px; }
  .wide-photo figcaption { left: 16px; right: 16px; bottom: 16px; }

  /* about / references */
  .about-grid { gap: 28px; }
  .prose p:first-child { font-size: 1.15rem; }
  .prose p { font-size: 1rem; }
  .quote { padding: 24px 22px; }
  .quote p { font-size: 1.08rem; }
  .ref-grid { gap: 10px; }
  .ref-grid .ref-card { height: 112px; padding: 14px; border-radius: 14px; }

  /* contact */
  .contact-card, .form { padding: 26px 20px; border-radius: 20px; }
  .contact-item a { display: inline-block; padding: 8px 0; }
  .field input, .field textarea, .field select { font-size: 16px; }   /* stops iOS zooming on focus */
  .form .btn { width: 100%; justify-content: center; padding: 1.1em; }
  .map { height: 280px; border-radius: 20px; }

  /* calculator: its layout stacks on phones, so it needs more room */
  .calc-wrap { border-radius: 16px; }
  .calc-wrap iframe { height: 3100px; }

  /* footer */
  .site-footer { padding: 52px 0 24px; }
  .footer-grid { gap: 26px; padding-bottom: 32px; }
  .footer-grid li { margin-bottom: 2px; }
  .footer-grid a { display: inline-block; padding: 6px 0; }

  /* bottom quick-contact bar on inner pages */
  .m-bar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -6px 22px rgba(0,0,0,.12);
  }
  .m-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px;
    font-weight: 700; font-size: .95rem; color: var(--text); border: 1px solid var(--line);
  }
  .m-bar svg { width: 18px; height: 18px; }
  .m-bar .m-bar-cta { background: var(--mek-deep); color: #fff; border-color: transparent; }
  .theme-end .m-bar .m-bar-cta, .side-end .m-bar .m-bar-cta { background: var(--end); }
  body:has(.m-bar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .menu-open .m-bar { display: none; }
  [data-theme="dark"] .m-bar { background: rgba(27,27,26,.95); }
}

/* short phones (e.g. iPhone SE): drop the panel blurbs so the home screen never scrolls */
@media (max-width: 760px) and (max-height: 700px) {
  .split-desc { display: none; }
  .split-go { margin-top: 12px !important; }
  .split-brand { padding: 60px 16px 16px; }
}

/* =========================================================
   Text-safe accent colours (WCAG AA) + theme-aware inline links
   ========================================================= */
:root { --accent-ink: #017a44; }
body.theme-mek { --accent-ink: #1c5eac; }
[data-theme="dark"] { --accent-ink: #5fd39a; }
[data-theme="dark"] body.theme-mek { --accent-ink: #8db4e4; }
.eyebrow { color: var(--accent-ink); }
.on-dark .eyebrow { color: #fff; }
.section.dark .eyebrow, .dark .eyebrow { color: #5fd39a; }
.lnk { font-weight: 600; }
.lnk-end { color: #017a44; } .lnk-mek { color: #1c5eac; }
[data-theme="dark"] .lnk-end { color: #5fd39a; } [data-theme="dark"] .lnk-mek { color: #8db4e4; }
/* reference cards stay light in dark mode, so their captions must stay dark */
[data-theme="dark"] .ref-card figcaption { color: #4a4a47; }
.section.dark .tile .n, .dark .tile .n { color: #5fd39a; }
/* the footer is dark in both themes: keep it identical so toggling the theme doesn't make it flicker */
.site-footer, [data-theme="dark"] .site-footer { background: #0e0e0d; }
