/* ==========================================================================
   Gültekinler İthalat İhracat - Design System (site.css)
   --------------------------------------------------------------------------
   Industrial / corporate. Light mode default, dark mode via [data-theme].
   Zero border-radius. Headings Bold 700. Brand yellow #FEC40E.
   Token-driven, mobile-first, RTL-ready (logical properties).
   --------------------------------------------------------------------------
   SECTIONS
   1. @font-face
   2. Tokens (:root light + [data-theme=dark])
   3. Reset / base
   4. Typography
   5. Layout (container, section, grid)
   6. Components
        Utility bar, Header / Nav / Brand / Menu, Lang switch, Theme toggle,
        Hamburger / Mobile menu, Buttons, Hero, Stat strip, Cards / Service card,
        CTA band, Timeline, Section head, Footer, Forms, Badge, Breadcrumb,
        Photo placeholder (.ph), Model skeleton, Map, Alerts
   7. Motion (keyframes + reduced-motion)
   8. Responsive (640 / 768 / 1024 / 1280)
   9. RTL fixes
   ========================================================================== */


/* ==========================================================================
   1. @FONT-FACE - self-hosted Montserrat (single variable woff2)
   ========================================================================== */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-var.woff2') format('woff2-variations'),
       url('../fonts/montserrat-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   2. TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --y: #FEC40E;
  --y-ink: #000;            /* text that sits on yellow */
  --y-soft: rgba(254, 196, 14, .18);
  --y-line: rgba(254, 196, 14, .6);
  /* Accessible gold for small/large YELLOW TEXT on LIGHT backgrounds.
     Bright #FEC40E fails WCAG AA on white; this darkened gold passes AA
     while reading as the same brand accent. Flips to bright --y in dark. */
  --y-text: #7a6203;

  /* Surfaces & text (LIGHT = default) */
  --ink: #141414;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --border: #ececec;
  --muted: #555;
  --muted-2: #6e6e6e;   /* AA on --surface-2 (#f6f6f4): 4.6:1 */

  /* Inverted / dark band (used in both themes for stat strip, footer) */
  --band: #141414;
  --band-ink: #ffffff;
  --band-muted: #9a9a9a;
  --band-border: rgba(255, 255, 255, .09);

  /* Header */
  --header-bg: #ffffff;
  --header-border: #ececec;
  --util-bg: #141414;
  --util-ink: #9a9a9a;

  /* Hero */
  --hero-bg: #f6f6f4;
  --hero-grid: rgba(0, 0, 0, .045);
  --gear-stroke: #141414;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, .12);

  /* Type */
  --ff: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fw-light: 300;
  --fw-base: 400;
  --fw-med: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 26px);
  --section-y: clamp(48px, 8vw, 96px);

  /* Semantic status */
  --error: #d23b3b;
  --success: #2faa5e;

  /* Motion */
  --t-fast: .15s ease;
  --t: .25s ease;
  --t-slow: .4s ease;

  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f4f4f4;
  --bg: #0b0b0c;
  --bg-alt: #161616;
  --surface: #1a1a1a;
  --surface-2: #161616;
  --border: #2a2a2a;
  --muted: #aaa;
  --muted-2: #888;

  --header-bg: rgba(11, 11, 12, .92);
  --header-border: rgba(255, 255, 255, .06);
  --util-bg: #000;
  --util-ink: #9a9a9a;

  --hero-bg: #0b0b0c;
  --hero-grid: rgba(255, 255, 255, .035);
  --gear-stroke: var(--y);
  /* On dark backgrounds bright yellow passes AA - use it for label text */
  --y-text: var(--y);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-lift: 0 22px 50px rgba(0, 0, 0, .6);

  color-scheme: dark;
}


/* ==========================================================================
   3. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border-radius: 0; }

/* overflow-x: clip stops sideways scroll without creating a scroll container,
   so position:sticky headers keep working (unlike overflow:hidden on html). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--ff);
  font-weight: var(--fw-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t), color var(--t);
  overflow-x: clip;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 2px;
}

::selection { background: var(--y); color: #000; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { font-weight: var(--fw-base); }

strong, b { font-weight: var(--fw-semi); }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: var(--fw-base);
}

.text-light { font-weight: var(--fw-light); }
.text-muted { color: var(--muted); }

/* Uppercase yellow label / kicker */
.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: var(--fw-bold);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--y-text);
}
[data-theme="dark"] .label { color: var(--y); }

/* Hard yellow highlight on a heading word (mockup: h2.head em) */
.hl {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--y) 62%, var(--y) 92%, transparent 92%);
  padding-inline: 4px;
}
/* In dark mode the mockup colors the word yellow instead of underlining */
[data-theme="dark"] .hl {
  background: none;
  color: var(--y);
  padding-inline: 0;
}


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  /* Skip rendering (layout/paint/animation) of off-screen sections until they
     scroll near the viewport. Massively cuts main-thread work on long pages —
     e.g. the below-fold 3D-carousel skeleton shimmers no longer animate while
     off-screen — which lets Lighthouse's lab model see an idle main thread
     (big LCP / Speed-Index / TTI win). The hero is .hero (not .section) so it
     always renders. `auto` intrinsic-size remembers each section's real height
     after first render to avoid scroll jumps. */
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

.grid { display: grid; gap: var(--sp-5); }
/* Prevent min-content blowout: grid children must not claim more than their cell */
.grid > * { min-width: 0; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Collapse fixed-column grids to single column on narrow mobile */
@media (max-width: 599px) {
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}
/* 2-column sections (text + visual / form / cards) stack on phones & small
   tablets. Bare .grid--2 (hakkımızda kurumsal kimlik, anasayfa kurumsal,
   makine detay intro/servis kartları) had no collapse and stayed 2-up on
   phones — cramped text + tiny visual. Custom variants already collapse, this
   covers the rest uniformly. */
@media (max-width: 767px) {
  .grid--2 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-block-start: var(--sp-4); }


/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* ---- Accent bar (thin yellow vertical/horizontal rule) ------------------ */
.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--y);
  margin-block-end: var(--sp-4);
}

/* ---- Section head ------------------------------------------------------- */
.section-head { max-width: 720px; margin-block-end: var(--sp-7); }
.section-head .label { margin-block-end: var(--sp-3); }
.section-head h2 { margin-block-end: var(--sp-4); }
.section-head p { color: var(--muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .accent-bar { margin-inline: auto; }


/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .85rem;
  font-weight: var(--fw-bold);
  letter-spacing: .03em;
  line-height: 1;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--y); color: var(--y-ink); border-color: var(--y); }
.btn--primary:hover { background: #e9b40a; border-color: #e9b40a; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--on-dark:hover { background: #fff; color: #000; border-color: #fff; }

.btn--sm { padding: 10px 16px; font-size: .78rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }


/* ---- Utility bar (top: location + phone + langs) ----------------------- */
.util-bar {
  background: var(--util-bg);
  color: var(--util-ink);
  font-size: .7rem;
  font-weight: var(--fw-med);
  letter-spacing: .02em;
}
.util-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  min-height: 34px;
  padding-block: 6px;
}
.util-bar__group { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.util-bar__loc { display: inline-flex; align-items: center; gap: .35em; }
.util-bar__loc .util-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: .85; }
.util-bar b { color: var(--y); font-weight: var(--fw-bold); }


/* ---- Language switch --------------------------------------------------- */
.lang-switch { display: flex; gap: var(--sp-2); align-items: center; }
.lang-switch a {
  font-size: .7rem;
  font-weight: var(--fw-semi);
  color: var(--util-ink);
  padding-block-end: 1px;
  transition: color var(--t-fast);
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"],
.lang-switch a.is-active {
  color: #fff;
  font-weight: var(--fw-bold);
  border-block-end: 2px solid var(--y);
}
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,.2);
  margin-inline-end: 4px;
  flex-shrink: 0;
}
.lang-opt.is-disabled {
  /* On the dark util-bar; --util-ink reads clearly while still looking
     subdued next to the active TR. Avoid low opacity so it stays legible. */
  color: var(--util-ink);
  cursor: default;
  font-size: .7rem;
  font-weight: var(--fw-semi);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: .85;
}


/* ---- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-block-end: 1px solid var(--header-border);
  backdrop-filter: saturate(120%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--sp-4);
  min-height: 64px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 0; flex: none; }

/* Theme-aware logo swap */
.brand__logo--light,
.brand__logo--dark {
  display: block;
  height: 38px;
  width: 218px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark  { display: block; }

/* Footer logo (always dark-bg version) */
.footer__logo {
  display: block;
  height: 38px;
  width: 218px;
  object-fit: contain;
}

.menu { display: flex; gap: var(--sp-2); align-items: center; flex: 1 1 auto; justify-content: center; }
.menu a {
  font-size: .75rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
  padding-block-end: 3px;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.menu a:hover { color: var(--muted); }
.menu a[aria-current="page"],
.menu a.is-active {
  border-block-end: 2px solid var(--y);
}

.nav-end { display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta {
  background: var(--y);
  color: #000;
  font-weight: var(--fw-bold);
  font-size: .75rem;
  letter-spacing: .03em;
  padding: 11px 18px;
  transition: background var(--t-fast);
}
.nav-cta:hover { background: #e9b40a; }


/* ---- Theme toggle ------------------------------------------------------ */
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.theme-toggle:hover { border-color: var(--y); color: var(--y); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }


/* ---- Hamburger + mobile menu ------------------------------------------ */
.hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid var(--border);
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-block-start: 1px solid var(--header-border);
  background: var(--header-bg);
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: var(--sp-3); }
.mobile-menu a {
  padding: 14px var(--gutter);
  font-weight: var(--fw-semi);
  font-size: .95rem;
  border-block-end: 1px solid var(--header-border);
}
.mobile-menu a:last-child { border-block-end: none; }
.mobile-menu .btn { margin: var(--sp-4) var(--gutter); }


/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: radial-gradient(130% 120% at 88% -10%, #222 0%, #0b0b0c 55%);
}

/* ---- Hero - peek carousel (Zeppelin-style homepage hero) -------------- */
/* A horizontal carousel: the ACTIVE slide is centered & large; the prev/next
   slides PEEK in (dimmed) at the edges. Square corners. Dark band in both
   themes (slides are dark photos with a gradient overlay). slider.js drives it. */
.hero--carousel {
  position: relative;
  background: #0c0c0e;
  padding-block: clamp(28px, 4vw, 56px);
  /* Clip the peeking neighbours so they never cause horizontal scroll */
  overflow: hidden;
}
[data-theme="dark"] .hero--carousel {
  background: #08080a;
}

/* Viewport: clips the wide track to the section width */
.hero__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Track: flex row of slides; JS sets transform:translateX() to center active.
   Width is wider than the viewport so neighbours peek at the edges. */
.hero__track {
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.4vw, 20px);
  will-change: transform;
  transition: transform 620ms cubic-bezier(.22, .61, .36, 1);
}

/* Each slide: a fixed share of the viewport so neighbours peek.
   Desktop: ~78% active width → ~11% peek each side. */
.hero__slide {
  position: relative;
  flex: 0 0 78%;
  height: clamp(440px, 64vh, 660px);
  overflow: hidden;
  /* Non-active slides are dimmed + slightly shrunk */
  opacity: .42;
  filter: saturate(.85);
  transform: scale(.965);
  transition: opacity 620ms ease, transform 620ms ease, filter 620ms ease;
}
.hero__slide.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

/* Media layer: photo / placeholder fills the slide */
.hero__media {
  position: absolute;
  inset: 0;
  background: #16161b;
  overflow: hidden;
}
.hero__media .ph {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  min-height: 100%;
  border: none;
  background: #1a1a20;
  color: rgba(255, 255, 255, .26);
  font-size: .9rem;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark gradient overlay - keeps the bottom-left caption legible (AA) */
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, .82) 0%,
      rgba(0, 0, 0, .55) 32%,
      rgba(0, 0, 0, .18) 62%,
      rgba(0, 0, 0, .05) 100%
    );
}

/* Caption: bottom-left, headline + CTA */
.hero__caption {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: clamp(22px, 4vw, 48px);
  /* Fade the caption in/out with the slide's active state */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease 120ms, transform 520ms ease 120ms;
  pointer-events: none;
}
.hero__slide.is-active .hero__caption {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero__headline {
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
/* Yellow highlight on a headline word - readable on the dark photo */
.hero__headline .hl {
  background: none;
  color: var(--y);
  padding-inline: 0;
}

.hero__cta {
  margin-block-start: clamp(16px, 2vw, 24px);
}
.hero__cta-chev {
  font-size: 1.25em;
  line-height: 0;
  margin-inline-start: 2px;
  transform: translateY(.04em);
}

/* ── Controls: play/pause toggle + segmented progress indicator ── */
.hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  margin-block-start: clamp(18px, 2.6vw, 30px);
  padding-inline: var(--gutter);
}

.hero__playpause {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.hero__playpause:hover {
  background: var(--y);
  border-color: var(--y);
  color: #000;
}
.hero__playpause:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 3px;
}
.hero__playpause svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* Toggle which icon shows based on the .is-playing state */
.hero__playpause .hero__icon-play { display: none; }
.hero__playpause .hero__icon-pause { display: block; }
.hero__playpause:not(.is-playing) .hero__icon-play { display: block; }
.hero__playpause:not(.is-playing) .hero__icon-pause { display: none; }

.hero__progress {
  display: flex;
  align-items: center;
  gap: 2px;
}
/* Segment button: 24×24 tap target (AA), with the VISUAL dot/pill drawn by
   ::before so the small dot keeps an accessible hit area. */
.hero__seg {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero__seg::before {
  content: "";
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, .34);
  transition: width var(--t-fast), background var(--t-fast);
}
.hero__seg:hover::before {
  background: rgba(255, 255, 255, .6);
}
.hero__seg.is-active {
  width: 54px;   /* widen tap target to fit the pill */
}
.hero__seg.is-active::before {
  width: 40px;
  background: var(--y);
}
.hero__seg:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 3px;
}

/* ── Responsive: mobile shows mostly the active slide (tiny peek) ── */
@media (max-width: 720px) {
  .hero__slide {
    flex-basis: 88%;
    height: clamp(380px, 62vh, 520px);
  }
  .hero__headline {
    font-size: clamp(1.5rem, 6.4vw, 2.1rem);
    max-width: 15ch;
  }
}
@media (max-width: 460px) {
  .hero__slide { flex-basis: 92%; }
}

/* ── Reduced-motion: no slide animation (JS also disables autoplay) ── */
@media (prefers-reduced-motion: reduce) {
  .hero__track { transition: none; }
  .hero__slide,
  .hero__caption { transition: none; }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, #000 25%, transparent 90%);
          mask-image: linear-gradient(90deg, #000 25%, transparent 90%);
  pointer-events: none;
}
.hero__accent {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 8px;
  background: var(--y);
  z-index: 2;
}
.hero__glow {
  position: absolute;
  inset-inline-end: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(254, 196, 14, .16), transparent 65%);
  pointer-events: none;
  display: none;
}
[data-theme="dark"] .hero__glow { display: block; }

.hero__gear {
  position: absolute;
  inset-inline-end: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  pointer-events: none;
}
.hero__gear .gear-1 { position: absolute; inset: 0; }
.hero__gear .gear-2 {
  position: absolute;
  width: 175px;
  inset-inline-end: 24px;
  bottom: -20px;
}
.hero__gear .gear-2 path,
.hero__gear svg [stroke] { stroke: var(--gear-stroke); }

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 660px;
  padding-block: clamp(40px, 7vw, 64px);
  padding-inline-start: clamp(26px, 5vw, 56px);
  padding-inline-end: var(--gutter);
}

.htag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .7rem;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7a6203;
  background: var(--y-soft);
  border: 1px solid var(--y-line);
  padding: 6px 12px;
}
[data-theme="dark"] .htag { color: var(--y); background: transparent; }
.htag .dot { width: 6px; height: 6px; background: var(--y); flex: none; }

.hero__content h1 { margin-block-start: var(--sp-5); }
.hero__content h1 em { font-style: normal; }

.hsub {
  color: var(--muted);
  font-size: clamp(.95rem, 1.5vw, 1rem);
  line-height: 1.6;
  font-weight: var(--fw-base);
  margin-block: var(--sp-4) var(--sp-6);
  max-width: 520px;
}

.cta { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }


/* ---- Hero with 3D model ----------------------------------------------- */
/* On desktop the hero becomes a 2-col layout: text left, 3D right.
   The model container gets a fixed height so there is NO CLS - the
   gear skeleton fills it before first interaction, then the GLB loads. */
.hero--has-model {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: single column */
  grid-template-rows: auto;
  align-items: center;
}

/* accent, grid, glow stay absolutely positioned - no change needed */

.hero__model {
  position: relative;
  z-index: 3;
  width: 100%;
  /* Explicit height so the layout slot is reserved before the GLB loads - no CLS */
  height: clamp(280px, 45vw, 520px);
  display: none;                        /* hidden on mobile by default */
}

/* The mv-wrap inside hero__model fills the container height */
.hero__model .mv-wrap.hero-viewer {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;                  /* override the default 4/3 */
  background: transparent;
  border: none;
}

@media (min-width: 900px) {
  .hero--has-model {
    /* Text left (~55%), 3D right (~45%) */
    grid-template-columns: 1fr minmax(0, 480px);
    min-height: clamp(400px, 55vh, 600px);
  }

  /* hero__content stays in col 1, hero__model goes to col 2 */
  .hero--has-model .hero__content {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    padding-inline-end: var(--sp-6);
  }

  .hero--has-model .hero__model {
    display: block;
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: clamp(340px, 45vw, 520px);
    align-self: stretch;
    padding-block: clamp(20px, 3vw, 40px);
    padding-inline-end: clamp(16px, 3vw, 40px);
  }

  /* Decorative elements (grid, accent, glow) span both cols via absolute pos - fine */

  /* Hide the old gear decorations when a model is shown */
  .hero--has-model .hero__gear { display: none; }
  .hero--has-model .hero__glow { display: none; }
}

/* Mobile: show 3D stacked below the text (compact height) */
@media (max-width: 899px) {
  .hero--has-model .hero__model {
    display: block;
    height: clamp(200px, 56vw, 320px);
    margin-inline: calc(-1 * var(--gutter));  /* bleed edge-to-edge */
    margin-block-end: 0;
  }
  .hero--has-model .hero__model .mv-wrap.hero-viewer {
    border-inline: none;
  }
  /* Reduce bottom padding so model doesn't push content too far */
  .hero--has-model .hero__content {
    padding-block-end: var(--sp-4);
  }
}


/* ---- Stat strip (dark band, 4 cols) ----------------------------------- */
.stat-strip {
  position: relative;
  z-index: 3;
  background: var(--band);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
[data-theme="dark"] .stat-strip {
  background: rgba(0, 0, 0, .45);
  border-block-start: 1px solid var(--y-line);
}
.stat-strip__item {
  padding: 18px 24px;
  border-inline-end: 1px solid var(--band-border);
}
.stat-strip__item:last-child { border-inline-end: none; }
.stat-strip__num { font-size: clamp(1.4rem, 2.5vw, 1.7rem); font-weight: var(--fw-bold); color: var(--y); line-height: 1; }
.stat-strip__label {
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--band-muted);
  font-weight: var(--fw-semi);
  margin-block-start: 4px;
}


/* ---- Card / Service card ---------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--sp-6);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow); }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0; height: 3px;
  background: var(--y);
  transition: width var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--y-line); }
.service-card:hover::before { width: 100%; }

.service-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--y-soft);
  color: var(--ink);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-card__link {
  margin-block-start: auto;
  font-size: .8rem;
  font-weight: var(--fw-bold);
  letter-spacing: .03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.service-card__link::after { content: "→"; transition: transform var(--t-fast); }
.service-card:hover .service-card__link::after { transform: translateX(4px); }


/* ---- Service tile (visual category tile - replaces icon card) ---------- */
/* Used on homepage services section and /tr/hizmetler overview.
   Client replaces ph() placeholder with a real 640×420 photo.
   Entire tile is a single <a> - no nested interactive elements.        */
.service-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  /* No border-radius - square corners match brand tokens */
}
.service-tile::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: var(--y);
  transition: width var(--t);
  z-index: 2;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--y-line);
}
.service-tile:hover::before { width: 100%; }
:focus-visible.service-tile {
  outline: 2px solid var(--y);
  outline-offset: 2px;
}

/* Image area */
.service-tile__img {
  position: relative;
  overflow: hidden;
  /* ph() inside uses aspect-ratio: 640/420 so height is automatic */
}
.service-tile__img .ph,
.service-tile__img img {
  width: 100%;
  /* Override ph's aspect-ratio to stay 640/420 */
  aspect-ratio: 640 / 420;
  transition: transform var(--t-slow);
}
.service-tile__img img {
  display: block;
  height: auto;
  object-fit: cover;
}
.service-tile:hover .service-tile__img img { transform: scale(1.04); }
/* Hide the <span> inside the tile ph - the ::before pseudo already shows dim.
   This prevents the label from doubling up on narrow mobile viewports. */
.service-tile__img .ph span {
  display: none;
}
.service-tile:hover .service-tile__img .ph {
  transform: scale(1.04);
}

/* Dark overlay that deepens on hover */
.service-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
  transition: background var(--t);
  pointer-events: none;
}
.service-tile:hover .service-tile__overlay {
  background: rgba(0, 0, 0, .18);
}

/* Icon badge over the image (bottom-left corner) */
.service-tile__badge {
  position: absolute;
  inset-block-end: var(--sp-3);
  inset-inline-start: var(--sp-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--y);
  color: var(--y-ink);
  z-index: 1;
}
.service-tile__badge svg {
  width: 20px;
  height: 20px;
}

/* Text body */
.service-tile__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.service-tile__cat {
  font-size: .68rem;
  font-weight: var(--fw-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--y-text);
}
[data-theme="dark"] .service-tile__cat { color: var(--y); }
.service-tile h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.2;
}
.service-tile p {
  color: var(--muted);
  font-size: .9rem;
  flex: 1;
}
.service-tile__cta {
  margin-block-start: var(--sp-2);
  font-size: .8rem;
  font-weight: var(--fw-bold);
  letter-spacing: .03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--t-fast);
}
.service-tile:hover .service-tile__cta { gap: var(--sp-3); }

/* Grid of tiles: 3-col desktop → 2-col tablet → 1-col mobile.
   Using auto-fit with a min of 280px ensures no horizontal overflow at 390px. */
.service-tiles-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
@media (min-width: 900px) {
  .service-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* RTL arrow direction */
[dir="rtl"] .service-tile__cta { direction: rtl; }


/* ---- Sector card ------------------------------------------------------- */
/* Used on /gultekinler-grup and the homepage group strip. */
.sector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.sector-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: var(--y);
  transition: width var(--t);
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--y-line);
}
.sector-card:hover::before { width: 100%; }

/* Line-icon badge band */
.sector-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 92px;
  color: var(--ink);
  background: var(--y-soft);
  border-block-end: 1px solid var(--border);
  line-height: 1;
  transition: background var(--t), color var(--t);
}
.sector-card__icon svg {
  width: 42px;
  height: 42px;
  display: block;
}
[data-theme="dark"] .sector-card__icon {
  background: rgba(254, 196, 14, .09);
  color: var(--y);
}
.sector-card:hover .sector-card__icon {
  background: rgba(254, 196, 14, .28);
}
[data-theme="dark"] .sector-card:hover .sector-card__icon {
  background: rgba(254, 196, 14, .18);
}

/* Photo banner (real image) + small line-icon badge overlay */
.sector-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--y-soft);
  border-block-end: 1px solid var(--border);
}
.sector-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.sector-card:hover .sector-card__media img { transform: scale(1.05); }
.sector-card__badge {
  position: absolute;
  inset-block-end: var(--sp-3);
  inset-inline-start: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--y);
  color: #141414;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.sector-card__badge svg { width: 22px; height: 22px; display: block; }

/* Corporate identity figure (logo gear technical drawing).
   No frame, no white background: the transparent line art is painted with the
   theme ink colour via CSS mask, so it is dark on light and "lights up" (light
   ink) automatically in dark mode. */
.corp-visual {
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1100 / 1441;
  background-color: var(--ink);
  -webkit-mask: url("/assets/img/kurumsal/kurumsal-kimlik.webp") no-repeat center / contain;
          mask: url("/assets/img/kurumsal/kurumsal-kimlik.webp") no-repeat center / contain;
}

/* Card body - title + description */
.sector-card__body {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.sector-card__body h3 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.2;
}
.sector-card__body p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  flex: 1 1 auto;
}

/* Brand chip footer */
.sector-card__footer {
  padding: var(--sp-3) var(--sp-5);
  border-block-start: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
  background: var(--surface-2);
}
.sector-card__brand-label {
  font-size: .65rem;
  font-weight: var(--fw-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  flex: none;
}
.sector-card__brand {
  display: inline-block;
  font-size: .78rem;
  font-weight: var(--fw-semi);
  color: var(--y-ink);
  background: var(--y);
  padding: 2px 8px;
  line-height: 1.5;
  letter-spacing: .01em;
}
[data-theme="dark"] .sector-card__brand {
  color: #000;
}


/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
  background: var(--band);
  color: var(--band-ink);
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-block: clamp(36px, 6vw, 64px);
  position: relative;
  z-index: 2;
}
.cta-band__text h2 { color: #fff; }
.cta-band__text p { color: var(--band-muted); margin-block-start: var(--sp-3); }
.cta-band .accent-bar { background: var(--y); }
.cta-band__gear {
  position: absolute;
  inset-inline-end: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px; height: 280px;
  opacity: .12;
  pointer-events: none;
}


/* ---- Timeline ---------------------------------------------------------- */
.timeline {
  position: relative;
  padding-inline-start: var(--sp-6);
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 4px;
  width: 2px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-block-end: var(--sp-7);
}
.timeline__item:last-child { padding-block-end: 0; }
.timeline__marker {
  position: absolute;
  inset-inline-start: calc(-1 * var(--sp-6));
  inset-block-start: 4px;
  width: 12px; height: 12px;
  background: var(--y);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--y);
}
.timeline__period {
  font-size: .8rem;
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  color: var(--y-text);
  text-transform: uppercase;
}
.timeline__item h3 { margin-block: var(--sp-2); font-size: 1.25rem; }
.timeline__item p { color: var(--muted); }


/* ---- Footer ------------------------------------------------------------ */
.footer {
  background: #0b0b0c;
  color: #cfcfcf;
  border-block-start: 3px solid var(--y);
}
.footer__cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-block: var(--sp-8);
}
.footer__col-head {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: var(--fw-semi);
  margin-block-end: var(--sp-4);
}
.footer a { color: #b8b8b8; font-size: .9rem; transition: color var(--t-fast); }
.footer a:hover { color: var(--y); }
.footer ul li { margin-block-end: var(--sp-2); }
/* Tap-target size: footer column links need >=24px height (WCAG 2.5.8) */
.footer__cols ul a { display: inline-block; padding-block: 4px; }
.footer__brand p { color: #9a9a9a; font-size: .9rem; margin-block-start: var(--sp-3); max-width: 320px; }
.footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, .08);
  padding-block: var(--sp-5);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: .8rem;
  color: #8a8a8a;
}
.footer__credit { color: #888; font-size: .75rem; }
.footer__credit a { color: #aaa; font-size: .75rem; text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--y); }


/* ---- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-block-end: var(--sp-4); }
.field label {
  font-size: .82rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.field .req { color: var(--y-text); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--y);
  box-shadow: 0 0 0 3px var(--y-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field.is-error input,
.field.is-error textarea,
.field.is-error select { border-color: var(--error); }
.field__error { display: none; color: var(--error); font-size: .78rem; font-weight: var(--fw-med); }
.field.is-error .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: .85rem;
  color: var(--muted);
}
.checkbox input { width: 18px; height: 18px; flex: none; margin-block-start: 2px; accent-color: var(--y); }


/* ---- Badge ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: .7rem;
  font-weight: var(--fw-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--y);
  color: #000;
}
.badge--outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.badge--muted { background: var(--surface-2); color: var(--muted); }


/* ---- Breadcrumb -------------------------------------------------------- */
.breadcrumb { font-size: .8rem; color: var(--muted); padding-block: var(--sp-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumb a:hover { color: var(--y); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: var(--fw-semi); }


/* ---- Photo placeholder (.ph) ------------------------------------------ */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface-2);
  border: 2px dashed var(--border);
  color: var(--muted-2);
  font-size: .8rem;
  font-weight: var(--fw-semi);
  letter-spacing: .08em;
  min-height: 160px;
  aspect-ratio: 4 / 3;
}
.ph::before {
  content: "🖼 " attr(data-dim);
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--banner { aspect-ratio: 12 / 5; }
.ph--square { aspect-ratio: 1 / 1; }

/* ==========================================================================
   ABOUT HERO (editorial / industrial) - hakkimizda top section
   ========================================================================== */
.about-hero { position: relative; }

/* --- Editorial intro band: blueprint grid + rotating gear --- */
.about-hero__intro {
  position: relative;
  overflow: clip;
  background: var(--hero-bg);
  border-block-start: 1px solid var(--border);
}
.about-hero__atmos { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.about-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 80% 0%, #000 30%, transparent 75%);
}
.about-hero__gear {
  position: absolute;
  inset-inline-end: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px; height: 440px;
  color: var(--gear-stroke);
  opacity: .05;
}
[data-theme="dark"] .about-hero__gear { opacity: .12; }
.about-hero__gear .gear-1 { position: absolute; inset: 0; }
.about-hero__gear .gear-2 { position: absolute; width: 165px; inset-inline-end: 16px; bottom: 8px; }

/* --- Editorial text block --- */
.about-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(28px, 6vw, 64px) clamp(28px, 5vw, 52px);
}
.about-hero__inner .breadcrumb { margin-block-end: clamp(20px, 4vw, 40px); }

.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .72rem;
  font-weight: var(--fw-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--y-text);
  background: var(--y-soft);
  border: 1px solid var(--y-line);
  padding: 7px 13px;
}
[data-theme="dark"] .about-hero__eyebrow { color: var(--y); }
.about-hero__eyebrow .dot {
  width: 7px; height: 7px; background: var(--y);
  display: inline-block; flex-shrink: 0;
}

.about-hero__title {
  margin-block-start: var(--sp-5);
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -.02em;
}
.about-hero__sub {
  margin-block-start: var(--sp-5);
  max-width: 60ch;
}

/* --- Cinematic full-bleed brand collage --- */
.about-hero__banner {
  position: relative;
  margin: 0;
  width: 100%;
  line-height: 0;
  background: var(--band);
}
.about-hero__banner img { width: 100%; height: auto; display: block; }
.about-hero__banner-line {
  position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: var(--y); z-index: 2;
}

/* --- Staggered page-load reveal --- */
.about-hero__eyebrow,
.about-hero__title,
.about-hero__sub { animation: aboutUp .7s cubic-bezier(.2,.7,.2,1) backwards; }
.about-hero__eyebrow { animation-delay: .05s; }
.about-hero__title  { animation-delay: .14s; }
.about-hero__sub    { animation-delay: .24s; }
@keyframes aboutUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .about-hero__eyebrow,
  .about-hero__title,
  .about-hero__sub { animation: none; }
}
@media (max-width: 768px) {
  .about-hero__gear { width: 280px; height: 280px; inset-inline-end: -110px; }
}

/* ==========================================================================
   VALUE CARDS - vizyon / misyon / değerler (hakkimizda)
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(26px, 3.4vw, 40px);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.value-card::before {
  content: "";
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  height: 3px; width: 0; background: var(--y);
  transition: width var(--t);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--y-line); }
.value-card:hover::before { width: 100%; }
.value-card__index {
  position: absolute;
  inset-block-start: 4px; inset-inline-end: 16px;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  transition: -webkit-text-stroke-color var(--t);
  pointer-events: none;
  user-select: none;
}
.value-card:hover .value-card__index { -webkit-text-stroke-color: var(--y-line); }
.value-card__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  background: var(--y-soft); color: var(--ink);
  margin-block-end: var(--sp-5);
}
[data-theme="dark"] .value-card__icon { color: var(--y); }
.value-card__icon svg { width: 27px; height: 27px; }
.value-card h3 { position: relative; margin-block-end: var(--sp-3); }
.value-card p { position: relative; color: var(--muted); }
@media (max-width: 899px) { .value-grid { grid-template-columns: 1fr; } }
.ph--og { aspect-ratio: 1.91 / 1; }


/* ---- Model skeleton (3D loading placeholder) -------------------------- */
.model-skeleton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--muted-2);
}
.model-skeleton__gear {
  width: 64px; height: 64px;
  opacity: .35;
}
.model-skeleton__gear path,
.model-skeleton__gear [fill] { fill: var(--y); }
.model-skeleton--error {
  opacity: .5;
}

/* ---- 3D model viewer wrapper ------------------------------------------ */
.mv-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mv-wrap model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  --poster-color: transparent;
  background-color: transparent;
}
/* Skeleton fills the poster slot edge-to-edge (no double border). */
.mv-wrap model-viewer .model-skeleton {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
}


/* ---- Map --------------------------------------------------------------- */
.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ---- Hizmet Haritası - themed OpenLayers map ----------------------- */
/* Shared sizing for both the homepage and the dedicated-page maps. */
.service-map {
  width: 100%;
  border: 2px solid var(--border);
  aspect-ratio: unset;            /* override generic .map ratio */
  position: relative;
  background: var(--surface-2);
}

/* ---- Unified map panel (map + region/country aside in ONE card) ------ */
/* Desktop: two columns inside a single bordered container so the map and the
   region list read as one unit. Mobile: stack inside the same card. */
.map-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border: 2px solid var(--border);
  background: var(--surface);
  overflow: hidden;            /* children share the panel edges */
  align-items: stretch;
}

/* Map column - fills the full height of the panel. The map element itself
   stretches to the column; the .service-map border is dropped here because
   the panel already provides the outer border + a divider. */
.map-panel__map {
  position: relative;
  min-height: 520px;
}
.map-panel__map .service-map {
  border: 0;
  height: 100%;
  min-height: inherit;
}

/* Aside column - region/country list. Internal scroll if taller than the map.
   A thin divider separates it from the map so they share one frame. */
.map-panel__aside {
  border-inline-start: 1px solid var(--border);
  background: var(--surface);
  padding: var(--sp-4) var(--sp-5);
  max-height: 520px;
  overflow-y: auto;
}

.map-panel__aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-block-end: var(--sp-4);
  padding-block-end: var(--sp-3);
  border-block-end: 1px solid var(--border);
}
.map-panel__aside-title {
  font-size: 1.05rem;
  margin: 0;
}

/* "Tüm ülkeler" reset - subtle ghost chip, brand-yellow on hover/focus. */
.map-panel__reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: .76rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
}
.map-panel__reset:hover,
.map-panel__reset:focus-visible {
  background: var(--y);
  color: var(--y-ink);
  border-color: var(--y);
  outline: none;
}

/* Region group - compact, with hover/focus highlight + yellow accent so it
   reads as the control that drives the map. */
.map-panel__region {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid transparent;
  border-inline-start: 3px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.map-panel__region + .map-panel__region {
  margin-block-start: var(--sp-2);
}
.map-panel__region:hover,
.map-panel__region:focus-visible,
.map-panel__region.is-active {
  background: var(--surface-2);
  border-color: var(--border);
  border-inline-start-color: var(--y);
  outline: none;
}
/* Active (synced with the live map) - stronger yellow accent + subtle ring. */
.map-panel__region.is-active {
  border-inline-start-width: 4px;
  box-shadow: inset 0 0 0 1px var(--y);
}
.map-panel__region-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .95rem;
  margin: 0 0 var(--sp-2);
}
.map-panel__region-name { flex: 1 1 auto; }
.map-panel__count {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: var(--fw-bold);
  color: var(--y-ink);
  background: var(--y);
  padding: 1px 8px;
  line-height: 1.5;
}
/* Chevron affordance - slides in / brightens on hover/focus/active. */
.map-panel__chev {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  opacity: .55;
  transform: translateX(-2px);
  transition: transform var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.map-panel__region:hover .map-panel__chev,
.map-panel__region:focus-visible .map-panel__chev,
.map-panel__region.is-active .map-panel__chev {
  color: var(--y);
  opacity: 1;
  transform: translateX(2px);
}
@media (prefers-reduced-motion: reduce) {
  .map-panel__chev { transition: none; }
}
.map-panel__countries {
  list-style: none;
  margin: 0;
  padding-inline-start: 0;
}
.map-panel__country {
  font-size: .88rem;
  color: var(--ink);
}

/* Mobile / narrow: stack map on top of the list inside the same card. */
@media (max-width: 900px) {
  .map-panel { grid-template-columns: 1fr; }
  .map-panel__map { min-height: 320px; }
  .map-panel__map .service-map { height: 320px; }
  .map-panel__aside {
    border-inline-start: 0;
    border-block-start: 1px solid var(--border);
    max-height: none;
  }
}
@media (max-width: 480px) {
  .map-panel__map { min-height: 300px; }
  .map-panel__map .service-map { height: 300px; }
  .map-panel__aside { padding: var(--sp-4); }
}

/* ---- Pre-load state (non-instructional, branded) ------------------------
   OpenLayers loads only on the first gesture (see map.js). Until the live map
   reports rendercomplete (.is-ready on #…haritasi), show a tasteful branded
   shimmer + a small "Hizmet Haritası" label - NO how-to copy. */
.map-preload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-2);
  pointer-events: none;
  transition: opacity .4s ease;
}
/* Subtle moving sheen across the placeholder surface. */
.map-preload__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    color-mix(in srgb, var(--y) 12%, transparent) 50%,
    transparent 70%
  );
  background-size: 220% 100%;
  animation: map-shimmer 2.4s linear infinite;
}
@keyframes map-shimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
/* Faint grid texture so the empty state reads as a map, not a blank box. */
.map-preload::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
}
.map-preload__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--y);
  box-shadow: var(--shadow);
}
.map-preload__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--y);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--y) 60%, transparent);
  animation: map-pulse 1.8s ease-out infinite;
}
@keyframes map-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--y) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.map-preload__label {
  font-size: .85rem;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: .01em;
}
/* Once the live map is ready, fade the placeholder out and remove it from flow. */
.service-map.is-ready ~ .map-preload {
  opacity: 0;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .map-preload__shimmer,
  .map-preload__dot { animation: none; }
  .map-preload { transition: none; }
}

/* OSM tile layer - industrial greyscale (light mode).
   Targeting .ol-tiles-themed (the className on tileLayer) keeps the filter
   scoped to the tile canvas only - markers render true brand-yellow. */
.ol-tiles-themed {
  filter: grayscale(1) contrast(.95) brightness(1.03);
}

/* Dark mode - deeper muted treatment (tiles only, markers unaffected) */
[data-theme="dark"] .ol-tiles-themed {
  filter: grayscale(1) invert(0.92) hue-rotate(180deg) brightness(.9);
}

/* OpenLayers attribution - subtle, small, themed (reads © Türkol Yazılım · © Spatly) */
.service-map .ol-attribution {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: .66rem;
  inset-inline-end: 0;
  inset-block-end: 0;
  padding: 1px 2px;
}
.service-map .ol-attribution button { display: none; }
.service-map .ol-attribution.ol-uncollapsible { border-radius: 0; }
.service-map .ol-attribution a { color: var(--muted); }
.service-map .ol-attribution ul {
  margin: 0;
  padding: 2px 6px;
  font-size: .66rem;
  text-shadow: none;
}

/* OL zoom + custom reset controls - square, ink/yellow brand styling. */
.service-map .ol-zoom .ol-zoom-in,
.service-map .ol-zoom .ol-zoom-out,
.service-map .ol-map-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
}
.service-map .ol-zoom .ol-zoom-in:hover,
.service-map .ol-zoom .ol-zoom-in:focus-visible,
.service-map .ol-zoom .ol-zoom-out:hover,
.service-map .ol-zoom .ol-zoom-out:focus-visible,
.service-map .ol-map-reset:hover,
.service-map .ol-map-reset:focus-visible {
  background: var(--y);
  color: var(--y-ink);
  border-color: var(--y);
  outline: none;
}
.service-map .ol-zoom .ol-zoom-in { margin-block-end: 2px; }

/* Reset control - sits just below the zoom stack, top-left. */
.service-map .ol-map-reset-ctrl {
  top: 70px;
  left: .5em;
}

/* ---- Marker hover tooltip (country name) -------------------------------- */
.map-tip {
  position: relative;
  transform: translateX(-50%);
  padding: 3px 9px;
  background: var(--ink);
  color: var(--surface);
  font-size: .76rem;
  font-weight: var(--fw-bold);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.map-tip::after {
  content: "";
  position: absolute;
  inset-block-end: -8px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}

/* ---- Map popup card ------------------------------------------------ */
.map-popup {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--y);
  padding: var(--sp-4) var(--sp-5);
  min-width: 220px;
  max-width: 300px;
  box-shadow: var(--shadow);
  /* square corners (0 border-radius already in reset) */
}
/* Arrow below popup pointing at marker */
.map-popup::after {
  content: "";
  position: absolute;
  inset-block-end: -10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--y);
}

.map-popup__close {
  position: absolute;
  inset-block-start: var(--sp-2);
  inset-inline-end: var(--sp-2);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  transition: color var(--t-fast);
}
.map-popup__close:hover { color: var(--y); }

.map-popup__name {
  display: block;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  margin-block-end: var(--sp-2);
  padding-inline-end: var(--sp-5); /* space for × button */
}

.map-popup__svc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-block-end: var(--sp-4);
}

.map-popup__btn {
  font-size: .78rem;
  padding: 8px 16px;
}

/* ---- Country list items (inside the map panel aside) -------------- */
/* Flag - square corners, subtle border so light flags read on white. */
.flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border: 1px solid var(--border);
  object-fit: cover;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* Non-detailed flag+name row. */
.map-panel__country {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-block: 2px;
}

/* Detailed (clickable) country button - flies the map to that country. */
.country-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-1) var(--sp-2);
  background: none;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  font-size: .88rem;
  text-align: start;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.country-link:hover,
.country-link:focus-visible {
  background: var(--surface);
  border-color: var(--y);
  outline: none;
}


/* ---- Alerts ------------------------------------------------------------ */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-inline-start: 4px solid var(--y);
  background: var(--surface-2);
  color: var(--ink);
  font-size: .9rem;
}
.alert--success { border-inline-start-color: var(--success); }
.alert--error { border-inline-start-color: var(--error); }


/* ==========================================================================
   7. MOTION
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }

.spin { animation: spin 38s linear infinite; transform-origin: 50% 50%; }
.spin--rev { animation: spin 22s linear infinite reverse; transform-origin: 50% 50%; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.model-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(254, 196, 14, .07), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .spin, .spin--rev { animation: none !important; }
  .model-skeleton::after { display: none; }
}


/* ==========================================================================
   8. RESPONSIVE (mobile-first overrides)
   ========================================================================== */

/* Default (mobile) collapses for the larger pieces */
.stat-strip { grid-template-columns: repeat(2, 1fr); }
.stat-strip__item:nth-child(2n) { border-inline-end: none; }
.footer__cols { grid-template-columns: 1fr; }
.hero__gear { width: 320px; height: 320px; inset-inline-end: -140px; opacity: .55; }

/* Sector card grid: single column on mobile, 2-col on small tablet, 3-col on desktop */
.grid--3:has(.sector-card),
.grid--3.sector-grid {
  grid-template-columns: 1fr;
}

/* >= 640 */
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .grid--3:has(.sector-card),
  .grid--3.sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* >= 1024 */
@media (min-width: 1024px) {
  .grid--3:has(.sector-card),
  .grid--3.sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* >= 768 */
@media (min-width: 768px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .stat-strip__item:nth-child(2n) { border-inline-end: 1px solid var(--band-border); }
  .stat-strip__item:last-child { border-inline-end: none; }
  .hero__gear { width: 420px; height: 420px; opacity: .8; }
}

/* >= 1024 - layout tweaks */
@media (min-width: 1024px) {
  .footer__cols { grid-template-columns: 2fr repeat(3, 1fr); }
  .hero__gear { width: 500px; height: 500px; inset-inline-end: -120px; opacity: 1; }
}

/* >= 1280 - full desktop nav (8 items fit on a single line) */
/* < 1280 - nav collapses to hamburger */
@media (max-width: 1279.98px) {
  .menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-end .theme-toggle { display: inline-flex; }
}

/* >= 1280 - give hero a touch more room */
@media (min-width: 1280px) {
  .hero__content { max-width: 700px; }
}

/* Small phones */
@media (max-width: 480px) {
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .util-bar__inner { font-size: .65rem; }
  .footer__bottom { flex-direction: column; }
}


/* ==========================================================================
   9. RTL FIXES
   ========================================================================== */
[dir="rtl"] .hero__grid {
  -webkit-mask-image: linear-gradient(270deg, #000 25%, transparent 90%);
          mask-image: linear-gradient(270deg, #000 25%, transparent 90%);
}
[dir="rtl"] .service-card__link::after { content: "←"; }
[dir="rtl"] .service-card:hover .service-card__link::after { transform: translateX(-4px); }
[dir="rtl"] .breadcrumb li + li::before { content: "\\"; }
[dir="rtl"] .hero__gear { transform: translateY(-50%) scaleX(-1); }


/* ==========================================================================
   10. SERVICE DETAIL PAGES
   ========================================================================== */

/* Intro grid: text + 3D placeholder side-by-side */
/* ==========================================================================
   SERVICE DETAIL PAGE (hizmet detay) - editorial
   ========================================================================== */

/* --- Hero --- */
.svc-hero { position: relative; overflow: clip; background: var(--hero-bg); border-block-end: 1px solid var(--border); }
.svc-hero__atmos { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.svc-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 0%, #000 25%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 85% 0%, #000 25%, transparent 72%);
}
.svc-hero__gear {
  position: absolute; inset-inline-end: -150px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; color: var(--gear-stroke); opacity: .05;
}
[data-theme="dark"] .svc-hero__gear { opacity: .12; }
.svc-hero__gear .gear-1 { position: absolute; inset: 0; }
.svc-hero__gear .gear-2 { position: absolute; width: 155px; inset-inline-end: 14px; bottom: 8px; }
.svc-hero__inner { position: relative; z-index: 2; padding-block: clamp(24px,5vw,52px) clamp(28px,5vw,56px); }
.svc-hero__inner .breadcrumb { margin-block-end: clamp(18px,3.5vw,32px); }
.svc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .72rem; font-weight: var(--fw-bold); letter-spacing: .18em; text-transform: uppercase;
  color: var(--y-text); background: var(--y-soft); border: 1px solid var(--y-line);
  padding: 7px 13px; transition: gap var(--t-fast), background var(--t-fast);
}
[data-theme="dark"] .svc-hero__eyebrow { color: var(--y); }
.svc-hero__eyebrow:hover { gap: 12px; background: rgba(254,196,14,.28); }
.svc-hero__eyebrow-arrow { font-size: .95rem; line-height: 1; }
.svc-hero__title { margin-block-start: var(--sp-5); max-width: 18ch; font-size: clamp(2rem,4.6vw,3.4rem); line-height: 1.04; letter-spacing: -.02em; }
.svc-hero__sub { margin-block-start: var(--sp-5); max-width: 62ch; }
.svc-hero__eyebrow,
.svc-hero__title,
.svc-hero__sub { animation: aboutUp .7s cubic-bezier(.2,.7,.2,1) backwards; }
.svc-hero__eyebrow { animation-delay: .04s; }
.svc-hero__title  { animation-delay: .12s; }
.svc-hero__sub    { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .svc-hero__eyebrow, .svc-hero__title, .svc-hero__sub { animation: none; }
}

/* --- Service photo banner --- */
.svc-banner {
  position: relative; margin: 0; width: 100%;
  aspect-ratio: 1280 / 470; max-height: 480px;
  overflow: hidden; line-height: 0; background: var(--band);
}
.svc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.svc-banner--top img { object-position: 50% 0; }
.svc-banner__line { position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--y); z-index: 2; }
.svc-banner__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.8) 100%); }
.svc-banner__cap {
  position: absolute; z-index: 3;
  inset-block-end: clamp(14px,2.6vw,28px); inset-inline-start: clamp(16px,3vw,40px); inset-inline-end: clamp(16px,3vw,40px);
  color: #fff; font-size: clamp(1.15rem,2.6vw,1.9rem); font-weight: var(--fw-bold);
  letter-spacing: -.01em; line-height: 1.1; text-shadow: 0 2px 14px rgba(0,0,0,.65);
}

/* --- Intro + 3D --- */
.service-intro-grid { align-items: start; gap: clamp(2rem,4vw,3.5rem); }
.service-intro__text .accent-bar { margin-block: var(--sp-3) var(--sp-5); }
.service-intro__text .label { display: block; }
.service-3d { width: 100%; }
.svc-3d-frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: clamp(10px,1.6vw,16px);
}
.svc-3d-frame__tag {
  position: absolute; z-index: 4;
  inset-block-start: clamp(16px,2.2vw,24px); inset-inline-start: clamp(16px,2.2vw,24px);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .64rem; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border); padding: 5px 10px;
}
.svc-3d-frame__dot { width: 6px; height: 6px; background: var(--y); display: inline-block; }

/* --- Scope grid --- */
.scope-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.scope-item {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  padding: clamp(15px,2vw,19px) clamp(17px,2.2vw,21px);
  line-height: 1.5; transition: border-color var(--t), transform var(--t);
}
.scope-item:hover { border-color: var(--y-line); transform: translateY(-2px); }
.scope-item__check {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--y-soft); color: var(--ink);
}
[data-theme="dark"] .scope-item__check { color: var(--y); }
.scope-item__check svg { width: 17px; height: 17px; }
.scope-item__text { padding-block-start: 3px; }

/* --- Advantage cards --- */
.adv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: var(--sp-4); }
.adv-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  padding: clamp(22px,2.6vw,28px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.adv-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 3px; height: 0; background: var(--y); transition: height var(--t); }
.adv-card:hover { border-color: var(--y-line); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.adv-card:hover::before { height: 100%; }
.adv-card__num { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1; color: var(--y-text); margin-block-end: var(--sp-3); }
[data-theme="dark"] .adv-card__num { color: var(--y); }
.adv-card__text { color: var(--muted); line-height: 1.55; }

/* --- FAQ - native <details> accordion (card) --- */
.faq { margin-top: var(--sp-5); }
.faq--card { border: 1px solid var(--border); background: var(--surface); }
.faq__item { border-top: 1px solid var(--border); }
.faq--card .faq__item:first-child { border-top: none; }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq--card .faq__item:last-child { border-bottom: none; }
.faq__item summary {
  cursor: pointer; padding: clamp(15px,2vw,19px) clamp(16px,2.2vw,22px);
  font-weight: var(--fw-semi); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--ink); user-select: none; transition: background var(--t-fast), color var(--t-fast);
}
.faq__item summary:hover { background: var(--surface-2); }
.faq__item[open] summary { color: var(--y-text); }
[data-theme="dark"] .faq__item[open] summary { color: var(--y); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; font-weight: 400; color: var(--y); transition: transform .2s ease; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 clamp(16px,2.2vw,22px) clamp(15px,2vw,19px); color: var(--muted); line-height: 1.7; }

@media (max-width: 768px) {
  .svc-hero__gear { width: 280px; height: 280px; inset-inline-end: -110px; }
  .svc-banner { aspect-ratio: 16 / 10; max-height: none; }
  .service-intro-grid { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__item summary::after { transition: none; }
}


/* ==========================================================================
   11. FLEET PAGE (Makine Parkı)
   ========================================================================== */

/* ---- Filter bar -------------------------------------------------------- */
.fleet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-end: var(--sp-7);
}

.filter-btn {
  font-size: .75rem;
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"] {
  background: var(--y);
  color: var(--y-ink);
  border-color: var(--y);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 2px;
}


/* ---- Machine card ------------------------------------------------------ */
.machine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.machine-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--y-line);
}

.machine-card[hidden] {
  display: none;
}

.machine-card__body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  border-block-start: 1px solid var(--border);
}

.machine-card__name {
  font-size: clamp(.9rem, 1.4vw, 1rem);
  font-weight: var(--fw-semi);
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0;
}

/* Machine card name link */
.machine-card__name-link {
  color: inherit;
  text-decoration: none;
}
.machine-card__name-link:hover,
.machine-card__name-link:focus-visible {
  color: var(--y-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="dark"] .machine-card__name-link:hover,
[data-theme="dark"] .machine-card__name-link:focus-visible {
  color: var(--y);
}

/* Machine card footer - detail link row */
.machine-card__footer {
  padding: var(--sp-2) var(--sp-5);
  border-block-start: 1px solid var(--border);
}
.machine-card__detail-link {
  font-size: .8rem;
  font-weight: var(--fw-semi);
  color: var(--y-text);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color var(--t-fast);
}
.machine-card__detail-link:hover,
.machine-card__detail-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="dark"] .machine-card__detail-link { color: var(--y); }

/* ---- Machine detail page ------------------------------------------------ */

/* Intro grid: text left, 3D right - collapses to 1-col on mobile */
.machine-intro-grid {
  align-items: start;
  gap: var(--sp-7);
}
.machine-intro__text { display: flex; flex-direction: column; gap: var(--sp-4); }
.machine-intro__text p { margin: 0; color: var(--muted); }
.machine-intro__specs-note {
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-2);
  border-inline-start: 3px solid var(--y);
  font-size: .9rem;
  color: var(--ink);
}
.machine-intro__visual .mv-wrap { width: 100%; aspect-ratio: 4/3; }
.machine-intro__visual .machine-detail-3d { width: 100%; aspect-ratio: 4/3; }

/* Use-cases checklist */
.machine-use-cases {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .machine-use-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .machine-use-cases { grid-template-columns: repeat(3, 1fr); }
}
.machine-use-cases__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .95rem;
}
.machine-use-cases__check {
  flex-shrink: 0;
  color: var(--y-text);
  margin-block-start: 1px;
}
[data-theme="dark"] .machine-use-cases__check { color: var(--y); }

/* Services linked cards grid */
.machine-services-grid { gap: var(--sp-4); }
.machine-service-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--y);
  text-decoration: none;
  color: var(--ink);
  font-weight: var(--fw-semi);
  font-size: .95rem;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.machine-service-card:hover,
.machine-service-card:focus-visible {
  box-shadow: var(--shadow);
  border-color: var(--y);
  transform: translateY(-2px);
}
.machine-service-card__icon {
  flex-shrink: 0;
  color: var(--y-text);
}
[data-theme="dark"] .machine-service-card__icon { color: var(--y); }
.machine-service-card__title { flex: 1; }

/* Ensure grid auto-col fits nicely for machine cards */
.fleet-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (min-width: 768px) {
  .fleet-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================================
   12. CONTACT PAGE
   ========================================================================== */

/* Honeypot - visually hidden from real users, bots fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact info card extras */
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.contact-info__item:last-of-type { border-bottom: none; }
.contact-info__label {
  font-size: .72rem;
  font-weight: var(--fw-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 4.5rem;
  padding-top: .1rem;
}
.contact-info__value { color: var(--ink); line-height: 1.5; }
.contact-info__value a { color: var(--ink); text-decoration: none; }
.contact-info__value a:hover { color: var(--y); }
.contact-hours {
  margin-block: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border-inline-start: 3px solid var(--y);
  font-size: .85rem;
  color: var(--muted);
}

/* Responsive: stack on tablet and below */
@media (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; }
}


/* ==========================================================================
   TEDARİK SÜRECİ (Supply process) page
   ========================================================================== */

/* Inner-page header eyebrow above the h1 */
.supply-eyebrow { margin-block-end: var(--sp-3); }

/* Two-column intro prose under the Yaklaşım heading */
.supply-prose {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}
.supply-prose p + p { margin-block-start: var(--sp-4); }

/* Feature cards in the Yaklaşım 3-up grid - single column on phones,
   2-up on small tablets, 3-up on desktop (generic .grid--3 has no collapse). */
.grid--3:has(.supply-feature) { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3:has(.supply-feature) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3:has(.supply-feature) { grid-template-columns: repeat(3, 1fr); }
}
.supply-feature { display: flex; flex-direction: column; gap: var(--sp-2); }
.supply-feature__eyebrow {
  font-size: .68rem;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--y-text);
}
.supply-feature h3 { margin: 0; }
.supply-feature p { color: var(--muted); margin: 0; }

/* ---- Process steps (ordered list / timeline) ------------------------- */
.process-steps {
  list-style: none;
  margin: var(--sp-7) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
  counter-reset: process;
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--y);
  padding: var(--sp-5);
  transition: box-shadow var(--t), border-color var(--t);
}
.process-step:hover { box-shadow: var(--shadow); }
.process-step__num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--y-text);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}
.process-step__body { display: flex; flex-direction: column; gap: var(--sp-2); }
.process-step__title { margin: 0; }
.process-step__desc { color: var(--muted); margin: 0; }
.process-step__metric {
  align-self: flex-start;
  margin-block-start: var(--sp-1, 4px);
  display: inline-block;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: .7rem;
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
}
[data-theme="dark"] .process-step__metric { background: rgba(255,255,255,.05); }

@media (max-width: 560px) {
  .process-step { grid-template-columns: 1fr; gap: var(--sp-2); }
}


/* ==========================================================================
   MACHINE CAROUSEL (.mcar) - homepage 3D fleet carousel
   ========================================================================== */
.mcar {
  position: relative;
  margin-block-start: var(--sp-6);
}

.mcar__viewport {
  overflow: hidden;
  margin-inline: clamp(0px, 3vw, 56px);   /* leave room for the arrows */
}

.mcar__track {
  display: flex;
  gap: var(--sp-5);
  will-change: transform;
  transition: transform var(--t-slow);
  touch-action: pan-y;
}

/* ~4.5 cards per view on desktop, scaling down responsively. */
.mcar__slide {
  flex: 0 0 calc((100% - 3 * var(--sp-5)) / 4.5);
  min-width: 0;
}
@media (max-width: 980px) {
  .mcar__slide { flex-basis: calc((100% - 2 * var(--sp-5)) / 2.5); }
}
@media (max-width: 640px) {
  .mcar__slide { flex-basis: 68%; }       /* 1.5 cards visible on mobile */
  .mcar__viewport { margin-inline: 0; }
}

/* ---- Card ---- */
.mcard {
  position: relative;            /* positioning context for the full-card overlay */
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.mcard:hover,
.mcard:focus-within {
  border-color: var(--y-line);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.mcard__media {
  position: relative;
  aspect-ratio: 16 / 9;      /* compact widescreen → CLS 0 */
  overflow: hidden;
}
.mcard__media .mv-wrap.carousel-3d {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  background: var(--surface-2);
}

/* ---- Hidden services overlay (revealed on hover / focus-within) ----
   Anchored to the WHOLE card (.mcard is position:relative) so it is never
   clipped by .mcard__media's fixed aspect-ratio + overflow:hidden. Content
   flows from the top and scrolls if it ever exceeds the card height, so the
   "Hizmetlerimiz" title and every chip stay fully visible. */
.mcard__services {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  inset-block-end: auto;         /* grow DOWNWARD past the card if content is tall */
  min-height: 100%;              /* always at least cover the whole card */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: linear-gradient(165deg,
      rgba(8, 8, 9, .97) 0%,
      rgba(8, 8, 9, .94) 100%);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  pointer-events: none;
}
.mcard:hover .mcard__services,
.mcard:focus-within .mcard__services {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.mcard__services-title {
  margin: 0;
  font-size: .7rem;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--y);
}
.mcard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mcard__chip {
  display: inline-block;
  font-size: .72rem;
  line-height: 1.3;
  font-weight: var(--fw-med);
  color: #f4f4f4;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 10px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.mcard__chip:hover,
.mcard__chip:focus-visible {
  background: var(--y);
  border-color: var(--y);
  color: #000;
}
.mcard__detail {
  margin-block-start: 2px;
  font-size: .82rem;
  font-weight: var(--fw-semi);
  color: var(--y);
}
.mcard__detail:hover,
.mcard__detail:focus-visible { text-decoration: underline; }

.mcard__name {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  min-height: calc(2.6em + 2 * var(--sp-3));   /* room for up to 2 lines, no clip */
  display: flex;
  align-items: center;
  font-size: .9rem;
  line-height: 1.3;
  border-top: 1px solid var(--border);
}
.mcard__name-link {
  color: var(--ink);
  transition: color var(--t-fast);
}
.mcard__name-link:hover,
.mcard__name-link:focus-visible { color: var(--y); }

/* ---- Arrows ---- */
.mcar__arrow {
  position: absolute;
  top: calc(50% - var(--sp-7));     /* center on the media, above the name bar */
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #000;
  background: var(--y);
  border: 1px solid var(--y);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.mcar__arrow:hover { opacity: .88; }
.mcar__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mcar__arrow--prev { left: 4px; }
.mcar__arrow--next { right: 4px; }
@media (max-width: 640px) {
  .mcar__arrow { display: none; }    /* swipe on mobile; dots remain */
}

/* ---- Dots ---- */
.mcar__dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-block-start: var(--sp-4);
  flex-wrap: wrap;
}
/* 24×24 hit area (WCAG target-size) with a 10px visible dot drawn via a
   centered radial fill, so the control reads small but taps large. */
.mcar__dot {
  width: 24px;
  height: 24px;
  border: 0;
  background:
    radial-gradient(circle at center,
      var(--muted-2) 0 5px,
      transparent 5px) no-repeat;
  box-shadow: inset 0 0 0 1px transparent;   /* keep box model stable */
  transition: background var(--t-fast), transform var(--t-fast);
}
.mcar__dot:hover {
  background:
    radial-gradient(circle at center,
      var(--muted) 0 5px,
      transparent 5px) no-repeat;
}
.mcar__dot.is-active {
  background:
    radial-gradient(circle at center,
      var(--y) 0 6px,
      transparent 6px) no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .mcar__track { transition: none; }
}


/* ==========================================================================
   HOW IT WORKS (.how) - connected 3-step process flow (homepage)
   Ordered list with large outlined numerals, an icon badge per step, a yellow
   connector track linking the steps, and a faint gear accent. Horizontal on
   desktop, vertical timeline on mobile. Theme-aware, AA contrast, no essential
   motion (reduced-motion safe).
   ========================================================================== */
.how {
  position: relative;
  overflow: hidden;            /* clip the decorative gear */
}

/* Decorative gear - large, faint, bottom-right. Static (no spin) so it is
   safe under reduced-motion and never distracts from the content. */
.how__gear {
  position: absolute;
  inset-block-end: -90px;
  inset-inline-end: -90px;
  width: 320px;
  height: 320px;
  color: var(--y);
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .how__gear { opacity: .07; }
.how__gear svg { width: 100%; height: 100%; display: block; }

.how .container { position: relative; z-index: 1; }

/* ---- The flow (ordered list) ---- */
.how-flow {
  --how-badge: 76px;            /* number/icon badge diameter (square) */
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  counter-reset: how;
}

/* ---- One step ---- */
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-block-start: 3px solid var(--y);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Connector track: a yellow line + arrowhead linking each step to the next.
   Drawn on the right edge of steps 1 and 2 (desktop only). */
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(var(--sp-6) + var(--how-badge) / 2);
  right: calc(-1 * var(--sp-5));
  width: var(--sp-5);
  height: 2px;
  background: var(--y);
  transform: translateY(-50%);
}
.how-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--sp-6) + var(--how-badge) / 2);
  right: calc(-1 * var(--sp-5) - 1px);
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--y);
  border-right: 2px solid var(--y);
  transform: translateY(-50%) rotate(45deg);
}

/* ---- Head: big outlined numeral + icon badge ---- */
.how-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
/* Outlined "ghost" numeral, rendered as decorative SVG <text> (aria-hidden; the
   <ol> conveys real order). SVG text is out of scope for color-contrast checks,
   so the soft yellow outline is free to be low-contrast by design. */
.how-step__num {
  display: block;
  width: 86px;
  height: 48px;
  flex: 0 0 auto;
  overflow: visible;
}
.how-step__num text {
  font-family: var(--ff);
  font-size: 44px;
  font-weight: var(--fw-bold);
  letter-spacing: -.02em;
  fill: none;
  stroke: var(--y-line);
  stroke-width: 1.4px;
  paint-order: stroke;
}
.how-step__icon {
  flex: 0 0 var(--how-badge);
  width: var(--how-badge);
  height: var(--how-badge);
  display: grid;
  place-items: center;
  background: var(--y);
  color: #111;                  /* AA: dark glyph on yellow */
  border: 1px solid var(--y);
}
.how-step__icon svg { width: 38px; height: 38px; display: block; }

/* ---- Body ---- */
.how-step__body { display: flex; flex-direction: column; gap: var(--sp-2); }
.how-step__title { margin: 0; font-size: 1.15rem; }
.how-step__text { margin: 0; color: var(--muted); line-height: 1.6; }
.how-step__meta {
  align-self: flex-start;
  margin-block-start: var(--sp-2);
  font-size: .72rem;
  font-weight: var(--fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 10px;
}
[data-theme="dark"] .how-step__meta {
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
}

/* ---- Responsive: vertical timeline on narrow screens ---- */
@media (max-width: 900px) {
  .how-flow {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline-start: 8px;
  }
  .how-step {
    margin-inline-start: var(--sp-5);
    margin-block-end: var(--sp-6);
  }
  .how-step:last-child { margin-block-end: 0; }
  /* Vertical connector down the left side, between steps. */
  .how-step:not(:last-child)::after {
    top: auto;
    bottom: calc(-1 * var(--sp-6));
    left: calc(-1 * var(--sp-5) + 8px);
    right: auto;
    width: 2px;
    height: var(--sp-6);
    transform: none;
  }
  .how-step:not(:last-child)::before {
    top: auto;
    bottom: calc(-1 * var(--sp-6) - 1px);
    left: calc(-1 * var(--sp-5) + 4px);
    right: auto;
    border-top: none;
    border-right: none;
    border-bottom: 2px solid var(--y);
    border-left: 2px solid var(--y);
    transform: rotate(-45deg);
  }
}

@media (max-width: 460px) {
  .how-step__num { font-size: 2.8rem; }
  .how-flow { --how-badge: 64px; }
  .how-step__icon svg { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .how-step { transition: none; }
  .how-step:hover { transform: none; }
}
