/* ==========================================================================
   Color Center — KARTELA
   Base, browser surfaces, and the chip/fan system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s5));
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--t-body);
  font-variation-settings: 'wdth' 100, 'wght' 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
/* Every list in this design is composed; none of them wants a browser marker.
   Scoping this to ul[class] left the footer's plain lists on default discs. */
ul, ol { list-style: none; margin: 0; padding: 0; }
/* Prose is the one place a marker is authored, and it draws its own. */

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   2. Browser surfaces — the parts we did not draw still carry the design
   -------------------------------------------------------------------------- */

::selection {
  background: var(--ral-1023);
  color: var(--on-1023);
}

:root {
  accent-color: var(--ral-5015);
  caret-color: var(--ral-5015);
  scrollbar-color: var(--steel) var(--rule-soft);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--rule-soft); }
::-webkit-scrollbar-thumb {
  background: var(--steel);
  border: 3px solid var(--rule-soft);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

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

/* On dark chassis the focus ring needs its own value. */
.chassis :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ral-1023);
}

.skip {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  z-index: var(--z-skip);
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: var(--s3) var(--s5);
  font-weight: 600;
  transition: transform var(--fast) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. Type
   -------------------------------------------------------------------------- */

.d1, .h1, .h2, .h3, .h4 {
  font-variation-settings: 'wdth' 112, 'wght' 700;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.d1 {
  font-size: var(--t-display);
  font-variation-settings: 'wdth' 118, 'wght' 750;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); line-height: 1.08; }
.h3 {
  font-size: var(--t-h3);
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-variation-settings: 'wdth' 106, 'wght' 650;
}
.h4 {
  font-size: var(--t-h4);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-variation-settings: 'wdth' 104, 'wght' 640;
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure-tight);
  text-wrap: pretty;
}

.body { max-width: var(--measure); text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }

/* Mono is reserved for codes, measurements and data — never for flavour. */
.code {
  font-family: var(--face-mono);
  font-size: var(--t-code);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.num { font-variant-numeric: tabular-nums; font-family: var(--face-mono); }

/* --------------------------------------------------------------------------
   4. Shell
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* A reading column, not a centred island. The shell keeps the page grid so
   the column's left edge lands on the same line as every masthead and
   heading above it; only the content inside is held to a measure. */
.shell--narrow > * { max-width: var(--shell-narrow); }

.band { padding-block: var(--band); }
.band--tight { padding-block: var(--band-tight); }
.band--flush-top { padding-block-start: 0; }

.chassis { background: var(--chassis); color: var(--on-chassis); }
.chassis .muted { color: var(--on-chassis-2); }
.chassis .lede { color: var(--on-chassis-2); }
.paper { background: var(--paper); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.chassis .rule { border-top-color: var(--chassis-3); }

/* --------------------------------------------------------------------------
   5. Section heading — no kickers. The heading carries its own weight,
      with a rule that ties it to the grid.
   -------------------------------------------------------------------------- */

.sec-head {
  display: grid;
  gap: var(--s4);
  margin-block-end: var(--s7);
  padding-block-start: var(--s4);
  border-block-start: 2px solid var(--ink);
}
.chassis .sec-head { border-block-start-color: var(--on-chassis); }
.sec-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4) var(--s5);
}
.sec-head p { max-width: var(--measure); color: var(--ink-2); }
.chassis .sec-head p { color: var(--on-chassis-2); }

/* --------------------------------------------------------------------------
   6. Chip — the unit of this design system.
      A chip is a real coating field carrying its RAL code, its name and the
      one measurement that decides it. Never a swatch on its own.
   -------------------------------------------------------------------------- */

.chip {
  --chip-field: var(--ral-7016);
  --chip-ink: var(--on-7016);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s4);
  min-height: 230px;
  padding: var(--s5);
  background: var(--chip-field);
  color: var(--chip-ink);
  border-radius: var(--chip-r);
  box-shadow: var(--lift-1);
  isolation: isolate;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

/* The rivet edge: every chip is fastened on its left side. */
.chip::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 7px;
  border-radius: var(--chip-r-flat) 0 0 var(--chip-r-flat);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34),
    rgba(0, 0, 0, 0.06) 42%,
    rgba(0, 0, 0, 0.2)
  );
  mix-blend-mode: overlay;
}

.chip__code {
  font-family: var(--face-mono);
  font-size: var(--t-code);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  opacity: 0.86;
}
.chip__name {
  font-size: var(--t-h3);
  font-variation-settings: 'wdth' 106, 'wght' 660;
  line-height: 1.1;
  letter-spacing: -0.022em;
  align-self: end;
}
/* Full opacity: the chip ink is already chosen per field to clear 4.5:1,
   and fading it spends that margin for nothing. */
.chip__note {
  font-size: var(--t-sm);
  line-height: 1.45;
}

/* The measurement that makes the chip a decision, not a swatch. */
.chip__measure {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding-block-start: var(--s3);
  border-block-start: 1px solid currentColor;
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  font-weight: 500;
}
.chip__measure span:last-child {
  font-family: var(--face);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

a.chip,
.chip--link { cursor: pointer; }
a.chip:hover,
.chip--link:hover { transform: translateY(-4px); box-shadow: var(--lift-3); }
a.chip:focus-visible { transform: translateY(-4px); box-shadow: var(--lift-3); }

/* Field assignment. Each application owns one real RAL powder. */
.f-1023 { --chip-field: var(--ral-1023); --chip-ink: var(--on-1023); }
.f-2004 { --chip-field: var(--ral-2004); --chip-ink: var(--on-2004); }
.f-4008 { --chip-field: var(--ral-4008); --chip-ink: var(--on-4008); }
.f-5015 { --chip-field: var(--ral-5015); --chip-ink: var(--on-5015); }
.f-6018 { --chip-field: var(--ral-6018); --chip-ink: var(--on-6018); }
.f-7016 { --chip-field: var(--ral-7016); --chip-ink: var(--on-7016); }

/* A chip on paper stock: same anatomy, unpainted. Used where the content is
   a document or a fact rather than a coating. */
.chip--stock {
  --chip-field: var(--paper);
  --chip-ink: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: none;
}
.chip--stock::before {
  background: var(--band-colour, var(--rule));
  mix-blend-mode: normal;
  opacity: 1;
}
.chip--stock .chip__note { color: var(--ink-2); opacity: 1; }
.chip--stock .chip__measure { border-block-start-color: var(--rule); }
.chip--stock:hover { border-color: var(--ink); }

/* The five applications are one deck: at full width they sit in one row,
   the way the chips sit on the fan, not four-plus-an-orphan. */
.chip-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}
@media (min-width: 1180px) {
  .chip-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chip-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chip-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-grid:has(> :nth-child(7)) { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
}
.chip-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (min-width: 1180px) {
  .chip-grid--2, .chip-grid--2:has(> :nth-child(7)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   7. The fan — the deck opened. Signature composition and interaction.
   -------------------------------------------------------------------------- */

.deck {
  position: relative;
  height: clamp(360px, 44vw, 540px);
  margin-block-start: var(--s6);
  /* The fan is decorative structure; its content is named in the list below. */
}

.deck__pivot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--rivet), var(--rivet-dark));
  box-shadow: var(--lift-2), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  z-index: 40;
}

.leaf {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(74px, 8.2vw, 116px);
  height: clamp(300px, 37vw, 470px);
  transform-origin: 13px calc(100% - 13px);
  border-radius: var(--chip-r);
  background: var(--leaf-field, var(--ral-7016));
  color: var(--leaf-ink, #fff);
  box-shadow: var(--lift-2);
  transform: rotate(var(--a, 0deg));
  transition: transform var(--slow) var(--ease), box-shadow var(--mid) var(--ease),
    filter var(--mid) var(--ease);
  will-change: transform;
}
.leaf::after {
  /* The printed code, running along the chip the way a real deck prints it. */
  content: attr(data-code);
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.9;
}

/* Slivers: the rest of the deck, still closed, running off the right edge. */
.leaf--sliver {
  width: clamp(15px, 1.6vw, 22px);
  height: clamp(250px, 31vw, 400px);
  border-radius: 2px 4px 4px 2px;
  box-shadow: var(--lift-1);
}
.leaf--sliver::after { content: none; }

/* Tying the list to the deck: pointing at a row lifts its chip. */
.deck[data-active] .leaf { filter: saturate(0.55) brightness(1.04); }
.deck[data-active] .leaf.is-active {
  filter: none;
  box-shadow: var(--lift-3);
  transform: rotate(var(--a, 0deg)) translateY(-14px);
  z-index: 30;
}

/* --------------------------------------------------------------------------
   8. Measurement strip — the deck's printed spine
   -------------------------------------------------------------------------- */

.spine {
  background: var(--chassis);
  color: var(--on-chassis);
  border-block: 1px solid var(--chassis-3);
}
.spine__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.spine__item {
  display: grid;
  gap: var(--s1);
  padding: var(--s5) var(--s4);
  border-inline-start: 1px solid var(--chassis-3);
}
.spine__item:first-child { border-inline-start: 0; }
.spine__value {
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.spine__value b {
  color: var(--ral-1023);
  font-weight: inherit;
}
.spine__label {
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-chassis-2);
}

/* --------------------------------------------------------------------------
   9. Buttons — a marked plate, the way a machine's control is marked
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 0.875rem var(--s5);
  border-radius: 2px;
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 104, 'wght' 640;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* The primary action is a chip pulled from the deck, not a rectangle:
   square at the rivet edge, rounded at the free edge, with the same fastened
   highlight every chip carries. The STORY names this as the visitor's move. */
.btn--action {
  position: relative;
  background: var(--action);
  color: var(--on-action);
  border-color: var(--action);
  border-radius: var(--chip-r);
  padding-inline-start: calc(var(--s5) + 7px);
  box-shadow: var(--lift-1);
  isolation: isolate;
}
.btn--action::before {
  content: '';
  position: absolute;
  inset-block: -2px;
  inset-inline-start: -2px;
  width: 7px;
  border-radius: var(--chip-r-flat) 0 0 var(--chip-r-flat);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(0, 0, 0, 0.08) 42%,
    rgba(0, 0, 0, 0.22)
  );
  mix-blend-mode: overlay;
}
/* Pulled out of the deck on hover: the chip slides along its own edge. */
.btn--action:hover {
  background: #ffc31f;
  border-color: #ffc31f;
  transform: translateX(3px) translateY(-2px);
  box-shadow: var(--lift-2);
}
.btn--action:active { transform: translateX(0) translateY(0); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--ink:hover { background: var(--chassis-2); border-color: var(--chassis-2); transform: translateY(-2px); }

.btn--line {
  border-color: currentColor;
  color: var(--ink);
}
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chassis .btn--line { color: var(--on-chassis); }
.chassis .btn--line:hover { background: var(--on-chassis); color: var(--ink); border-color: var(--on-chassis); }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* The phone track: the second, faster route for the workshop caller. */
.tel-track {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 0.875rem var(--s5) 0.875rem var(--s4);
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  font-weight: 500;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.tel-track:hover { background: var(--ink); color: var(--paper); }
.tel-track svg { width: 1.1em; height: 1.1em; flex: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}

/* Inline link: underline that clears the descenders */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--steel);
  transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* A link that names where it goes and marks it without colour alone. */
.go {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-variation-settings: 'wdth' 104, 'wght' 620;
  font-size: var(--t-sm);
  border-block-end: 2px solid currentColor;
  padding-block-end: 2px;
  transition: gap var(--fast) var(--ease);
}
.go:hover { gap: var(--s4); }
.go svg { width: 0.9em; height: 0.9em; }

/* --------------------------------------------------------------------------
   10. Identity band (header)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-block-end: 1px solid var(--rule);
}
.site-header::after {
  /* the deck's colour edge, as a hairline under the band */
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ral-5015) 0 20%,
    var(--ral-4008) 20% 40%,
    var(--ral-2004) 40% 60%,
    var(--ral-6018) 60% 80%,
    var(--ral-7016) 80% 100%
  );
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
/* Yüksek çözünürlüklü logo: C işareti ve yazı artık okunacak boyda. */
.brand picture, .brand img { display: block; }
.brand img { width: auto; height: 44px; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s1); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) 0.625rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-variation-settings: 'wdth' 100, 'wght' 560;
  border-block-end: 2px solid transparent;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav__link:hover { border-block-end-color: var(--ink); }
/* Current page is marked by weight and rule, not by colour alone. */
.nav__link[aria-current='page'],
.nav__item.is-current > .nav__link {
  border-block-end-color: var(--ink);
  font-variation-settings: 'wdth' 100, 'wght' 700;
}
.nav__link svg { width: 0.7em; height: 0.7em; transition: transform var(--fast) var(--ease); }
.nav__item:hover .nav__link svg,
.nav__item:focus-within .nav__link svg { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 1px);
  min-width: 268px;
  padding: var(--s3);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--lift-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease),
    visibility var(--fast);
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel--wide { min-width: 470px; columns: 2; column-gap: var(--s3); }

.nav__sub {
  display: block;
  padding: 0.5rem var(--s3);
  font-size: var(--t-sm);
  border-inline-start: 2px solid transparent;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
  break-inside: avoid;
}
.nav__sub:hover { background: var(--ground); border-inline-start-color: var(--ink); }
.nav__sub[aria-current='page'] { border-inline-start-color: var(--ink); font-weight: 650; }

.header__tools { display: flex; align-items: center; gap: var(--s3); flex: none; }

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.lang a {
  padding: 0.3rem 0.55rem;
  font-family: var(--face-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lang a:hover { background: var(--ground); color: var(--ink); }
.lang a[aria-current='true'] { background: var(--ink); color: var(--paper); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   11. Drawer (mobile nav)
   -------------------------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  z-index: var(--z-drawer);
  background: var(--paper);
  border-inline-start: 1px solid var(--rule);
  transform: translateX(101%);
  transition: transform var(--mid) var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s5) var(--s5) var(--s8);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-block-end: var(--s5); }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 2px; }
.drawer__close svg { width: 18px; height: 18px; }

.drawer details { border-block-end: 1px solid var(--rule-soft); }
.drawer summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) 0;
  font-variation-settings: 'wdth' 102, 'wght' 640;
  cursor: pointer;
  list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 14px; height: 14px; flex: none; transition: transform var(--fast) var(--ease); }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details > div { padding-block-end: var(--s4); display: grid; gap: 2px; }
.drawer details a, .drawer > nav > a {
  padding: 0.6rem var(--s3);
  font-size: var(--t-sm);
  border-inline-start: 2px solid var(--rule);
}
.drawer details a:hover { background: var(--ground); border-inline-start-color: var(--ink); }
.drawer > nav > a {
  display: block;
  border-inline-start: 0;
  border-block-end: 1px solid var(--rule-soft);
  padding: var(--s4) 0;
  font-size: var(--t-body);
  font-variation-settings: 'wdth' 102, 'wght' 640;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(21, 24, 27, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mid) var(--ease), visibility var(--mid);
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   12. Page masthead (interior pages)
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  background: var(--paper);
  border-block-end: 1px solid var(--rule);
  overflow: hidden;
}
.masthead__in {
  display: grid;
  gap: var(--s5);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1.2rem + 3vw, 3.5rem);
  position: relative;
  z-index: 2;
}
/* The closed deck slipped in at the right edge: the page's own chip leads,
   the rest of the deck behind it. Decoration, so it is hidden from the
   accessibility tree and never the only carrier of meaning. */
.masthead__edge {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: 1;
  display: flex;
  gap: 5px;
  height: 62%;
  padding-inline-end: var(--gutter);
  pointer-events: none;
}
.masthead__edge span {
  display: block;
  width: 13px;
  background: var(--leaf-field, var(--rule));
  border-radius: 0 0 4px 4px;
  box-shadow: var(--lift-1);
}
.masthead__edge span:first-child { width: 46px; }
.masthead__edge span:nth-child(2) { height: 84%; }
.masthead__edge span:nth-child(3) { height: 70%; }
.masthead__edge span:nth-child(4) { height: 58%; }
.masthead__edge span:nth-child(5) { height: 46%; }
.masthead__edge span:nth-child(6) { height: 34%; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--t-xs); color: var(--ink-3); }
.crumbs li { display: flex; gap: var(--s2); align-items: center; }
.crumbs li + li::before { content: '/'; color: var(--steel); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* --------------------------------------------------------------------------
   13. Prose
   -------------------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--s4); }
.prose > * + h2, .prose > * + h3 { margin-block-start: var(--s7); }
.prose h2 {
  font-size: var(--t-h2);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.prose h3 {
  font-size: var(--t-h3);
  font-variation-settings: 'wdth' 106, 'wght' 650;
  letter-spacing: -0.02em;
}
.prose p { color: var(--ink-2); text-wrap: pretty; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
/* Authored markers: prose keeps numbers where the order is the content, and
   draws its own square bullet everywhere else. */
.prose ol { padding-inline-start: 1.35rem; list-style: decimal; display: grid; gap: var(--s2); color: var(--ink-2); }
.prose ul { display: grid; gap: var(--s2); color: var(--ink-2); list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 1.5rem; }
.prose ul > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--edge, var(--ink));
}
.prose a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }

/* --------------------------------------------------------------------------
   14. Data: the technical tables a buyer actually reads
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
table.data caption {
  text-align: start;
  padding: var(--s4) var(--s5);
  font-variation-settings: 'wdth' 104, 'wght' 640;
  border-block-end: 1px solid var(--rule);
  background: var(--ground);
}
table.data th, table.data td { padding: 0.8rem var(--s5); text-align: start; border-block-end: 1px solid var(--rule-soft); }
table.data thead th {
  font-family: var(--face-mono);
  font-size: var(--t-code);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  border-block-end: 1px solid var(--rule);
}
table.data tbody th { font-variation-settings: 'wdth' 100, 'wght' 620; color: var(--ink); }
table.data td { color: var(--ink-2); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-block-end: 0; }
table.data tbody tr:hover { background: var(--ground); }
td.n, th.n { font-family: var(--face-mono); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   15. Sequence — the six-stage line, as a traversable series with each
       stage's function written in text, not carried by colour.
   -------------------------------------------------------------------------- */

.seq { display: grid; gap: 0; counter-reset: stage; }
.seq__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4) var(--s5);
  padding: var(--s5) 0;
  border-block-start: 1px solid var(--rule);
  counter-increment: stage;
}
.seq__step:last-child { border-block-end: 1px solid var(--rule); }
.seq__n {
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 2px;
}
.seq__step[data-fluid] .seq__n { background: var(--ral-5015); }
.seq__step[data-heat] .seq__n { background: var(--ral-2004); color: var(--on-2004); }
.seq__body { display: grid; gap: var(--s2); }
.seq__body h3 { font-size: var(--t-h4); font-variation-settings: 'wdth' 104, 'wght' 650; }
.seq__body p { color: var(--ink-2); font-size: var(--t-sm); max-width: var(--measure); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */

.field { display: grid; gap: var(--s2); }
.field > label {
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 620;
}
.field .req { color: var(--danger); }
.field .hint { font-size: var(--t-xs); color: var(--ink-3); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.8rem var(--s4);
  background: var(--paper);
  border: 1px solid var(--steel);
  border-radius: 2px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.textarea { min-height: 148px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2315181b' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s4) center;
  background-size: 12px;
  padding-inline-end: var(--s7);
}
[dir='rtl'] .select { background-position: left var(--s4) center; }

.field--invalid .input, .field--invalid .select, .field--invalid .textarea {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}
.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--t-xs);
  color: var(--danger);
  font-weight: 600;
}
.field__error svg { width: 14px; height: 14px; flex: none; margin-block-start: 2px; }

.form-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }

.notice {
  display: flex;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  font-size: var(--t-sm);
}
/* display:flex outranks the hidden attribute, which left an empty bordered
   box standing above the submit button until a form response arrived. */
.notice[hidden] { display: none; }
.notice svg { width: 18px; height: 18px; flex: none; margin-block-start: 2px; }
.notice--ok { border-color: var(--ok); color: var(--ok); }
.notice--bad { border-color: var(--danger); color: var(--danger); }

/* --------------------------------------------------------------------------
   17. Disclosure (FAQ)
   -------------------------------------------------------------------------- */

.qa { border-block-start: 1px solid var(--rule); }
.qa:last-of-type { border-block-end: 1px solid var(--rule); }
.qa > summary {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--t-h4);
  font-variation-settings: 'wdth' 104, 'wght' 640;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa__mark { position: relative; width: 18px; height: 18px; flex: none; margin-block-start: 5px; }
.qa__mark::before, .qa__mark::after {
  content: '';
  position: absolute;
  background: var(--ink);
  inset-block-start: 8px;
  inset-inline-start: 0;
  width: 18px;
  height: 2px;
  transition: transform var(--fast) var(--ease);
}
.qa__mark::after { transform: rotate(90deg); }
.qa[open] .qa__mark::after { transform: rotate(0deg); }
.qa__body { padding-block-end: var(--s5); color: var(--ink-2); max-width: var(--measure); }

/* --------------------------------------------------------------------------
   18. Figures and galleries — images are never cropped to fit a card
   -------------------------------------------------------------------------- */

.shots { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shot {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s3);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--s3);
}
/* Mounted like a specimen on a card: the plate is a fixed window, the
   photograph sits whole inside it. Nothing is cropped to fit. */
.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--rule-soft);
}
.shot figcaption { font-size: var(--t-xs); color: var(--ink-3); padding-inline: var(--s1); }

.plate {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--s3);
}
.plate img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   19. Logo wall — references shown as they are, unnamed
   -------------------------------------------------------------------------- */

/* Ten logos, so five across leaves two full rows and no half-empty tail. */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  border-block-start: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
  background: var(--paper);
}
@media (min-width: 900px) {
  .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.wall li {
  display: grid;
  place-items: center;
  padding: var(--s5) var(--s4);
  border-block-end: 1px solid var(--rule);
  border-inline-end: 1px solid var(--rule);
  min-height: 132px;
}
.wall img {
  width: 86%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  /* Monochrome so no customer's brand outshouts another; dark enough to read. */
  filter: grayscale(1) contrast(1.08);
  opacity: 0.85;
  transition: filter var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.wall li:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   19b. Reference strip — the deck travelling past. Two identical tracks run
        side by side and each slides one full track-width left, so the second
        fills the gap the first leaves and the seam never shows. Pure CSS:
        it keeps running with JavaScript off.
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--paper);
  border-block: 1px solid var(--rule);
  padding-block: var(--s5);
  position: relative;
  display: grid;
  gap: var(--s4);
}
.marquee__viewport {
  display: flex;
  overflow: hidden;
  /* Both ends fade so logos enter and leave rather than being cut. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__viewport:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.marquee__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee-run 52s linear infinite;
}
.marquee__cell {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  inline-size: clamp(150px, 15vw, 210px);
  padding-inline: var(--s5);
  border-inline-end: 1px solid var(--rule-soft);
}
.marquee__cell img {
  inline-size: 100%;
  block-size: auto;
  max-block-size: 56px;
  object-fit: contain;
  /* Monochrome so no customer's brand outshouts another. */
  filter: grayscale(1) contrast(1.08);
  opacity: 0.85;
  transition: filter var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__cell:hover img { filter: none; opacity: 1; }

.marquee__go {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--face-mono);
  color: var(--ink-3);
}
.marquee__go svg { inline-size: 13px; block-size: 13px; }
.marquee__go:hover { color: var(--ink); }

@keyframes marquee-run { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  /* No travel. The strip becomes a row the reader scrolls themselves. */
  .marquee__track { animation: none; }
  .marquee__viewport { overflow-x: auto; scroll-snap-type: x proximity; }
  .marquee__cell { scroll-snap-align: center; }
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--chassis); color: var(--on-chassis); }
.site-footer__top {
  display: grid;
  gap: var(--s7);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-block: var(--band-tight);
}
.site-footer h2, .site-footer h3 {
  font-size: var(--t-xs);
  font-family: var(--face-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ral-1023);
  margin-block-end: var(--s4);
}
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer a { font-size: var(--t-sm); color: var(--on-chassis-2); transition: color var(--fast) var(--ease); }
.site-footer a:hover { color: var(--on-chassis); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer address { font-style: normal; font-size: var(--t-sm); color: var(--on-chassis-2); line-height: 1.7; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s5);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--s5);
  border-block-start: 1px solid var(--chassis-3);
  font-size: var(--t-xs);
  color: var(--on-chassis-2);
}
/* Three short legal links: one line, separated the way the site separates any
   other run of short facts — a middot, which survives wrapping without
   leaving a hanging rule at the start of a new line. */
.site-footer .footer-legal { /* .site-footer ul yukarıda grid'e alıyor; sıra değil özgüllük belirler */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  justify-content: flex-end;
}
.footer-legal li { display: flex; align-items: center; gap: var(--s4); }
/* Geliştirici notu: telif satırının altında, aynı küçük puntoda. Cümle içindeki
   bağlantı yalnızca renkle ayrılmaz, altı çizilidir. */
.footer-credit { display: block; margin-block-start: var(--s1); }
.site-footer .footer-credit a {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.footer-legal li:not(:last-child)::after { content: '·'; }
.footer-brand picture { display: block; margin-block-end: var(--s4); }
.footer-brand img { display: block; height: 56px; width: auto; }

/* --------------------------------------------------------------------------
   21. Motion — one authored moment, from an already-visible default
   -------------------------------------------------------------------------- */

/* Content is visible by default. The reveal only refines an existing page. */
[data-rise] {
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js [data-rise]:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}
.js [data-rise].is-in { opacity: 1; transform: none; }

/* The fan opens once, orchestrated from the rivet. */
.js .deck:not(.is-open) .leaf { transform: rotate(0deg); }
.js .deck .leaf { transition-delay: calc(var(--i, 0) * 52ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-rise]:not(.is-in) { opacity: 1; transform: none; }
  .js .deck:not(.is-open) .leaf { transform: rotate(var(--a, 0deg)); }
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.stack { display: grid; }
.stack > * + * { margin-block-start: var(--s4); }
.stack-6 > * + * { margin-block-start: var(--s6); }
.stack-7 > * + * { margin-block-start: var(--s7); }
.flow-2 { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.split--wide-start { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.split--wide-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

/* --------------------------------------------------------------------------
   23. Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
  .split, .split--wide-start, .split--wide-end { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .brand img { height: 36px; }
  .deck { height: auto; margin-block-start: var(--s5); }
  .deck__pivot { display: none; }
  /* The deck closes on a phone: chips lie flat as a readable stack of edges. */
  .deck__fan {
    position: static;
    display: flex;
    gap: 4px;
    height: 132px;
  }
  .leaf {
    position: static;
    transform: none !important;
    height: 100%;
    width: auto;
    flex: 1 1 0;
    transition: none;
  }
  .leaf--sliver { flex: 0 0 10px; }
  .leaf::after { bottom: 12px; letter-spacing: 0.1em; font-size: 0.625rem; }
  .spine__item { padding: var(--s4) var(--s4); }
  .site-footer__top { gap: var(--s6); }
}
