/* =========================================================
   PROJELER — "Grafik Animasyon masası"
   Hero (zıplayan top + klaket), film şeritleri, mantar pano,
   flipbook (odak anı), yığılan sahneler, masa, kod projeleri, modal.
   Önek: .work-
   ========================================================= */

:root {
  --work-cork: #c99c68;
  --work-cork-dot: rgba(110, 70, 30, 0.28);
  --work-cork-dot-2: rgba(255, 240, 210, 0.22);
  --work-frame: #8a5a33;
  --work-frame-dark: #5f3b1f;
  --work-sheet: #fbfaf6;
  --work-sheet-line: rgba(107, 122, 58, 0.16);
  --work-desk: #f1e6cc;
  --work-desk-grid: rgba(22, 23, 20, 0.07);
  --work-stain: rgba(140, 90, 40, 0.22);
  --work-film: #1d1e1a;
  --work-rust-ink: #a8411a;   /* kağıt üstünde okunur pas */
  --work-khaki-ink: #56622c;  /* kağıt üstünde okunur haki */
}

[data-theme="dark"] {
  --work-cork: #7d5d3c;
  --work-cork-dot: rgba(30, 18, 6, 0.4);
  --work-cork-dot-2: rgba(255, 230, 190, 0.1);
  --work-frame: #4e3219;
  --work-frame-dark: #2f1d0d;
  --work-desk: #24261f;
  --work-desk-grid: rgba(242, 240, 234, 0.06);
  --work-stain: rgba(255, 210, 160, 0.12);
  --work-film: #0b0b0a;
}

main section,
.work-tapes {
  overflow-x: clip;
}

/* ---------- ortak bölüm başlığı (kicker yok: başlık + kenar notu) ---------- */
.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 28px;
}

.work-head h2 {
  grid-column: 1;
}

.work-head__note {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  white-space: nowrap;
}

.work-head__lead,
.work-play__lead,
.work-code__lead {
  grid-column: 1 / -1;
  max-width: 60ch;
  margin-top: 10px;
}

.work-head--center {
  display: block;
}

/* ---------- 1. HERO ---------- */
.work-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 90px;
  overflow: clip;
}

.work-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.work-hi {
  position: absolute;
  left: var(--x);
  top: var(--y);
  will-change: transform;
}

.work-hi__in {
  display: inline-block;
  position: relative;
}

/* onion-skin yıldız: arkasında bir önceki karesi */
.work-hi__ghost {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  transform: translate(-16px, 8px) rotate(-14deg);
}

.work-hi__scrap {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  padding: 18px 18px 14px;
  white-space: nowrap;
  line-height: 1;
}

.work-hi__pin {
  width: 22px;
  height: 22px;
}

.work-hi__pin .pin {
  top: 0;
}

.work-hi__pin--khaki .pin {
  background: radial-gradient(circle at 35% 35%, #cdd5a6, #6b7a3a 45%, #3c4520);
}

.work-hi__pin--olive .pin {
  background: radial-gradient(circle at 35% 35%, #f0deb0, #d4a84f 45%, #8a6a24);
}

.work-hi__stain {
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50% 47% 52% 49%;
  border: 9px solid var(--work-stain);
  box-shadow: inset 0 0 0 3px var(--work-stain), 6px 4px 0 -2px var(--work-stain);
  opacity: 0.9;
}

.work-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 88%);
}

.work-hero__titlewrap {
  position: relative;
}

.work-hero__title {
  font-size: clamp(3.1rem, 8.4vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  max-width: 11ch;
  text-wrap: balance;
}

.work-hero__title .split-char {
  transform-origin: 50% 85%;
}

/* zıplayan top */
.work-ball {
  --ball: clamp(30px, 4.2vw, 54px);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ball);
  height: var(--ball);
  padding: 0;
  border-radius: 50%;
  z-index: 3;
  transform-origin: 50% 100%;
  will-change: transform;
}

.work-ball[hidden] {
  display: none;
}

.work-ball svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.work-ball__body {
  fill: var(--yellow);
  stroke: #161714;
  stroke-width: 3;
}

[data-theme="dark"] .work-ball__body {
  stroke: #f2f0ea;
}

.work-ball__stripe {
  fill: none;
  stroke: #161714;
  stroke-width: 3;
  stroke-linecap: round;
}

.work-ball__shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.work-hero__sub {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 10px 0 0 clamp(20px, 20vw, 320px);
}

.work-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(26px, 4vw, 48px);
}

.work-hero__lead {
  max-width: 54ch;
  flex: 1 1 340px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.work-hero__lead strong {
  color: var(--ink);
}

/* klaket */
.work-slate-wrap {
  flex: 0 1 340px;
  min-width: 0;
  padding-top: 44px;
}

.work-slate {
  position: relative;
  color: #f2f0ea;
  background: var(--work-film);
  border: var(--stroke) solid #161714;
  border-radius: 4px 6px 10px 6px;
  box-shadow: var(--shadow-hard);
  transform: rotate(-2deg);
  padding-bottom: 12px;
}

.work-slate__stripes {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-58deg, #f2f0ea 0 18px, #161714 18px 36px);
}

.work-slate__clap {
  position: absolute;
  left: calc(-1 * var(--stroke));
  right: calc(-1 * var(--stroke));
  bottom: calc(100% + 3px);
  display: block;
  height: 34px;
  padding: 0;
  background: var(--work-film);
  border: var(--stroke) solid #161714;
  border-radius: 4px 6px 2px 2px;
  transform-origin: 3% 100%;
  transform: rotate(-16deg);
  overflow: hidden;
  cursor: pointer;
}

.work-slate__clap .work-slate__stripes {
  background: repeating-linear-gradient(58deg, #f2f0ea 0 18px, #161714 18px 36px);
}

.work-slate__clap:focus-visible {
  outline-offset: 6px;
}

.work-slate__bar {
  position: relative;
  height: 26px;
  margin: 0 0 4px;
  border-bottom: var(--stroke) solid #161714;
  overflow: hidden;
}

.work-slate__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px;
}

.work-slate__cell {
  padding: 8px 6px 4px;
  border-top: 1.5px solid rgba(242, 240, 234, 0.3);
  min-width: 0;
}

.work-slate__cell + .work-slate__cell:not(.work-slate__cell--wide) {
  border-left: 1.5px solid rgba(242, 240, 234, 0.3);
}

.work-slate__cell--wide {
  grid-column: 1 / -1;
}

.work-slate__cell:last-child {
  grid-column: 1 / -1;
  border-left: 0 !important;
}

.work-slate dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 240, 234, 0.62);
  line-height: 1.2;
}

.work-slate dd {
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: #f2f0ea;
}

.work-slate__cell--wide dd {
  color: #e2c27c;
}

#workCount {
  display: inline-block;
  min-width: 1ch;
}

.work-slate dd.work-slate__small {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
  color: rgba(242, 240, 234, 0.86);
}

.work-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(30px, 5vw, 56px);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.work-hero__scroll .doodle {
  animation: work-bob 1.8s ease-in-out infinite;
}

@keyframes work-bob {
  50% { transform: translateY(8px); }
}

/* ---------- film şeritleri ---------- */
.work-tapes {
  position: relative;
  height: 170px;
  margin: -40px 0 -20px;
  overflow: clip;
  pointer-events: none;
}

.work-tape {
  position: absolute;
  left: -10%;
  width: 120%;
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.4);
}

/* 35mm film: delikli kenarlar */
.work-tape--a {
  top: 22px;
  padding: 22px 0 18px;
  color: #e9dcb5;
  background: var(--work-film);
  transform: rotate(-3deg);
}

.work-tape--a::before,
.work-tape--a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #e9dcb5 0 12px, transparent 12px 26px);
  border-radius: 2px;
  opacity: 0.85;
}

.work-tape--a::before { top: 6px; }
.work-tape--a::after { bottom: 6px; }

/* kum rengi maskeleme bandı */
.work-tape--b {
  top: 96px;
  padding: 10px 0 8px;
  color: #161714;
  background: color-mix(in srgb, #d4a84f 84%, transparent);
  border-top: 2px dashed rgba(22, 23, 20, 0.25);
  border-bottom: 2px dashed rgba(22, 23, 20, 0.25);
  transform: rotate(2deg);
}

.work-tape__track {
  display: inline-block;
  will-change: transform;
}

/* ---------- 2. FİLTRE + PANO ---------- */
.work-board-sec {
  padding-top: clamp(70px, 9vw, 120px);
}

.no-js .work-filter {
  display: none;
}

.work-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 0 clamp(8px, 3vw, 40px);
  position: relative;
  z-index: 2;
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 6px;
}

/* defter ayracı */
.work-tab {
  position: relative;
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
  color: #161714;
  background: var(--tab);
  padding: 12px clamp(12px, 1.8vw, 22px) 18px;
  border: var(--stroke) solid #161714;
  border-bottom: 0;
  border-radius: 16px 22px 0 0 / 18px 14px 0 0;
  box-shadow: 3px -2px 0 rgba(22, 23, 20, 0.18);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-bounce), filter 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.work-tab:nth-child(2) { border-radius: 22px 14px 0 0 / 14px 20px 0 0; }
.work-tab:nth-child(3) { border-radius: 14px 20px 0 0 / 20px 12px 0 0; }
.work-tab:nth-child(4) { border-radius: 20px 16px 0 0 / 12px 18px 0 0; }

.work-tab:hover {
  transform: translateY(2px) rotate(-1.5deg);
}

.work-tab.is-active {
  transform: translateY(-4px);
  z-index: 1;
}

.work-tab__n {
  font-size: 0.75em;
  min-width: 1.6em;
  height: 1.6em;
  display: inline-grid;
  place-items: center;
  border: 2px solid #161714;
  border-radius: 50% 45% 55% 48% / 48% 55% 45% 52%;
  background: rgba(255, 255, 255, 0.6);
}

.work-tab__label {
  position: relative;
  display: inline-block;
}

.work-tab__circle {
  position: absolute;
  inset: -40% -22%;
  width: 144%;
  height: 180%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}

.work-tab__circle path {
  fill: none;
  stroke: var(--work-rust-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease-out);
}

.work-tab:not(.is-active) .work-tab__circle path {
  opacity: 0;
  transition: stroke-dashoffset 0.7s var(--ease-out), opacity 0s 0.7s;
}

.work-tab.is-active .work-tab__circle path {
  stroke-dashoffset: 0;
}

.work-result {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pink);
  transform: rotate(-2deg);
  padding-bottom: 10px;
}

/* mantar pano */
.work-board {
  position: relative;
  padding: clamp(40px, 5vw, 64px) clamp(16px, 3.5vw, 54px) clamp(44px, 5vw, 70px);
  background-color: var(--work-cork);
  background-image:
    radial-gradient(var(--work-cork-dot) 1.2px, transparent 1.6px),
    radial-gradient(var(--work-cork-dot-2) 1px, transparent 1.4px),
    radial-gradient(var(--work-cork-dot) 0.8px, transparent 1.2px);
  background-size: 9px 11px, 13px 7px, 5px 6px;
  background-position: 0 0, 4px 3px, 2px 5px;
  border: clamp(10px, 1.6vw, 16px) solid var(--work-frame);
  border-radius: 10px 14px 12px 8px;
  box-shadow:
    inset 0 0 0 2px var(--work-frame-dark),
    inset 0 10px 24px rgba(0, 0, 0, 0.25),
    8px 10px 0 rgba(22, 23, 20, 0.85);
  transition: background-color 0.6s ease;
}

[data-theme="dark"] .work-board {
  box-shadow:
    inset 0 0 0 2px var(--work-frame-dark),
    inset 0 10px 24px rgba(0, 0, 0, 0.35),
    8px 10px 0 rgba(226, 194, 124, 0.18);
}

.work-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 56px) clamp(20px, 3vw, 40px);
  min-height: 420px;
  align-items: start;
}

.work-pin {
  position: relative;
}

.work-pin[hidden] {
  display: none !important;
}

.work-pin.is-leaving {
  z-index: 5;
  pointer-events: none;
}

/* kart: iğnelenmiş defter yaprağı */
.work-card {
  --r: -2deg;
  position: relative;
  color: #161714;
  background-color: var(--work-sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, var(--work-sheet-line) 27px 29px);
  background-position: 0 6px;
  padding: 16px 16px 20px;
  border-radius: 3px 3px 22px 3px / 3px 3px 12px 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 16px 26px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--r));
  transition: transform 0.45s var(--ease-bounce), box-shadow 0.35s ease;
}

.work-card:hover,
.work-card:has(.work-card__open:focus-visible) {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12), 0 30px 40px -16px rgba(0, 0, 0, 0.55);
}

.work-card:has(.work-card__open:focus-visible) {
  outline: 3px dashed var(--pink);
  outline-offset: 6px;
}

.work-card .pin {
  top: -12px;
  z-index: 4;
}

.work-card__crease {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 30%, rgba(0, 0, 0, 0.16) 31%, transparent 34%),
    linear-gradient(60deg, transparent 52%, rgba(0, 0, 0, 0.14) 53%, transparent 57%),
    linear-gradient(160deg, transparent 64%, rgba(0, 0, 0, 0.12) 65%, transparent 68%),
    radial-gradient(circle at 40% 45%, rgba(0, 0, 0, 0.1), transparent 60%);
}

/* görsel + onion skin hayaletleri */
.work-shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.work-shot img,
.work-modal__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #161714;
  border-radius: 8px 12px 6px 14px / 12px 6px 14px 8px;
  background: #e9e4d4;
}

.work-shot__ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px 12px 6px 14px / 12px 6px 14px 8px;
  background-color: #d8d2c0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-bounce), opacity 0.3s ease;
}

.work-shot__ghost--past {
  box-shadow: inset 0 0 0 999px rgba(196, 80, 31, 0.5);
}

.work-shot__ghost--next {
  box-shadow: inset 0 0 0 999px rgba(107, 122, 58, 0.5);
}

.work-card:hover .work-shot__ghost--past,
.work-card:has(.work-card__open:focus-visible) .work-shot__ghost--past {
  opacity: 0.7;
  transform: translate(-12px, -6px) rotate(-3deg);
}

.work-card:hover .work-shot__ghost--next,
.work-card:has(.work-card__open:focus-visible) .work-shot__ghost--next {
  opacity: 0.6;
  transform: translate(12px, 6px) rotate(2.5deg);
}

.work-card:hover .work-shot img {
  animation: work-boil 0.42s steps(1) infinite;
}

@keyframes work-boil {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px) rotate(0.35deg); }
  50% { transform: translate(-1px, 0) rotate(-0.2deg); }
  75% { transform: translate(0, 1px) rotate(0.25deg); }
}

.work-shot__no {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: #f2f0ea;
  background: #161714;
  padding: 3px 9px 2px;
  border-radius: 4px 7px 4px 6px;
}

.work-shot__doodle {
  position: absolute;
  right: -16px;
  bottom: -18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  overflow: visible;
  transition: transform 0.45s var(--ease-bounce);
}

.work-shot__doodle path {
  fill: none;
  stroke: var(--work-rust-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-card:hover .work-shot__doodle {
  transform: rotate(-18deg) scale(1.15);
}

.work-card__body {
  padding-top: 16px;
}

.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: rgba(22, 23, 20, 0.72);
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
}

.work-chip {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: #161714;
  padding: 1px 12px;
  border: 2px solid #161714;
  border-radius: var(--wobble-2);
  background: var(--chip, #e9dcb5);
  transform: rotate(-2deg);
}

.work-card__title {
  font-size: clamp(1.75rem, 2.3vw, 2.1rem);
  margin: 8px 0 4px;
  line-height: 1;
}

.work-card__open {
  text-align: left;
  font: inherit;
  color: inherit;
  line-height: inherit;
}

.work-card__open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.work-card__open:focus-visible {
  outline: none;
}

.work-card__desc {
  color: rgba(22, 23, 20, 0.78);
  font-size: 1rem;
  line-height: 1.5;
}

.work-card__tool {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--work-khaki-ink);
  line-height: 1.1;
}

.work-card__tool .doodle,
.work-page__role .doodle {
  --size: 20px;
  --c: currentColor;
  flex: none;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.work-tags li {
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 2px 9px;
  border: 1.5px dashed rgba(22, 23, 20, 0.45);
  border-radius: 999px 900px 980px 950px;
  color: #161714;
}

/* ---------- 3. FLIPBOOK ---------- */
.work-flip {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 130px) 0;
}

.work-flip__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.work-flip__title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.work-flip__lead {
  max-width: 48ch;
  margin-top: 16px;
}

.work-flip__lead em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.work-flip__past {
  color: var(--pink);
  font-weight: 700;
}

.work-flip__next {
  color: var(--blue);
  font-weight: 700;
}

.work-flip__readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--wobble-2);
  box-shadow: var(--shadow-hard-sm);
  transition: background-color 0.6s ease;
}

.work-flip__readout dt {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}

.work-flip__readout dd {
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}

.work-flip__readout [data-f="no"] {
  display: inline-block;
  min-width: 1.6ch;
}

.work-flip__principle {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 2px dashed var(--ink-faint);
}

.work-flip__principle dd {
  color: var(--pink);
  white-space: normal;
}

.work-flip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.work-flip__actions .btn {
  font-size: 1.5rem;
  padding: 12px 22px 10px;
}

.work-flip__onion[hidden] {
  display: none;
}

.work-flip__state {
  font-size: 0.8em;
  padding: 1px 9px 0;
  border: 2px solid currentColor;
  border-radius: var(--wobble);
}

.work-flip__onion[aria-pressed="true"] .work-flip__state {
  background: var(--pink);
  color: #161714;
  border-color: #161714;
}

.work-flip__stage {
  position: relative;
  min-width: 0;
}

.work-flip__pad {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1700px;
  perspective-origin: 50% -20%;
  margin-top: 18px;
}

/* sayfa yığınının kalınlığı */
.work-flip__pages {
  position: absolute;
  inset: 0;
  border-radius: 4px 4px 12px 8px;
  box-shadow:
    3px 5px 0 -1px #eeeadf, 3px 5px 0 1px #161714,
    6px 10px 0 -1px #e7e2d3, 6px 10px 0 1px #161714,
    9px 15px 0 -1px #dfd9c7, 9px 15px 0 1px #161714,
    14px 24px 24px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

[data-theme="dark"] .work-flip__pages {
  box-shadow:
    3px 5px 0 -1px #d9d3c1, 3px 5px 0 1px #0b0b0a,
    6px 10px 0 -1px #c9c2ae, 6px 10px 0 1px #0b0b0a,
    9px 15px 0 -1px #b8b09a, 9px 15px 0 1px #0b0b0a,
    14px 24px 24px rgba(0, 0, 0, 0.5);
}

.work-flip__page,
.work-flip__strobe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #fbfaf6;
  background-image: repeating-linear-gradient(to bottom, transparent 0 29px, rgba(107, 122, 58, 0.14) 29px 31px);
  border: var(--stroke) solid #161714;
  border-radius: 4px 4px 12px 8px;
}

.work-flip__page {
  transform-origin: 50% 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.work-flip__page svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.work-flip__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22, 23, 20, 0) 30%, rgba(22, 23, 20, 0.32));
  opacity: 0;
  pointer-events: none;
}

.work-flip__rings {
  position: absolute;
  top: -15px;
  left: 6%;
  right: 6%;
  height: 30px;
  z-index: 60;
  background: radial-gradient(circle at 50% 50%, transparent 5px, #161714 5.5px 8px, transparent 8.5px) repeat-x;
  background-size: 32px 30px;
  pointer-events: none;
}

[data-theme="dark"] .work-flip__rings {
  background-image: radial-gradient(circle at 50% 50%, transparent 5px, #b9b6aa 5.5px 8px, transparent 8.5px);
}

/* flipbook çizimleri */
.work-flip svg .g {
  fill: none;
  stroke: rgba(22, 23, 20, 0.28);
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
}

.work-flip svg .k {
  fill: none;
  stroke: #161714;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.work-flip svg .sh {
  fill: rgba(22, 23, 20, 0.16);
}

.work-flip svg .op,
.work-flip svg .of {
  stroke-width: 2;
  transition: opacity 0.35s ease;
}

.work-flip svg .op {
  fill: rgba(196, 80, 31, 0.14);
  stroke: #c4501f;
}

.work-flip svg .of {
  fill: rgba(107, 122, 58, 0.14);
  stroke: #6b7a3a;
}

.work-flip__pad:not(.is-onion) .op,
.work-flip__pad:not(.is-onion) .of {
  opacity: 0 !important;
}

.work-flip svg .bb {
  fill: #d4a84f;
  stroke: #161714;
  stroke-width: 2.5;
}

.work-flip svg .bs {
  fill: none;
  stroke: #161714;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.work-flip svg .a {
  fill: none;
  stroke: #a8411a;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.work-flip svg .no {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  fill: #161714;
}

.work-flip svg .lbl {
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  fill: #a8411a;
}

.work-flip svg .sb {
  fill: none;
  stroke: rgba(22, 23, 20, 0.5);
  stroke-width: 1.6;
}

.work-flip svg .sb--k {
  fill: #d4a84f;
  stroke: #161714;
  stroke-width: 2;
}

/* zaman çizelgesi */
.work-flip__timeline {
  position: relative;
  margin-top: 40px;
}

.work-flip__ticks {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
}

.work-flip__ticks li {
  position: relative;
  height: 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px 4px 3px 5px;
  transition: background-color 0.15s ease;
}

.work-flip__ticks li.is-key::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--pink);
  border: 1.5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

.work-flip__ticks li.is-past {
  background: color-mix(in srgb, var(--yellow) 32%, var(--paper));
}

.work-flip__ticks li.is-on {
  background: var(--yellow);
}

.work-flip__head {
  position: absolute;
  inset: -8px 0;
  pointer-events: none;
  transform: translateX(calc(var(--p, 0.03125) * 100%));
}

.work-flip__head span {
  position: absolute;
  left: -1.5px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pink);
  border-radius: 2px;
}

.work-flip__head span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 14px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--pink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.work-flip__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.work-flip__key {
  width: 10px;
  height: 10px;
  background: var(--pink);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

.no-js .work-flip__timeline,
.no-js .work-flip__legend {
  display: none;
}

/* ---------- 4. YIĞILAN SAYFALAR ---------- */
.work-stack-sec {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
}

.work-stack__hint {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-soft);
}

.work-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 18vh, 200px);
}

.work-stack__item {
  position: relative;
}

.work-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  height: clamp(480px, calc(100vh - var(--nav-h) - 110px), 640px);
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px) clamp(60px, 6vw, 90px);
  color: #161714;
  background-color: var(--work-sheet);
  background-image:
    radial-gradient(circle at 26px 50%, #161714 0 7px, transparent 7.5px),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--work-sheet-line) 33px 35px);
  background-size: 52px 46px, 100% 100%;
  background-repeat: repeat-y, repeat;
  border: var(--stroke) solid #161714;
  border-radius: 6px 18px 14px 6px / 6px 12px 18px 6px;
  box-shadow: 8px 10px 0 rgba(22, 23, 20, 0.9);
  transform-origin: 50% 0%;
}

[data-theme="dark"] .work-page {
  box-shadow: 8px 10px 0 rgba(226, 194, 124, 0.2);
}

.work-page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(48px, 5vw, 72px);
  width: 2px;
  background: rgba(196, 80, 31, 0.55);
}

.work-page__shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #161714;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.work-page__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.work-page__no {
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--work-rust-ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-page__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 6px 0 12px;
  line-height: 0.95;
}

.work-page__desc {
  color: rgba(22, 23, 20, 0.8);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.55;
  max-width: 50ch;
}

.work-page__role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--work-khaki-ink);
}

.work-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 20px;
  align-items: center;
}

.work-page__actions .btn {
  font-size: 1.45rem;
  padding: 11px 22px 9px;
}

/* film karesi çerçevesi */
.work-page__art {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 22px 10px;
  background: var(--work-film);
  border-radius: 6px 8px 5px 9px;
  transform: rotate(2deg);
  box-shadow: 6px 7px 0 rgba(22, 23, 20, 0.85);
}

.work-page__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.work-page__art .tape {
  top: -14px;
}

.work-film::before,
.work-film::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 8px;
  background: repeating-linear-gradient(90deg, #e9dcb5 0 12px, transparent 12px 24px);
  border-radius: 2px;
  opacity: 0.8;
}

.work-film::before { top: 7px; }
.work-film::after { bottom: 7px; }

/* ---------- 5. OYUN ALANI ---------- */
.work-desk {
  position: relative;
  height: clamp(480px, 70vh, 620px);
  background-color: var(--work-desk);
  background-image:
    linear-gradient(var(--work-desk-grid) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--work-desk-grid) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--wobble-3);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y;
  transition: background-color 0.6s ease;
}

.work-desk__notes {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-note {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(118px, 15vw, 172px);
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.work-note.is-dragging {
  cursor: grabbing;
}

.work-note .sticky {
  width: 100%;
  height: 100%;
  padding: 26px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.05;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-bounce);
}

.work-note .sticky:hover {
  transform: none;
}

.work-note.is-dragging .sticky {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 30px 40px -12px rgba(0, 0, 0, 0.45);
}

.work-note .tape {
  width: 64px;
  height: 22px;
  top: -9px;
}

.work-desk__hint {
  position: absolute;
  right: 22px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
  transform: rotate(-4deg);
  pointer-events: none;
}

.work-desk__hint .doodle {
  transform: scaleX(-1) rotate(30deg);
}

.work-desk__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- 6. KOD PROJELERİ ---------- */
.work-code {
  padding-top: clamp(40px, 6vw, 80px);
}

.work-code__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.work-code__card {
  position: relative;
  height: 100%;
  padding: 16px 18px 16px;
  color: #161714;
  background-color: var(--work-sheet);
  background-image:
    linear-gradient(to bottom, transparent 50px, rgba(196, 80, 31, 0.55) 50px 52px, transparent 52px),
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(107, 122, 58, 0.15) 25px 26px);
  background-position: 0 0, 0 52px;
  border: 2px solid #161714;
  border-radius: 3px 5px 4px 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 12px 20px -10px rgba(0, 0, 0, 0.4);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.3s ease;
}

.work-code__item:hover .work-code__card {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 20px 28px -12px rgba(0, 0, 0, 0.45);
}

.work-code__card h3 {
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  line-height: 1.05;
  min-height: 34px;
  margin-bottom: 14px;
}

.work-code__card p {
  color: rgba(22, 23, 20, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.work-code__card .work-code__tech {
  margin-top: 8px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--work-rust-ink);
}

/* ---------- 7. CTA ---------- */
.work-cta {
  overflow: clip;
  padding-top: clamp(30px, 5vw, 70px);
}

.work-cta__path {
  position: absolute;
  left: 0;
  top: 20px;
  width: 100%;
  height: 320px;
  overflow: visible;
  pointer-events: none;
}

.work-cta__path path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

.work-cta__plane {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  will-change: transform;
}

.work-cta__plane .doodle {
  display: block;
}

.work-cta__card {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 140px auto 0;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px);
  text-align: center;
}

.work-cta__title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin: 0 0 18px;
  text-wrap: balance;
}

.work-cta__text {
  max-width: 560px;
  margin: 0 auto;
}

.work-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- 8. MODAL ---------- */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 40px);
}

.work-modal[hidden] {
  display: none;
}

.work-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 12, 0.68);
  backdrop-filter: blur(3px);
}

.work-modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #161714;
  background-color: var(--work-sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--work-sheet-line) 33px 35px);
  border: var(--stroke) solid #161714;
  border-radius: 8px 20px 14px 10px / 10px 14px 20px 8px;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.55);
  padding: clamp(22px, 4vw, 46px);
  scrollbar-color: #a8411a transparent;
  scrollbar-width: thin;
}

.work-modal__close {
  position: sticky;
  top: 0;
  margin: -8px -8px -40px auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #e9dcb5;
  border: var(--stroke) solid #161714;
  border-radius: var(--wobble-2);
  box-shadow: 3px 4px 0 #161714;
  z-index: 6;
  transition: transform 0.35s var(--ease-bounce);
}

.work-modal__close:hover {
  transform: rotate(90deg) scale(1.08);
}

.work-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.work-modal__media {
  position: sticky;
  top: 0;
}

.work-modal__art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  transform: rotate(-1.5deg);
}

.work-modal__img {
  box-shadow: 6px 7px 0 rgba(22, 23, 20, 0.85);
}

.work-modal__art .tape {
  z-index: 3;
}

.work-modal.is-onion .work-shot__ghost--past {
  opacity: 0.75;
  transform: translate(-20px, -10px) rotate(-3.5deg);
}

.work-modal.is-onion .work-shot__ghost--next {
  opacity: 0.65;
  transform: translate(20px, 10px) rotate(3deg);
}

.work-modal__onion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 6px 14px 4px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: #161714;
  background: #fbfaf6;
  border: 2px solid #161714;
  border-radius: var(--wobble);
  transition: transform 0.35s var(--ease-bounce), background-color 0.2s ease;
}

.work-modal__onion .doodle {
  --size: 22px;
  --c: #161714;
}

.work-modal__onion[aria-pressed="true"] {
  background: #e8c4ad;
}

.work-modal__onion:hover {
  transform: rotate(-2deg) scale(1.04);
}

.work-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(22, 23, 20, 0.72);
  padding-right: 52px;
}

.work-modal__meta .doodle {
  --size: 20px;
  --c: currentColor;
  vertical-align: -3px;
  margin-right: 4px;
}

.work-modal__title {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  margin: 10px 0 8px;
  line-height: 0.95;
}

.work-modal__desc {
  color: rgba(22, 23, 20, 0.82);
  line-height: 1.6;
}

.work-modal__h {
  font-size: 1.85rem;
  margin: 24px 0 8px;
}

.work-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-modal__tags .work-chip:nth-child(2n) { transform: rotate(2deg); }

.work-modal__learn li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 0;
  color: rgba(22, 23, 20, 0.86);
  line-height: 1.45;
}

.work-modal__check {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  overflow: visible;
}

.work-modal__check .box {
  fill: none;
  stroke: #161714;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-modal__check .tick {
  fill: none;
  stroke: var(--work-rust-ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 2px dashed rgba(22, 23, 20, 0.3);
}

.work-modal__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: #161714;
  transition: transform 0.35s var(--ease-bounce), color 0.2s ease;
}

.work-modal__step .doodle {
  --size: 26px;
  --c: currentColor;
}

.work-modal__step[data-step="-1"] .doodle {
  transform: scaleX(-1);
}

.work-modal__step:hover {
  color: var(--work-rust-ink);
}

.work-modal__step[data-step="-1"]:hover {
  transform: translateX(-4px);
}

.work-modal__step[data-step="1"]:hover {
  transform: translateX(4px);
}

.work-modal__count {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(22, 23, 20, 0.6);
}

html.work-modal-open .cursor {
  z-index: 10001;
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-code__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .work-page {
    grid-template-columns: 1fr;
    height: auto;
    align-items: start;
  }

  .work-page__art {
    order: -1;
    max-width: 460px;
  }

  .work-flip {
    min-height: 0;
  }

  .work-flip__grid {
    grid-template-columns: 1fr;
  }

  .work-flip__stage {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .work-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-head__note {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    white-space: normal;
  }

  .work-page {
    padding: 26px 18px 28px 50px;
    background-size: 40px 42px, 100% 100%;
    background-image:
      radial-gradient(circle at 20px 50%, #161714 0 6px, transparent 6.5px),
      repeating-linear-gradient(to bottom, transparent 0 33px, var(--work-sheet-line) 33px 35px);
  }

  .work-page::before {
    left: 40px;
  }

  .work-stack {
    gap: 50px;
  }

  .work-modal__grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .work-modal__media {
    position: relative;
  }

  .work-hi--note {
    --x: 56% !important;
    --y: 10% !important;
  }

  .work-hi--desk {
    display: none;
  }

  .work-hero__sub {
    margin-left: 18%;
  }

  .work-note {
    width: 100px;
  }

  .work-note .sticky {
    font-size: 1.05rem;
    padding: 20px 7px 8px;
  }

  .work-desk__hint {
    font-size: 1.2rem;
    right: 12px;
    bottom: 10px;
  }

  .work-flip__readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-flip__readout > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .work-flip__ticks {
    gap: 2px;
  }

  .work-flip__ticks li {
    height: 18px;
    border-width: 1.5px;
  }

  .work-flip__ticks li.is-key::after {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .work-filter {
    padding: 0 4px;
  }

  .work-tab {
    padding: 10px 10px 16px;
    font-size: 1.25rem;
  }

  .work-tab__n {
    display: none;
  }

  .work-result {
    font-size: 1.35rem;
    padding-bottom: 6px;
    order: -1;
    width: 100%;
  }

  .work-tapes {
    height: 150px;
  }

  .work-tape--b {
    top: 88px;
  }

  .work-cta__card {
    margin-top: 110px;
  }

  .work-cta__path {
    height: 200px;
  }

  .work-slate-wrap {
    flex-basis: 100%;
    max-width: 340px;
    margin-top: 14px;
  }

  .work-modal__nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-hero__scroll .doodle,
  .work-card:hover .work-shot img {
    animation: none;
  }
}
