/*===============================================
  Mentis — Marka Lab (yalnızca /marka-lab)
  Sayfa çerçevesi mentis.css değişkenlerini kullanır; yalnızca üretilen pano
  kendi renklerini (--lab-c1..5, --lab-on1..5) ve yazı tiplerini (--lab-fh, --lab-fb) kullanır.
  1. Yerleşim
  2. Girdiler (koyu panel)
  3. Pano ve kutular
  4. Logo, palet, yazı tipleri, ses tonu
  5. Örnek uygulamalar
  6. Talep bandı ve form, nasıl çalışır
  7. Hareket (birleşme, karıştırma) ve azaltılmış hareket
===============================================*/

/*-----------------------------------------------
  1. Yerleşim
-----------------------------------------------*/
.m-lab-section {
  overflow-x: hidden;
  overflow-x: clip;
}

.m-lab [hidden] {
  display: none !important;
}

.m-lab fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.m-lab__layout {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}

@media (min-width: 1024px) {
  .m-lab__layout {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .m-lab__layout > .m-lab__controls {
    position: sticky;
    top: calc(var(--m-header-h) + 20px);
  }
}

/*-----------------------------------------------
  2. Girdiler
-----------------------------------------------*/
.m-lab__controls {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--m-r-lg);
  background: var(--m-black);
  color: var(--m-on-dark-2);
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.m-lab__controls::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 260px at 100% 0%, rgba(226, 6, 18, 0.22), transparent 70%);
}

.m-lab__ctitle {
  margin: 0;
  color: var(--m-white);
  font-size: var(--m-fs-h4);
  font-weight: 500;
  letter-spacing: var(--m-track);
}

.m-lab__group {
  display: grid;
  gap: 12px;
}

.m-lab__step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--m-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.m-lab__step > span {
  color: var(--m-red);
  font-variant-numeric: tabular-nums;
}

.m-lab__step small {
  margin-left: auto;
  color: var(--m-on-dark-3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.m-lab__name {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 2px solid var(--m-line-dark-strong);
  border-radius: 0;
  background: transparent;
  color: var(--m-white);
  font-family: var(--m-font);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: border-color var(--m-dur) var(--m-ease);
}

.m-lab__name::placeholder {
  color: var(--m-on-dark-3);
  opacity: 0.6;
}

.m-lab__name:focus {
  outline: none;
  border-bottom-color: var(--m-red);
}

.m-lab__name:focus-visible {
  outline: 2px solid var(--m-red);
  outline-offset: 4px;
}

.m-lab__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-lab__chip {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.m-lab__chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.m-lab__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--m-line-dark-strong);
  border-radius: var(--m-r-pill);
  color: var(--m-on-dark-2);
  font-size: 13.5px;
  line-height: 1.2;
  transition: background-color var(--m-dur) var(--m-ease), color var(--m-dur) var(--m-ease), border-color var(--m-dur) var(--m-ease), transform var(--m-dur) var(--m-ease-out);
}

.m-lab__chip:hover span {
  border-color: rgba(253, 253, 247, 0.5);
  color: var(--m-white);
}

.m-lab__chip input:checked + span {
  border-color: var(--m-white);
  background: var(--m-white);
  color: var(--m-black);
}

.m-lab__chip--mood input:checked + span {
  border-color: var(--m-red);
  background: var(--m-red);
  color: #fff;
}

.m-lab__chip input:focus-visible + span {
  outline: 2px solid var(--m-red);
  outline-offset: 2px;
}

.m-lab__chip input:active + span {
  transform: scale(0.96);
}

.m-lab__note {
  min-height: 1em;
  margin: 0;
  color: #ff8a8f;
  font-size: 13px;
}

.m-lab__note:empty {
  display: none;
}

.m-lab__actions {
  display: grid;
  gap: 12px;
}

.m-lab__shuffle {
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.m-lab__shuffle svg {
  transition: transform 0.6s var(--m-ease-out);
}

.m-lab__shuffle:hover svg {
  transform: rotate(180deg);
}

.m-lab__kbd {
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  font-family: var(--m-font);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.85;
}

@media (hover: none) {
  .m-lab__kbd {
    display: none;
  }
}

.m-lab__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m-lab__actions-row .m-btn {
  justify-content: center;
  gap: 8px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.m-lab__hint {
  margin: 0;
  color: var(--m-on-dark-3);
  font-size: 12.5px;
  line-height: 1.55;
}

.m-lab__hint svg {
  vertical-align: -1px;
}

/*-----------------------------------------------
  3. Pano
-----------------------------------------------*/
.m-lab__board {
  --lab-c1: #f4f1ea;
  --lab-c2: #141414;
  --lab-c3: #c2410c;
  --lab-c4: #e9b949;
  --lab-c5: #a3b8a0;
  --lab-fh: "Poppins";
  --lab-fb: "Poppins";
  --lab-fhw: 600;
  --lab-track: -0.02em;
  /* Sunum zemini: açık sunumda zemin + mürekkep, koyu sunumda tersi */
  --lab-pbg: var(--lab-c1);
  --lab-pfg: var(--lab-c2);
  --lab-btn: var(--lab-c3);
  --lab-btn-on: var(--lab-on3);
  /* Logo işaretinin renkleri (kapsayıcıya göre değişir) */
  --mk-p: var(--lab-c3);
  --mk-a: var(--lab-c4);
  --mk-b: var(--lab-pbg);
  --mk-i: var(--lab-c2);
  --mk-op: var(--lab-on3);
  --lab-morph: 0.7s;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  min-width: 0;
  outline: none;
}

.m-lab__board[data-dark="1"] {
  --lab-pbg: var(--lab-c2);
  --lab-pfg: var(--lab-c1);
  --lab-btn: var(--lab-c4);
  --lab-btn-on: var(--lab-on4);
}

/* Renk geçişleri: karıştırınca renkler bir sonrakine akar */
.m-lab__board *,
.m-lab__board *::before,
.m-lab__board *::after {
  transition-property: background-color, color, fill, stroke, border-color;
  transition-duration: var(--lab-morph);
  transition-timing-function: var(--m-ease-in-out);
}

.m-lab__tile {
  position: relative;
  grid-column: span 6;
  min-width: 0;
  margin: 0;
  border-radius: var(--m-r);
  overflow: hidden;
}

.m-lab__k {
  margin: 0;
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .m-lab__type { grid-column: span 4; }
  .m-lab__voice { grid-column: span 2; }
  .m-lab__web { grid-column: span 4; }
  .m-lab__ig { grid-column: span 2; }
  .m-lab__cards { grid-column: span 4; }
  .m-lab__poster { grid-column: span 2; }
}

/*-----------------------------------------------
  4. Logo, palet, yazı tipleri, ses tonu
-----------------------------------------------*/
.m-lab__lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  max-width: 100%;
  min-width: 0;
  color: var(--lab-pfg);
}

.m-lab__lockup[data-has-mark="0"] .m-lab__mark {
  display: none;
}

.m-lab__mark {
  display: block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  overflow: visible;
}

.m-lab__mark-letter {
  font-family: var(--lab-fh), var(--m-font);
  font-size: 54px;
  font-weight: var(--lab-fhw);
}

.m-lab__word {
  min-width: 0;
  overflow: hidden;
  font-family: var(--lab-fh), var(--m-font);
  font-weight: var(--lab-fhw);
  letter-spacing: var(--lab-track);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-lab__dot {
  color: var(--mk-a);
}

.m-lab__logo {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(280px, 30vw, 420px);
  padding: clamp(18px, 2vw, 28px);
  background: var(--lab-pbg);
  color: var(--lab-pfg);
}

.m-lab__board[data-dark="1"] .m-lab__logo {
  --mk-p: var(--lab-c1);
  --mk-b: var(--lab-c2);
  --mk-op: var(--lab-c2);
}

.m-lab__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--m-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.m-lab__logo-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 24px 0 12px;
  container-type: inline-size;
}

.m-lab__lockup--xl {
  font-size: clamp(2.4rem, 11cqi, 6.4rem);
}

.m-lab__logo-slogan {
  max-width: 44ch;
  margin: 0 auto;
  font-family: var(--lab-fb), var(--m-font);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.45;
  text-align: center;
  opacity: 0.82;
}

/* Palet */
.m-lab__palette {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--m-hair);
  background: var(--m-white);
  transition: none;
}

.m-lab__swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-lab__swatch {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  background: var(--sw);
  color: var(--sw-on);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 11, 0.08);
}

.m-lab__swatch-btn {
  display: grid;
  align-content: end;
  gap: 2px;
  width: 100%;
  min-height: clamp(150px, 15vw, 200px);
  padding: 14px 12px 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font-family: var(--m-font);
  text-align: left;
  cursor: pointer;
}

.m-lab__swatch-btn:focus-visible,
.m-lab__lock:focus-visible {
  outline: 2px solid var(--m-red);
  outline-offset: 3px;
}

.m-lab__swatch-role {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.m-lab__swatch-hex {
  font-size: clamp(0.92rem, 0.8rem + 0.4vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.m-lab__swatch-name {
  font-size: 13px;
  opacity: 0.85;
}

.m-lab__swatch-ratio {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.65;
}

.m-lab__swatch-btn::after {
  content: "Kopyalandı";
  position: absolute;
  left: 50%;
  top: 44%;
  padding: 4px 9px;
  border-radius: var(--m-r-pill);
  background: var(--sw-on);
  color: var(--sw);
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.m-lab__swatch-btn.is-copied::after {
  animation: m-lab-copied 1.4s var(--m-ease-out);
}

@keyframes m-lab-copied {
  0% { opacity: 0; transform: translate(-50%, 6px); }
  15%, 75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

.m-lab__lock {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--m-dur), background-color var(--m-dur), transform var(--m-dur) var(--m-ease-out);
}

.m-lab__lock:hover,
.m-lab__lock[aria-pressed="true"] {
  opacity: 1;
}

.m-lab__lock:hover {
  background: rgba(127, 127, 127, 0.18);
}

.m-lab__lock:active {
  transform: scale(0.9);
}

.m-lab__shackle {
  transform-origin: 11px 7px;
  transform: translateY(-1.5px) rotate(28deg);
  transition: transform 0.35s var(--m-ease-out);
}

.m-lab__lock[aria-pressed="true"] .m-lab__shackle {
  transform: none;
}

.m-lab__swatch.is-locked {
  box-shadow: inset 0 0 0 2px var(--sw-on);
}

/* Yazı tipleri */
.m-lab__type {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--m-hair);
  background: var(--m-white);
}

.m-lab__font {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: clamp(16px, 1.8vw, 24px);
  color: var(--m-text);
}

.m-lab__font + .m-lab__font {
  border-left: 1px solid var(--m-hair);
}

.m-lab__font.is-locked {
  background: var(--m-paper);
}

.m-lab__font-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.m-lab__lock--ink {
  position: static;
  color: var(--m-text);
}

.m-lab__aa {
  margin: 0;
  font-family: var(--lab-fh), var(--m-font);
  font-size: clamp(3.4rem, 2.4rem + 3vw, 5.6rem);
  font-weight: var(--lab-fhw);
  line-height: 1;
  letter-spacing: -0.02em;
}

.m-lab__aa span {
  margin-left: 0.18em;
  color: var(--lab-c3);
}

.m-lab__fname {
  margin: 0;
  color: var(--m-text);
  font-size: 15px;
  font-weight: 600;
}

.m-lab__flink {
  margin-left: 6px;
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.m-lab__flink:hover {
  color: var(--m-red);
}

.m-lab__hsample {
  margin: 0;
  font-family: var(--lab-fh), var(--m-font);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: var(--lab-fhw);
  line-height: 1.2;
}

.m-lab__bsample {
  margin: 4px 0 0;
  color: var(--m-text-2);
  font-family: var(--lab-fb), var(--m-font);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
}

/* Ses tonu */
.m-lab__voice {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(16px, 1.8vw, 24px);
  background: var(--lab-c5);
  color: var(--lab-on5);
}

.m-lab__voice .m-lab__k {
  color: inherit;
  opacity: 0.7;
}

.m-lab__tone {
  margin: 0;
  font-family: var(--lab-fh), var(--m-font);
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  font-weight: var(--lab-fhw);
  line-height: 1.15;
}

.m-lab__guide {
  margin: 0;
  font-family: var(--lab-fb), var(--m-font);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.88;
}

.m-lab__quote {
  margin: 8px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid currentColor;
  border-left: 0;
  font-family: var(--lab-fh), var(--m-font);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: var(--lab-fhw);
  line-height: 1.3;
}

.m-lab__quote p {
  margin: 0;
}

.m-lab__quote p::before { content: "“"; }
.m-lab__quote p::after { content: "”"; }

/*-----------------------------------------------
  5. Örnek uygulamalar
-----------------------------------------------*/
.m-lab__mock {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--m-hair);
  background: var(--m-paper-2);
}

.m-lab__mcap {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Web sitesi */
.m-lab-web {
  overflow: hidden;
  border-radius: 10px;
  background: var(--lab-pbg);
  box-shadow: var(--m-shadow);
  container-type: inline-size;
}

.m-lab-web__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #e7e6df;
}

.m-lab-web__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9c7bd;
}

.m-lab-web__url {
  flex: 1;
  max-width: 60%;
  margin-left: 10px;
  padding: 3px 10px;
  overflow: hidden;
  border-radius: var(--m-r-pill);
  background: #f6f5ef;
  color: #67665f;
  font-family: var(--m-font);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-lab-web__page {
  padding: 4cqi 5cqi 6cqi;
  color: var(--lab-pfg);
}

.m-lab-web__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7cqi;
}

.m-lab__lockup--sm {
  font-size: clamp(14px, 3.6cqi, 22px);
}

.m-lab-web__links {
  display: flex;
  gap: 2.6cqi;
  font-family: var(--lab-fb), var(--m-font);
  font-size: clamp(9px, 1.9cqi, 13px);
  opacity: 0.8;
}

.m-lab-web__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 4cqi;
}

.m-lab-web__eyebrow {
  margin: 0 0 1.6cqi;
  color: var(--lab-btn);
  font-family: var(--lab-fb), var(--m-font);
  font-size: clamp(9px, 1.8cqi, 12px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.m-lab-web__title {
  margin: 0 0 2.4cqi;
  font-family: var(--lab-fh), var(--m-font);
  font-size: clamp(18px, 5.4cqi, 44px);
  font-weight: var(--lab-fhw);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.m-lab-web__text {
  max-width: 36ch;
  margin: 0 0 3.6cqi;
  font-family: var(--lab-fb), var(--m-font);
  font-size: clamp(10px, 2cqi, 15px);
  line-height: 1.5;
  opacity: 0.75;
}

.m-lab-web__btn {
  display: inline-block;
  padding: 1.4cqi 3cqi;
  border-radius: var(--m-r-pill);
  background: var(--lab-btn);
  color: var(--lab-btn-on);
  font-family: var(--lab-fb), var(--m-font);
  font-size: clamp(10px, 1.9cqi, 14px);
  font-weight: 600;
}

.m-lab-web__art {
  width: 100%;
  height: auto;
  max-width: 260px;
  justify-self: end;
}

.m-lab__board[data-dark="1"] .m-lab-web {
  --mk-p: var(--lab-c1);
  --mk-b: var(--lab-c2);
  --mk-op: var(--lab-c2);
}

/* Instagram */
.m-lab-ig {
  align-self: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: #121214;
  box-shadow: var(--m-shadow);
}

.m-lab-ig__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-family: var(--m-font);
  font-size: 12.5px;
  font-weight: 600;
}

.m-lab-ig__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lab-c3);
  --mk-p: var(--lab-on3);
  --mk-a: var(--lab-on3);
  --mk-b: var(--lab-c3);
  --mk-op: var(--lab-c3);
}

.m-lab-ig__avatar .m-lab__mark {
  width: 16px;
  height: 16px;
}

.m-lab-ig__handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-lab-ig__more {
  margin-left: auto;
  opacity: 0.6;
}

.m-lab-ig__post {
  position: relative;
  display: grid;
  align-content: space-between;
  aspect-ratio: 1;
  padding: 9% 8%;
  overflow: hidden;
  background: var(--lab-c3);
  color: var(--lab-on3);
  container-type: inline-size;
  --mk-p: var(--lab-c4);
  --mk-a: var(--lab-on3);
  --mk-b: var(--lab-c3);
  --mk-op: var(--lab-c3);
}

.m-lab-ig__quote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--lab-fh), var(--m-font);
  font-size: clamp(16px, 9.5cqi, 34px);
  font-weight: var(--lab-fhw);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.m-lab-ig__mark {
  position: absolute;
  right: -12%;
  bottom: -12%;
  width: 62%;
  height: auto;
  opacity: 0.9;
}

.m-lab-ig__actions {
  display: flex;
  gap: 12px;
  padding: 10px 12px 12px;
}

/* Kartvizit */
.m-lab-cards {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 26vw, 300px);
  padding: 8% 6%;
  container-type: inline-size;
}

.m-lab-card {
  position: absolute;
  width: min(74%, 380px);
  aspect-ratio: 1.75;
  border-radius: 10px;
  box-shadow: 0 20px 40px -22px rgba(10, 10, 11, 0.5), 0 2px 6px rgba(10, 10, 11, 0.08);
}

.m-lab-card--back {
  display: grid;
  place-items: center;
  background: var(--lab-c3);
  transform: translate(9%, -10%) rotate(5deg);
  --mk-p: var(--lab-on3);
  --mk-a: var(--lab-c4);
  --mk-b: var(--lab-c3);
  --mk-op: var(--lab-c3);
}

.m-lab-card__mark {
  width: 28%;
  height: auto;
}

.m-lab-card--front {
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr auto;
  padding: 7% 7% 8%;
  background: var(--lab-c1);
  color: var(--lab-c2);
  transform: translate(-7%, 8%) rotate(-3deg);
  --mk-b: var(--lab-c1);
}

.m-lab-card--front::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6%;
  border-radius: 0 0 10px 10px;
  background: var(--lab-c3);
}

.m-lab__lockup--card {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--lab-c2);
  font-size: clamp(14px, 5.4cqi, 24px);
}

.m-lab-card__who,
.m-lab-card__contact {
  display: grid;
  gap: 2px;
  align-self: end;
  font-family: var(--lab-fb), var(--m-font);
  font-size: clamp(8px, 2.2cqi, 11.5px);
  line-height: 1.35;
}

.m-lab-card__name {
  font-size: 1.2em;
  font-weight: 600;
}

.m-lab-card__role {
  opacity: 0.7;
}

.m-lab-card__contact {
  text-align: right;
  opacity: 0.8;
}

/* Afiş */
.m-lab-poster {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  align-self: center;
  width: 100%;
  max-width: 260px;
  justify-self: center;
  aspect-ratio: 1 / 1.414;
  padding: 10%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--lab-c4);
  color: var(--lab-on4);
  box-shadow: var(--m-shadow);
  container-type: inline-size;
  --mk-p: var(--lab-on4);
  --mk-a: var(--lab-c3);
  --mk-b: var(--lab-c4);
  --mk-op: var(--lab-c4);
}

.m-lab-poster__mark {
  width: 78%;
  height: auto;
  align-self: center;
}

.m-lab-poster__kicker {
  margin: 0;
  font-family: var(--lab-fb), var(--m-font);
  font-size: 6cqi;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.m-lab-poster__word {
  margin: 2cqi 0 4cqi;
  overflow: hidden;
  font-family: var(--lab-fh), var(--m-font);
  font-size: 15cqi;
  font-weight: var(--lab-fhw);
  line-height: 1;
  letter-spacing: var(--lab-track);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-lab-poster__foot {
  margin: 0;
  padding-top: 3cqi;
  border-top: 1px solid currentColor;
  font-family: var(--lab-fb), var(--m-font);
  font-size: 5.4cqi;
}

/* Bildirim */
.m-lab__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: var(--m-z-float);
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: var(--m-r-pill);
  background: var(--m-black);
  color: var(--m-white);
  font-family: var(--m-font);
  font-size: 14px;
  box-shadow: var(--m-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s var(--m-ease), transform 0.3s var(--m-ease-out) !important;
}

.m-lab__toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.m-lab__toast:empty {
  display: none;
}

/*-----------------------------------------------
  Dar ekran
-----------------------------------------------*/
@media (max-width: 767px) {
  .m-lab__swatches {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .m-lab__swatch-btn {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
    min-height: 68px;
    padding: 12px 52px 12px 14px;
  }

  .m-lab__swatch-role {
    position: static;
    grid-row: 1;
    grid-column: 3;
  }

  .m-lab__swatch-hex {
    grid-row: 1;
    grid-column: 1;
  }

  .m-lab__swatch-name {
    grid-row: 1;
    grid-column: 2;
  }

  .m-lab__swatch-ratio {
    display: none;
  }

  .m-lab__lock {
    top: 50%;
    margin-top: -16px;
  }

  .m-lab__type {
    grid-template-columns: minmax(0, 1fr);
  }

  .m-lab__font + .m-lab__font {
    border-left: 0;
    border-top: 1px solid var(--m-hair);
  }

  .m-lab-web__links {
    display: none;
  }

  .m-lab-ig {
    width: 100%;
    max-width: 340px;
    justify-self: center;
  }
}

/*-----------------------------------------------
  6. Talep bandı ve form, nasıl çalışır
-----------------------------------------------*/
.m-lab__cta {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(26px, 4vw, 56px);
  overflow: hidden;
  border-radius: var(--m-r-lg);
  background: var(--m-black);
  color: var(--m-on-dark-2);
  isolation: isolate;
}

.m-lab__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(560px 320px at 100% 100%, rgba(226, 6, 18, 0.32), transparent 70%);
}

.m-lab__cta-title {
  max-width: 18ch;
  margin: 14px 0 12px;
  color: var(--m-white);
  font-size: var(--m-fs-h2);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--m-track-tight);
}

.m-lab__cta-text p:last-child {
  max-width: 56ch;
  margin: 0;
  font-size: var(--m-fs-md);
}

@media (min-width: 900px) {
  .m-lab__cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.m-lab__form {
  max-width: 860px;
  margin: clamp(16px, 2vw, 24px) auto 0;
  scroll-margin-top: calc(var(--m-header-h) + 24px);
}

.m-lab__senderror {
  display: block;
}

.m-lab__how {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--m-hair);
}

.m-lab__how h3 {
  margin: 0 0 8px;
  color: var(--m-heading);
  font-size: var(--m-fs-h5);
  font-weight: 500;
  letter-spacing: var(--m-track);
}

.m-lab__how p {
  margin: 0;
  color: var(--m-body);
  font-size: 15px;
}

.m-lab__how .m-lab__how-num {
  margin-bottom: 10px;
  color: var(--m-red);
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .m-lab__how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/*-----------------------------------------------
  7. Hareket
-----------------------------------------------*/
/* İlk açılış: kutular sırayla yerine oturur (yalnız JS açıkken) */
.m-lab__board.is-assembling .m-lab__tile {
  animation: m-lab-in 0.9s var(--m-ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes m-lab-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Karıştırma: kutular hafifçe nefes alır, işaret döner */
.m-lab__board.is-shuffling .m-lab__tile {
  animation: m-lab-shuffle 0.7s var(--m-ease-out) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes m-lab-shuffle {
  0% { transform: none; }
  35% { transform: scale(0.985); }
  100% { transform: none; }
}

.m-lab__board.is-shuffling .m-lab__logo .m-lab__mark {
  animation: m-lab-spin 0.8s var(--m-ease-out);
}

@keyframes m-lab-spin {
  from { transform: rotate(-90deg) scale(0.6); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}

.is-pulse {
  animation: m-lab-pulse 0.6s var(--m-ease-out);
}

@keyframes m-lab-pulse {
  0% { transform: none; }
  40% { transform: translateY(-4px); }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-lab__board *,
  .m-lab__board *::before,
  .m-lab__board *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .m-lab__board.is-assembling .m-lab__tile,
  .m-lab__board.is-shuffling .m-lab__tile,
  .is-pulse {
    animation: none !important;
  }

  .m-lab__shackle,
  .m-lab__shuffle svg {
    transition: none;
  }
}
