/* ==========================================================================
   Genveon × CREW Medya — Erişim kapısı "Formül" (REVİZYON 1: açık görsel sistem)
   Teklifle aynı dil: açık klinik zemin #F2F4F6, Genveon lacivert mürekkep,
   Bricolage Grotesque (başlık) + Instrument Sans (metin), CREW sarısı yalnız eylemde.
   Sahne: beyaz bir dozaj tablası üzerinde süzülen cam kapsül; lacivert kapak +
   şeffaf gövde, gövdenin içinde dört sitenin renginde dört kürecik.
   Kod doğruysa kapsül açılır, kürecikler ekranın ortasında G işaretine dizilir;
   ekranda yalnız ≈120 px renkli G ve zemin kalır (kapak bu kareden devam eder).
   Kapı çerezsiz açılır: her dosya gate/ altında. Harici kaynak yok.
   ========================================================================== */

:root {
  /* crew-base.css v2 ile aynı değerler */
  --paper: #F2F4F6;
  --paper-2: #E8ECF0;
  --surface: #FFFFFF;
  --ink: #0D1B33;
  --ink-2: #46516A;
  --ink-3: #7A8496;
  --line: #D6DCE4;
  --line-2: #BCC5D1;
  --navy: #1D376B;
  --navy-deep: #0F2147;
  --green: #00A84E;
  --green-ink: #00733A;
  --yellow: #FED216;
  --err: #B42318;            /* açık zeminde hata metni (AA) */
  /* dört site */
  --k-navy: #1D376B;
  --k-orange: #F7941D;
  --k-red: #C51C4F;
  --k-blue: #1386BF;

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad-x: clamp(16px, 5vw, 80px);
  --gx: max(var(--pad-x), calc((100vw - 1280px) / 2));   /* üst, orta ve alt aynı sol kenarda */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* sahne yüksekliği (kapsül ölçüleri buna bağlı; JS --d'yi ölçüp yazar) */
  --lh: clamp(300px, 58vh, 560px);
}
@supports (height: 100svh) {
  :root { --lh: clamp(300px, 58svh, 560px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- sayfa ---------- */
.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

/* ---------- üst: CREW × Genveon + tarih ---------- */
.gate__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3.2vh, 32px) var(--gx) 0;
}
.gate__brand { display: flex; align-items: center; gap: 12px; }
.gate__crew { height: 30px; width: auto; }
.gate__x { color: var(--ink-3); font-size: 15px; line-height: 1; }
.gate__gv { height: 28px; width: auto; }
.gate__date { font-size: 14px; color: var(--ink-2); white-space: nowrap; }

/* ---------- orta ---------- */
.gate__main {
  justify-self: center;
  width: 100%;
  padding: clamp(16px, 3vh, 40px) var(--gx);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "stage" "form";
  align-content: center;
}
.gate__head { grid-area: head; transition: opacity .45s ease; }
.gate__title {
  margin: 0;
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(2.4rem, 10.4vw, 3.4rem);
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--ink);
}
.gate__ln { display: block; }
.gate__lead {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- form ---------- */
.gate__form {
  grid-area: form;
  width: 100%;
  max-width: 480px;
  transition: opacity .45s ease;
}
.field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.field__k { font-size: 15px; font-weight: 600; color: var(--ink); cursor: text; white-space: nowrap; }
.field__n { min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(13, 27, 51, .04), 0 16px 34px -26px rgba(13, 27, 51, .45);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field__row:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(29, 55, 107, .12), 0 16px 34px -26px rgba(13, 27, 51, .45);
}
.gate__form[data-state="error"] .field__row { border-color: var(--err); }
.gate__form[data-state="error"] .field__row:focus-within { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12), 0 16px 34px -26px rgba(13, 27, 51, .45); }
.gate__form[data-state="locked"] .field__row { background: var(--paper-2); box-shadow: none; }
.field__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  font-family: var(--f-text);
  font-size: 18px;            /* iOS: < 16 px alan yakınlaştırır */
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  caret-color: var(--navy);
}
.field__input::placeholder { color: #737D90; font-weight: 400; opacity: 1; }
.field__input:disabled { cursor: not-allowed; color: var(--ink-3); }

/* birincil eylem: CREW sarısı */
.gate__go {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 44px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, transform .35s var(--ease-out), opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .gate__go:hover { background: #FFDE45; }
}
.gate__go:active { transform: translateY(1px); }
.gate__go:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.gate__go:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.gate__go-t { transition: opacity .2s ease; }
.gate__go::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(13, 27, 51, .22);
  border-top-color: var(--ink);
  opacity: 0;
}
.is-busy .gate__go-t { opacity: 0; }
.is-busy .gate__go::after { opacity: 1; animation: gate-spin .7s linear infinite; }

.gate__msg {
  min-height: 3em;
  margin-top: 12px;
  padding: 0 2px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--err);
  text-wrap: pretty;
}
.gate__form[data-state="ok"] .gate__msg { color: var(--green-ink); }
.gate__form[data-state="locked"] .gate__msg { color: var(--ink); }

/* kilitliyken: tıklanabilir e-posta (yalnız kilitli durumda görünür) */
.gate__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 2px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
  animation: gate-rise .6s var(--ease-out) both;
}
.gate__mail[hidden] { display: none; }
.gate__mail svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.gate__mail:hover { border-color: var(--ink); }
.gate__mail:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ==========================================================================
   Sahne: tabla + cam kapsül + dört kürecik
   ========================================================================== */
.stage {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.lab {
  --d: calc(var(--lh) * .94);          /* tabla çapı (JS: min(genişlik, yükseklik) × .94) */
  --cl: calc(var(--d) * .64);          /* kapsül boyu */
  --ct: calc(var(--cl) * .36);         /* kapsül kalınlığı */
  --ca: -24deg;                        /* kapsül açısı */
  --bead: calc(var(--ct) * .28);       /* kürecik çapı */
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: var(--lh);
  flex: none;
}

/* beyaz dozaj tablası + ince ölçek halkası */
.lab__plate {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) * -.5) 0 0 calc(var(--d) * -.5);
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 50% 42%, #FFFFFF 0%, #FFFFFF 62%, #F7F9FB 100%);
  box-shadow:
    0 0 0 1px var(--line),
    0 2px 4px rgba(13, 27, 51, .04),
    0 40px 80px -44px rgba(13, 27, 51, .34);
  transition: opacity .5s ease;
}
.lab__ring { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.lab__ticks { fill: none; stroke: var(--line-2); stroke-width: 1.9; stroke-dasharray: .32 2.12; }
.lab__inner { fill: none; stroke: var(--line); stroke-width: .3; }

/* kapsülün tablaya düşen yumuşak gölgesi (kapsülle birlikte süzülür) */
.lab__shadow {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--cl) * .86);
  height: calc(var(--ct) * .62);
  margin: calc(var(--ct) * .62) 0 0 calc(var(--cl) * -.43);
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 70% 48%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%),
    radial-gradient(closest-side at 76% 52%, rgba(247, 148, 29, .14), rgba(247, 148, 29, 0) 80%),
    radial-gradient(closest-side, rgba(13, 27, 51, .26), rgba(13, 27, 51, .1) 55%, rgba(13, 27, 51, 0));
  transform: rotate(-11deg);
  animation: cap-shadow 6.4s var(--ease-io) infinite;
  transition: opacity .5s ease;
  pointer-events: none;
}

/* ---------- kapsül ---------- */
.cap {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  width: 0; height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: cap-float 6.4s var(--ease-io) infinite;
}
.cap__tilt { position: absolute; left: 0; top: 0; will-change: transform; }
.cap__breath { position: absolute; left: 0; top: 0; }
.cap__body {
  position: absolute;
  left: calc(var(--cl) * -.5);
  top: calc(var(--ct) * -.5);
  width: var(--cl);
  height: var(--ct);
  transform: rotate(var(--ca));
}
.cap__half {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  will-change: transform, opacity;
}
/* A: Genveon lacivert kapak (parlak, opak; dikiş üstünde dudak) */
.cap__half--a {
  z-index: 2;
  left: 0;
  width: 46%;
  border-radius: 999px 22% 22% 999px / 999px 50% 50% 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .3) 100%),
    radial-gradient(95% 150% at 30% 16%, #5478C2 0%, #2C4E92 34%, #1D376B 62%, #0F2147 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset -3px 0 0 rgba(255, 255, 255, .16),
    inset -9px 0 10px -6px rgba(4, 10, 28, .55),
    inset 0 -6px 12px -6px rgba(150, 185, 255, .38);
}
/* B: şeffaf cam gövde (kapağın altına girer) */
.cap__half--b {
  z-index: 1;
  right: 0;
  top: 4.5%;
  height: 91%;
  width: 58%;
  border-radius: 0 999px 999px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .5) 15%, rgba(236, 243, 248, .14) 38%, rgba(236, 243, 248, .1) 62%, rgba(160, 184, 206, .46) 88%, rgba(255, 255, 255, .9) 100%),
    linear-gradient(90deg, rgba(110, 140, 168, .2), rgba(150, 178, 200, .1) 30%, rgba(150, 190, 180, .08) 70%, rgba(110, 140, 168, .24));
  box-shadow:
    inset 0 0 0 1px rgba(13, 27, 51, .14),
    inset 0 1.5px 0 rgba(255, 255, 255, .95),
    inset 0 -2px 0 rgba(255, 255, 255, .7),
    inset 0 -10px 14px -10px rgba(13, 27, 51, .45),
    inset -14px 0 16px -14px rgba(13, 27, 51, .42);
}
/* camın ön yüzü: kürecikleri hafifçe örten parıltı + uzun yansıma */
.cap__glass {
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.cap__glass::before {
  content: "";
  position: absolute;
  left: 6%; right: 15%; top: 9%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85) 26%, rgba(255, 255, 255, .6) 74%, rgba(255, 255, 255, 0));
}
.cap__glass::after {
  content: "";
  position: absolute;
  right: 9%; bottom: 16%;
  width: 18%; height: 9%;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  filter: blur(.5px);
}
/* lacivert kapağın üst parıltısı */
.cap__half--a::before {
  content: "";
  position: absolute;
  left: 13%; right: 7%; top: 12%;
  height: 16%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .78) 30%, rgba(255, 255, 255, .5) 75%, rgba(255, 255, 255, 0));
  opacity: .75;
}
/* kapak baskısı: beyaz G */
.cap__print {
  position: absolute;
  left: 34%; top: 50%;
  width: auto;
  height: 34%;
  transform: translateY(-50%) rotate(24deg);
  opacity: .5;
  pointer-events: none;
}
/* nefes ipucunda kapsül boyunca geçen parıltı */
.cap__sheen {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- dört kürecik (gövdenin içinde) ---------- */
.bead, .dot {
  position: absolute;
  border-radius: 50%;
  background-image: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .22) 28%, rgba(255, 255, 255, 0) 52%);
  pointer-events: none;
}
.bead {
  z-index: 1;
  width: var(--bead);
  height: var(--bead);
  margin: calc(var(--bead) * -.5) 0 0 calc(var(--bead) * -.5);
  box-shadow: inset -2px -3px 5px rgba(0, 0, 0, .28), 0 2px 4px -1px rgba(13, 27, 51, .25);
  will-change: transform;
}
.bead--navy { background-color: var(--k-navy); left: 27%; top: 62%; }
.bead--orange { background-color: var(--k-orange); left: 44%; top: 42%; }
.bead--red { background-color: var(--k-red); left: 61%; top: 65%; }
.bead--blue { background-color: var(--k-blue); left: 78%; top: 45%; }

@media (hover: hover) {
  .cap:hover .cap__breath { transform: scale(1.02); }
}
.cap__breath { transition: transform .5s var(--ease-out); }
.cap__breath.is-breath { animation: cap-breath 1.8s var(--ease-io) both; }
.cap__breath.is-breath .cap__sheen { animation: cap-sheen 1.5s var(--ease-io) .12s both; }
.gate[data-gate="locked"] .cap { cursor: not-allowed; }
.gate[data-gate="locked"] .cap__body { filter: grayscale(.85) opacity(.75); }

/* site göstergesi */
.lab__legend {
  list-style: none;
  margin: clamp(8px, 1.6vh, 16px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: opacity .45s ease;
}
.lab__legend li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lab__legend i { width: 8px; height: 8px; border-radius: 50%; }
.lab__legend .k-navy { background: var(--k-navy); }
.lab__legend .k-orange { background: var(--k-orange); }
.lab__legend .k-red { background: var(--k-red); }
.lab__legend .k-blue { background: var(--k-blue); }

/* ---------- açılış: kürecikler ekranın ortasında G'ye dizilir ---------- */
.gate__fx { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.dot {
  left: 0; top: 0;
  will-change: transform;
  box-shadow: inset -1px -1.5px 2px rgba(0, 0, 0, .18);
  transition: background-color .4s ease, opacity .32s ease;
}
/* son kare: yalnız ortada ≈120 px renkli G (kapak s01 buradan devam eder) */
.gate__seal {
  position: fixed; z-index: 60;
  left: 50%; top: 50%;
  width: 120px;
  height: 117.46px;                    /* 120 × 231 / 236 */
  margin: -58.73px 0 0 -60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;
}
.gate__seal img { width: 100%; height: 100%; }
.gate.is-formed .gate__seal { opacity: 1; }
.gate.is-formed .dot { opacity: 0; transition: background-color .4s ease, opacity .3s ease .08s; }

/* ---------- giriş koreografisi (yalnız JS varken; JS en geç 0,8 sn'de .is-in ekler) ---------- */
.js .gate:not(.is-in) .gate__brand,
.js .gate:not(.is-in) .gate__date,
.js .gate:not(.is-in) .gate__title,
.js .gate:not(.is-in) .gate__lead,
.js .gate:not(.is-in) .lab__plate,
.js .gate:not(.is-in) .lab__shadow,
.js .gate:not(.is-in) .cap,
.js .gate:not(.is-in) .lab__legend,
.js .gate:not(.is-in) .field,
.js .gate:not(.is-in) .gate__foot { opacity: 0; }

.gate.is-in .gate__brand { animation: gate-fade .8s ease .05s backwards; }
.gate.is-in .gate__date { animation: gate-fade .8s ease .3s backwards; }
.gate.is-in .gate__title { animation: gate-rise 1s var(--ease-out) .1s backwards; }
.gate.is-in .gate__lead { animation: gate-rise 1s var(--ease-out) .24s backwards; }
.gate.is-in .lab__plate { animation: plate-in 1.2s var(--ease-out) .12s backwards; }
.gate.is-in .lab__shadow { animation: gate-fade .8s ease .55s backwards, cap-shadow 6.4s var(--ease-io) 1.35s infinite; }
.gate.is-in .lab:not(.is-settled) .cap__breath { animation: cap-in 1.25s var(--ease-out) .3s backwards; }
.gate.is-in .lab__legend { animation: gate-fade .8s ease .9s backwards; }
.gate.is-in .field { animation: gate-rise 1s var(--ease-out) .38s backwards; }
.gate.is-in .gate__foot { animation: gate-fade .8s ease .7s backwards; }

/* doğru kod: her şey solar, kapsül açılır (JS), G ortada kalır */
.gate.is-ok .gate__top,
.gate.is-ok .gate__foot,
.gate.is-ok .gate__head,
.gate.is-ok .gate__form,
.gate.is-ok .lab__legend,
.gate.is-ok .lab__plate,
.gate.is-ok .lab__shadow { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.gate.is-ok .gate__top,
.gate.is-ok .gate__foot { transition-duration: .4s; }
.gate.is-ok .cap { cursor: default; animation-play-state: paused; }
.gate.is-ok .lab__shadow { animation-play-state: paused; }
.lab.is-burst .bead { visibility: hidden; }

@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes cap-in {
  from { opacity: 0; transform: translateY(-34px) rotate(-16deg) scale(.86); }
  40% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes cap-float {
  0%, 100% { transform: translate3d(0, -5px, 0) rotate(-1deg); }
  50% { transform: translate3d(0, 6px, 0) rotate(1.2deg); }
}
@keyframes cap-shadow {
  0%, 100% { transform: rotate(-11deg) scale(.88); }
  50% { transform: rotate(-11deg) scale(1.04); }
}
@keyframes cap-breath { 0%, 100% { transform: none; } 42% { transform: scale(1.04); } }
@keyframes cap-sheen { 0% { opacity: 0; background-position: 130% 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes gate-spin { to { transform: rotate(360deg); } }

/* ---------- alt bilgi ---------- */
.gate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 14px var(--gx) clamp(16px, 3vh, 28px);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.gate__foot-l { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.gate__foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: color .25s, text-decoration-color .25s;
}
.gate__foot a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.gate__foot a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

/* ==========================================================================
   Duyarlı düzen
   ========================================================================== */

/* telefon */
@media (max-width: 640px) {
  :root { --lh: clamp(188px, 30vh, 270px); }
  @supports (height: 100svh) {
    :root { --lh: clamp(188px, 30svh, 270px); }
  }
  .gate__crew { height: 26px; }
  .gate__gv { height: 24px; }
  .gate__brand { gap: 10px; }
  .gate__date { font-size: 13px; }
  .gate__main { padding-top: clamp(18px, 3.4vh, 32px); padding-bottom: 8px; }
  .gate__lead { margin-top: 10px; font-size: 1rem; }
  .stage { margin: clamp(10px, 2.4vh, 24px) 0 clamp(14px, 2.6vh, 26px); }
  .lab__legend { gap: 4px 16px; font-size: 13px; }
  .lab__legend .lg-x { display: none; }
  .gate__form { max-width: none; }
  .gate__go { padding: 0 18px; }
  .gate__msg { min-height: 2.6em; font-size: 13.5px; }
  .gate__foot { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12.5px; }
  .gate__foot-l { gap: 0 16px; }
}
/* çok dar telefonlar (320–359 px) */
@media (max-width: 359px) {
  .field__n { display: none; }
  .gate__go { padding: 0 14px; font-size: 14px; }
  .lab__legend { font-size: 12px; gap: 4px 10px; }
}
/* kısa telefonlar (iPhone SE vb.) */
@media (max-width: 640px) and (max-height: 700px) {
  :root { --lh: clamp(160px, 27vh, 200px); }
  @supports (height: 100svh) {
    :root { --lh: clamp(160px, 27svh, 200px); }
  }
  .gate__top { padding-top: 14px; }
  .gate__main { padding-top: 14px; }
  .gate__title { font-size: clamp(2.2rem, 9.6vw, 2.6rem); }
  .stage { margin: 8px 0 12px; }
  .lab__legend { margin-top: 6px; }
  .gate__msg { min-height: 2.2em; margin-top: 8px; }
  .gate__foot { padding-top: 6px; padding-bottom: 14px; }
}

/* tablet ve dar masaüstü: tek sütun, ortalı */
@media (min-width: 641px) and (max-width: 960px) {
  :root { --lh: clamp(260px, 38vh, 400px); }
  @supports (height: 100svh) {
    :root { --lh: clamp(260px, 38svh, 400px); }
  }
  .gate__main { justify-items: center; text-align: center; max-width: 720px; }
  .gate__title { font-size: clamp(3.2rem, 8vw, 4.6rem); }
  .gate__lead { margin-left: auto; margin-right: auto; }
  .stage { width: 100%; margin: clamp(16px, 3vh, 32px) 0; }
  .field__top { text-align: left; }
  .gate__msg { text-align: left; }
  .gate__form { text-align: left; }
}

/* masaüstü: solda başlık + kod alanı, sağda sahne */
@media (min-width: 961px) {
  .gate__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". stage" "head stage" "form stage" ". stage";
    column-gap: clamp(40px, 6vw, 112px);
    align-content: stretch;
  }
  .gate__title { font-size: clamp(3.4rem, 6.1vw, 6.4rem); }
  .gate__lead { margin-top: clamp(16px, 2.6vh, 26px); font-size: clamp(1.0625rem, 1.25vw, 1.25rem); }
  .gate__form { margin-top: clamp(28px, 5vh, 52px); }
}
/* kısa masaüstü / dizüstü (1366×657, 1280×720 …): tek ekran, kaydırma yok */
@media (min-width: 961px) and (max-height: 760px) {
  :root { --lh: clamp(280px, 62vh, 460px); }
  @supports (height: 100svh) {
    :root { --lh: clamp(280px, 62svh, 460px); }
  }
  .gate__title { font-size: clamp(3.2rem, min(5.2vw, 9.4vh), 5.4rem); }
  .gate__main { padding-top: 8px; padding-bottom: 8px; }
  .gate__msg { min-height: 2.4em; }
  .gate__foot { padding-top: 8px; }
}
/* yatay telefon / çok basık pencereler */
@media (min-width: 641px) and (max-height: 520px) {
  :root { --lh: clamp(170px, 56vh, 260px); }
  .gate__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". stage" "head stage" "form stage" ". stage";
    column-gap: 4vw;
    justify-items: stretch;
    text-align: left;
    max-width: none;
  }
  .gate__title { font-size: clamp(2rem, 4.6vw, 2.8rem); }
  .gate__lead { margin-left: 0; font-size: 15px; }
  .gate__form { margin-top: 14px; }
  .stage { margin: 0; }
  .lab__legend { display: none; }
  .gate__msg { min-height: 2em; }
}
/* geniş ve yüksek ekranlar */
@media (min-width: 1600px) and (min-height: 1000px) {
  :root { --lh: clamp(420px, 56vh, 620px); }
  .gate__title { font-size: clamp(5.6rem, 5.2vw, 7rem); }
  .gate__form { max-width: 520px; }
}

/* ---------- hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .gate *, .gate *::before, .gate *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

@media print {
  .gate__fx, .gate__seal { display: none; }
}
