/* ==========================================================================
   Konsept Piroteknik — design system
   Dark, technical, engineering-led. Every colour derives from the logo:
     #01619E  corporate blue   (the KONSEPT wordmark)
     #1D1D1B  near-black       (the PİROTEKNİK wordmark) — the page ground
     #0082A5  teal             (the feather)
     #7A0637  burgundy         (the feather tip)
   The two brand colours are lifted in lightness for the dark ground; the
   printed originals stay too dark to read against it.
   No external dependencies.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces: the logo's black is the panel colour, with the page sitting under it */
  --c-bg:          #121312;
  --c-surface:     #1d1d1b;
  --c-surface-2:   #262623;
  --c-surface-3:   #2f2f2b;

  /* Hairlines and dividers */
  --c-line:        #33332f;
  --c-line-strong: #4b4b44;

  /* Text */
  --c-text:        #ecefec;
  --c-text-muted:  #a2a8a4;
  --c-text-dim:    #7c827e;

  /* Brand, lifted for contrast on the dark ground.
     #01619E sits at ~2.4:1 here, which fails; these clear 4.5:1. */
  --c-accent:      #3d9ad6;
  --c-accent-hi:   #63b4e8;
  --c-accent-dim:  #16334a;
  --c-teal:        #29bcdf;
  --c-teal-hi:     #5ed2ee;
  --c-burgundy:    #d4547f;

  /* The printed brand values, for use on white surfaces such as the datasheets */
  --c-accent-print: #01619e;
  --c-teal-print:   #0082a5;

  /* Text sitting on an accent fill. The lifted accent is mid-toned, so white
     on it only reaches ~2.6:1 — near-black clears 6:1. */
  --c-on-accent:   #08161f;

  /* Bloom works on a dark ground, so depth comes from glow rather than shadow */
  --c-glow:        rgba(41, 188, 223, .48);
  --c-glow-soft:   rgba(41, 188, 223, .16);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .40);
  --shadow-md:     0 6px 20px rgba(0, 0, 0, .48);
  --shadow-lg:     0 18px 44px rgba(0, 0, 0, .56);

  /* Type */
  --f-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1280px;
  --radius: 2px;   /* Sharp corners read as precise/technical */

  /* Header height is a token because the mobile drop-down is pinned directly below it. */
  --header-h: 160px;
  /* The logo file is cropped to the artwork. The earlier one sat in a 16:9 canvas that was
     43% transparent padding, so its box had to be ~1.65x taller to show the mark at this
     size — and the extra scaling is what softened it. Height here is the mark itself. */
  --logo-h: 71px;

  /* Chamfered corner cut, used for buttons, badges and plates */
  --notch-size: 12px;
  --notch: polygon(
    var(--notch-size) 0, 100% 0,
    100% calc(100% - var(--notch-size)), calc(100% - var(--notch-size)) 100%,
    0 100%, 0 var(--notch-size));

  --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
  --t-med:  260ms cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Firefox / spec-compliant scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-strong) var(--c-bg);
}

/* --- Scrollbar -----------------------------------------------------------
   The native scrollbar is styled rather than replaced with a JS one: a custom
   scroller would have to intercept wheel, touch, keyboard and screen-reader
   scrolling, and gets all four subtly wrong. This keeps the real behaviour. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-corner { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: var(--c-line-strong);
  /* Border in the track colour insets the thumb, so it reads as a slim bar */
  border: 3px solid var(--c-bg);
  border-radius: 8px;
  transition: background var(--t-fast);
}
::-webkit-scrollbar-thumb:hover   { background: var(--c-accent); }
::-webkit-scrollbar-thumb:active  { background: var(--c-teal); }

/* Scroll position indicator, pinned above the sticky header */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--c-accent), var(--c-teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

/* --- Layout primitives ---------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-line); }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 0.98;
}

.h-section {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--c-text-muted);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Small monospace label — the workhorse "technical" cue across the site */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-teal);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-teal);
  flex: none;
}
.eyebrow--plain::before { display: none; }

/* Thin accent rule under headings */
.rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-teal));
  border: 0;
  margin: 1.4rem 0 0;
}

.muted { color: var(--c-text-muted); }
.mono  { font-family: var(--f-mono); }

/* --- Buttons -------------------------------------------------------------
   Chamfered. The 1px "border" is the element background showing around an
   inset fill, because clip-path would otherwise cut straight through a real
   CSS border and leave the diagonal edge unpainted. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: calc(0.9rem + 1px) calc(1.6rem + 1px);
  border: 0;
  background: var(--c-line-strong);
  color: var(--c-text);
  clip-path: var(--notch);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), filter var(--t-fast);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--c-bg);
  clip-path: var(--notch);
  transition: background var(--t-fast);
}
/* Shine that crosses the face on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(41, 188, 223, .20), transparent);
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
}
.btn svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }

.btn:hover {
  background: var(--c-accent);
  color: var(--c-accent);
  filter: drop-shadow(0 4px 10px var(--c-glow-soft));
}
.btn:hover::before { background: var(--c-surface); }
.btn:hover::after { opacity: 1; animation: hud-sweep 900ms ease-out; }

.btn--primary { background: var(--c-accent-hi); color: var(--c-on-accent); font-weight: 700; }
.btn--primary::before { background: var(--c-accent); }
.btn--primary:hover { background: var(--c-teal-hi); color: var(--c-on-accent); filter: drop-shadow(0 0 16px var(--c-glow)); }
.btn--primary:hover::before { background: var(--c-teal); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 19, 18, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}

/* Live hairline sweeping the header edge */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-teal) 50%, transparent 100%);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: hud-hairline 7s linear infinite;
  opacity: .85;
  pointer-events: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.85rem; flex: none; }
.brand img { height: var(--logo-h); width: auto; }

.nav { display: flex; align-items: center; gap: 0.4rem; margin-inline-start: auto; }

.nav a {
  position: relative;
  padding: 0.55rem 0.95rem;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--c-accent); }
.nav a.is-active { color: var(--c-text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.15rem;
  height: 2px;
  background: var(--c-accent);
}

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang a {
  padding: 0.4rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang a:hover { color: var(--c-accent); }
.lang a.is-active { background: var(--c-accent); color: var(--c-on-accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  padding: .55rem .7rem;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  :root { --header-h: 99px; --logo-h: 42px; }

  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem var(--gutter) 1.25rem;
    margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--c-line); font-size: 0.95rem; }
  .nav a.is-active::after { left: 0; right: auto; width: 24px; bottom: 0.5rem; }
  .lang { margin-top: 1rem; align-self: flex-start; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}

.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Two stacked washes: a horizontal one so light text stays readable over the
   photograph, and a vertical one settling the image into the page. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* The copy column occupies roughly the left 55%, so the wash stays heavy to
       that point and then falls away quickly — otherwise it dims the artwork on
       the drawn slides into near-invisibility. */
    linear-gradient(90deg,
      rgba(18, 19, 18, .96) 0%,
      rgba(18, 19, 18, .92) 30%,
      rgba(18, 19, 18, .74) 50%,
      rgba(18, 19, 18, .30) 72%,
      rgba(18, 19, 18, .12) 100%),
    /* Shallow bottom fade: deep enough to blend the photograph into the page,
       shallow enough not to swallow the labels on the drawn slides. */
    linear-gradient(0deg, var(--c-bg) 1%, transparent 24%);
}

/* Faint engineering grid over the hero */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 188, 223, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 188, 223, .13) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: .8;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
  animation: hud-drift 24s linear infinite;
}

/* Fine raster, as on a CRT instrument readout */
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, rgba(140, 220, 240, .040) 0 1px, transparent 1px 3px);
}

.hero__sweep {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(41, 188, 223, .11), transparent);
  animation: hud-scan 9s ease-in-out infinite;
}

.hero .display { text-shadow: 0 0 46px rgba(41, 188, 223, .20); }

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__body { max-width: 46rem; }
.hero .display { margin-top: 1.5rem; }
.hero .lead { margin-top: 1.75rem; }
/* Captions share one grid cell so they stack without absolute positioning: the tallest
   caption sets the height naturally. A fixed min-height would be overflowed by a
   three-line caption on a phone, and the text would run over the buttons. */
.hero__captions { display: grid; margin-top: 1.75rem; }
.hero__caption {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.hero__caption.is-active { opacity: 1; pointer-events: auto; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }

/* Slide indicators */
/* The visible bar stays 3px, but the button itself is a proper 44px touch target —
   a 3px-tall control is effectively unhittable on a phone. */
.hero__dots { display: flex; gap: 0; margin-top: 2.25rem; margin-inline-start: -6px; }
.hero__dots button {
  position: relative;
  width: 46px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.hero__dots button::after {
  content: "";
  position: absolute;
  inset-inline: 6px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--c-line-strong);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.hero__dots button.is-active::after { background: var(--c-accent); }

/* --- Section heading block ------------------------------------------------ */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head__text { max-width: 44rem; }
.section-head .h-section { margin-top: 1.1rem; }

/* --- Product cards (spec-sheet style) ------------------------------------- */
/* Dividing lines come from each card's own borders, not from a coloured container
   showing through 1px gaps. With the gap technique an incomplete last row leaves the
   container colour exposed as a large grey block, which is what a 7th product produced. */
.grid-products {
  display: grid;
  /* min(...) so the track can shrink below 300px on a narrow phone instead of
     forcing the page to scroll sideways. */
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 0;
  border-block-start: 1px solid var(--c-line);
  border-inline-start: 1px solid var(--c-line);
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-inline-end: 1px solid var(--c-line);
  border-block-end: 1px solid var(--c-line);
  transition: background var(--t-med), box-shadow var(--t-med);
  min-height: 100%;
}
.pcard:hover { background: var(--c-bg); box-shadow: var(--shadow-md); }

/* The source "product images" are portrait A4 datasheets, not photography.
   Cropping them into a landscape card produces an unreadable slice, so cards
   use a typographic plate and the datasheet is shown in full on the detail page. */
.pcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--c-surface);
  background-image:
    linear-gradient(rgba(41, 188, 223, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 188, 223, .09) 1px, transparent 1px);
  background-size: 34px 34px;
}
.pcard__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 90% at 50% 120%, rgba(61, 154, 214, .26), transparent 70%);
  opacity: .8;
  transition: opacity var(--t-med);
}
.pcard__media::after {
  /* Scan line, parked out of view until the card is hovered. */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(41, 188, 223, .18), transparent);
  opacity: 0;
  transform: translateY(-120%);
  pointer-events: none;
}
.pcard:hover .pcard__media::before { opacity: 1; }
.pcard:hover .pcard__media::after { opacity: 1; animation: hud-scan 1.5s ease-out; }
.pcard:hover .hud-frame { opacity: 1; }

.pcard__index {
  position: absolute;
  top: 0; left: 0;
  padding: 0.5rem 1.1rem 0.5rem 0.8rem;
  background: var(--c-accent);
  color: var(--c-on-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  z-index: 2;
}

.pcard__plate {
  position: relative;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
  text-align: center;
  line-height: 1.15;
  transition: color var(--t-med);
}
.pcard:hover .pcard__plate { color: var(--c-accent); }

.pcard__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pcard__title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: -0.01em; }
.pcard__summary {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__foot {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  transition: color var(--t-fast);
}
.pcard:hover .pcard__foot { color: var(--c-accent); }
.pcard__foot svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.pcard:hover .pcard__foot svg { transform: translateX(4px); }

/* --- Application areas ---------------------------------------------------- */
/* Same border-per-cell approach as the product grid, for the same reason: an odd
   number of areas must not leave a coloured block where the row runs out. */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 0;
  border-block-start: 1px solid var(--c-line);
  border-inline-start: 1px solid var(--c-line);
}

.area {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-inline-end: 1px solid var(--c-line);
  border-block-end: 1px solid var(--c-line);
  transition: background var(--t-med);
}
.area:hover { background: var(--c-surface); }
.area:hover .hud-frame { opacity: 1; }

.area__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-surface-2);
}
.area__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Only a light knock-back now. The heavy desaturation this replaced existed to make
     mismatched stock behave as a set; these are shot to one look and already dark, so
     the same treatment would just turn them muddy. */
  filter: brightness(.94) contrast(1.02);
  transition: transform var(--t-med), filter var(--t-med);
}
.area:hover .area__media img { transform: scale(1.04); filter: brightness(1.06) contrast(1.04); }
.area__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Shallow foot only, to seat the image against the card below it. */
  background: linear-gradient(0deg, rgba(18, 19, 18, .55) 0%, transparent 32%);
  pointer-events: none;
}

.area__no {
  position: absolute;
  top: 0; inset-inline-start: 0;
  z-index: 2;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  background: var(--c-accent);
  color: var(--c-on-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background var(--t-fast);
}
.area:hover .area__no { background: var(--c-teal); }

.area__body { min-width: 0; padding: 1.35rem 1.4rem 1.6rem; }
.area__title {
  font-size: 1.08rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: -0.01em;
}
.area__sub {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* --- Spec table (product detail) ------------------------------------------ */
.spec {
  border: 1px solid var(--c-line);
  background: var(--c-bg);
}
.spec__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  border-bottom: 1px solid var(--c-line);
}
.spec__row:last-child { border-bottom: 0; }
.spec__key {
  position: relative;
  padding: 1.1rem 1.35rem;
  border-right: 1px solid var(--c-line);
  background: var(--c-surface);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.spec__key::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--c-teal);
}
.spec__val { padding: 1.1rem 1.35rem; }
.spec__val p { margin: 0 0 0.4rem; }
.spec__val p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .spec__row { grid-template-columns: 1fr; }
  .spec__key { border-right: 0; border-bottom: 1px solid var(--c-line); }
}

/* --- Datasheet ------------------------------------------------------------
   Source datasheets are dark-on-white portrait documents, shown at their
   natural aspect rather than cropped so the figures stay legible. */
.datasheet {
  position: relative;
  border: 1px solid var(--c-line-strong);
  background: #fff;
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}
.datasheet img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.datasheet__tag {
  position: absolute;
  top: 0; inset-inline-start: 0;
  padding: 0.45rem 0.8rem;
  /* The tag sits on the white datasheet panel, so it uses the printed brand
     blue rather than the lifted one — white on it clears 6:1. */
  background: var(--c-accent-print);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

/* --- Rich text ------------------------------------------------------------ */
.rich { color: var(--c-text-muted); max-width: 72ch; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 1.1rem; text-wrap: pretty; }
.rich h2, .rich h3, .rich h4 { color: var(--c-text); margin: 2.2rem 0 0.9rem; }
.rich h2 { font-size: 1.45rem; text-transform: uppercase; }
.rich h3 { font-size: 1.2rem; }
.rich strong, .rich b { color: var(--c-text); font-weight: 600; }
.rich ul, .rich ol { margin: 0 0 1.1rem; padding-inline-start: 1.3rem; }
.rich li { margin-bottom: 0.5rem; }
.rich a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.rich img { margin: 1.5rem 0; border: 1px solid var(--c-line); }
.rich table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.rich th, .rich td { border: 1px solid var(--c-line); padding: 0.7rem 0.9rem; text-align: start; }

/* --- Panels / feature blocks ---------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.framed {
  position: relative;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.framed img { width: 100%; object-fit: cover; }

.panel {
  position: relative;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.panel__title { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 0.9rem; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.cards-3 > * { background: var(--c-bg); border: 0; }

/* --- Timeline ------------------------------------------------------------- */
.timeline { border-inline-start: 2px solid var(--c-line); padding-inline-start: clamp(1.5rem, 4vw, 3rem); }
.tl-item { position: relative; padding-bottom: 2.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1 * clamp(1.5rem, 4vw, 3rem) - 5px);
  top: 0.55rem;
  width: 10px; height: 10px;
  background: var(--c-accent);
}
.tl-year {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-teal);
}
.tl-title { font-size: 1.2rem; margin: 0.45rem 0 0.7rem; text-transform: uppercase; }

/* --- Policy list ---------------------------------------------------------- */
.policy-list { border-top: 1px solid var(--c-line); }
.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--c-line);
  transition: padding-inline-start var(--t-fast), color var(--t-fast);
}
.policy-row:hover { padding-inline-start: 0.85rem; }
.policy-row__title { font-size: clamp(1.05rem, 2vw, 1.4rem); text-transform: uppercase; }
.policy-row:hover .policy-row__title { color: var(--c-accent); }
.policy-row__no {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-teal);
  letter-spacing: 0.12em;
}

/* --- Press list ----------------------------------------------------------- */
.press-list { border-top: 1px solid var(--c-line); }

.press-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-line);
}

.press-row__meta { display: flex; flex-direction: column; gap: 0.45rem; }
.press-row__date {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-teal);
}
.press-row__outlet {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.press-row__title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
  text-transform: none;
}
.press-row__title a { transition: color var(--t-fast); }
.press-row__title a:hover { color: var(--c-accent); }

.press-row__summary {
  margin: 0.75rem 0 0;
  color: var(--c-text-muted);
  font-size: 0.94rem;
  max-width: 68ch;
}

.press-row__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.press-row__link svg { width: 13px; height: 13px; transition: transform var(--t-fast); }
.press-row__link:hover svg { transform: translate(2px, -2px); }

@media (max-width: 700px) {
  .press-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .press-row__meta { flex-direction: row; align-items: baseline; gap: 1rem; }
}

/* --- Job list ------------------------------------------------------------- */
.job-list { border-top: 1px solid var(--c-line); }

.job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--c-line);
}
.job-row__main { flex: 1 1 320px; }
.job-row__title { font-size: clamp(1.1rem, 2vw, 1.4rem); text-transform: uppercase; }
.job-row__title a { transition: color var(--t-fast); }
.job-row__title a:hover { color: var(--c-accent); }
.job-row__summary {
  margin: 0.7rem 0 0;
  color: var(--c-text-muted);
  font-size: 0.93rem;
  max-width: 66ch;
}

.job-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.job-tag {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-dim);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { padding: 0.65rem 0.75rem; font-size: 0.88rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-inline-end: 0.9rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.field-error { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--c-burgundy); }

.alert {
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-accent-dim);
  border-inline-start: 3px solid var(--c-teal);
  background: rgba(41, 188, 223, .09);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

/* --- Page header (interior pages) ----------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 188, 223, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 188, 223, .12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 120% at 90% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 120% at 90% 50%, #000, transparent);
  animation: hud-drift 30s linear infinite;
  pointer-events: none;
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { margin-top: 1.15rem; font-size: clamp(2rem, 4.5vw, 3.25rem); text-transform: uppercase; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: 1.3rem;
}
.crumb a:hover { color: var(--c-accent); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--c-accent);
  background: var(--c-surface);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer-grid {
  display: grid;
  /* A single uniform auto-fit track. The previous template pinned a 240px column and then
     added a 160px one, which came to 432px minimum and forced the whole page to scroll
     sideways on a phone — auto-fit simply drops to one column when there is no room. */
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 2.5rem 2rem;
}

/* Grid and flex items default to min-width:auto, so a long unbreakable string (the
   e-mail address) can push its track wider than the screen. */
.footer-col { min-width: 0; }
.footer-col a, .footer-col p { overflow-wrap: anywhere; }
.footer-logo { height: 92px; width: auto; margin-bottom: 1.75rem; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { font-size: 0.92rem; color: var(--c-text-muted); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-accent); }
.footer-col p { margin: 0 0 0.65rem; font-size: 0.92rem; color: var(--c-text-muted); }

.footer-name { text-transform: uppercase; }

/* --- KVKK consent block on the careers form ------------------------------- */
.consent {
  border: 1px solid var(--c-line-strong);
  border-inline-start: 3px solid var(--c-accent);
  padding: 1.1rem 1.2rem;
  background: var(--c-surface);
}
.consent__text {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  max-height: 11rem;
  overflow-y: auto;
}
.consent__check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.consent__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--c-accent);
}
.consent__more { display: inline-block; margin-top: 0.75rem; font-size: 0.82rem; }

/* Legal row: KVKK and terms, sitting between the copyright and the rights notice. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.footer-legal a { color: var(--c-text-muted); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--c-accent); }

/* Social marks. The row is only rendered when links exist, so it needs no empty state. */
.footer-social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line-strong);
  color: var(--c-text-muted);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer-social a:hover {
  color: var(--c-on-accent);
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.footer-social svg { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
}

/* --- HUD detailing --------------------------------------------------------
   Four L-shaped corner brackets drawn as one background layer, so a single
   element covers all four corners. */
.hud-frame {
  position: absolute;
  inset: 9px;
  pointer-events: none;
  --b: var(--c-teal);
  --len: 15px;
  background:
    linear-gradient(var(--b), var(--b)) 0 0      / 2px var(--len) no-repeat,
    linear-gradient(var(--b), var(--b)) 0 0      / var(--len) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0   / 2px var(--len) no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0   / var(--len) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 0 100%   / 2px var(--len) no-repeat,
    linear-gradient(var(--b), var(--b)) 0 100%   / var(--len) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 100%/ 2px var(--len) no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 100%/ var(--len) 2px no-repeat;
  opacity: .55;
  transition: opacity var(--t-med);
  z-index: 1;
}
/* Brackets on the white datasheet panel need the printed blue, not the lifted one. */
.datasheet .hud-frame { --b: var(--c-accent-print); opacity: .7; }

/* --- Animation ------------------------------------------------------------ */
@keyframes hud-scan {
  0%   { transform: translateY(-120%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

@keyframes hud-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 68px 68px, 68px 68px; }
}

@keyframes hud-hairline {
  from { background-position: -50% 0; }
  to   { background-position: 150% 0; }
}

@keyframes hud-sweep {
  from { transform: translateX(-120%) skewX(-18deg); }
  to   { transform: translateX(320%) skewX(-18deg); }
}

/* --- Utilities ------------------------------------------------------------ */
.stack > * + * { margin-top: 1.25rem; }

/* Caps line length when copy is not sharing the row with an image, so a product without a
   datasheet reads as a deliberate single column rather than text stretched across the page. */
.measure { max-width: 70ch; }
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1.25rem;
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.skip-link:focus { inset-inline-start: 0; }

/* Entrance animation. The hidden state is applied only when the inline head
   script has confirmed scripting is on, so a JS failure can never leave the
   page blank. */
.js-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms ease, transform 620ms ease; }
.js-on .reveal.is-in { opacity: 1; transform: none; }

/* --- Phones ---------------------------------------------------------------
   Adjustments that only make sense on a small portrait screen. */
@media (max-width: 640px) {
  /* The desktop hero is sized for a landscape viewport; 78vh of a tall phone leaves
     the content marooned in the middle of an empty screen. */
  .hero { min-height: clamp(440px, 66vh, 600px); }

  /* Long eyebrow text wraps under its own rule at desktop tracking. */
  .eyebrow { font-size: .66rem; letter-spacing: .14em; gap: .6rem; }
  .eyebrow::before { width: 18px; }

  /* Full-width stacked buttons: easier to hit, and they stop wrapping awkwardly. */
  .hero__actions { gap: .6rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  .section { padding-block: clamp(2.75rem, 11vw, 4rem); }
  .section--tight { padding-block: clamp(2rem, 8vw, 3rem); }

  /* Cards get their own breathing room back once they are one per row. */
  .pcard__body { padding: 1.25rem; }
  .area { padding: 1.5rem 1.25rem; gap: 1.1rem; }

  /* A policy row is a link; keep the whole row comfortably tappable. */
  .policy-row { padding: 1.35rem 0; }

  .footer-bottom { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Sweeps and scan lines are decorative; hide rather than freeze mid-travel. */
  .hero__sweep, .pcard__media::after, .btn::after { display: none; }
}
