/* ───────── Tokens ───────── */
:root {
  --cream: #fbf3e8;
  --cream-2: #f5e8d6;
  --ink: #2a221f;
  --ink-soft: #6b5d55;
  --accent: #ff6b3d;
  --accent-display: #e5531f; /* büyük yazı: 3.4:1 */
  --accent-ink: #c8410f; /* küçük yazı: 4.5:1 */
  --accent-2: #ffc23d;
  --pink: #f6b3c2;
  --sky: #a9d6f0;

  --fur: #fbf8f4;
  --patch: #1f1b1a;
  --inner: #f2a7b4;
  --eyes: #c9d65a;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lock { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

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

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--pad);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-1 {
  width: 62vmax; height: 62vmax;
  top: -24vmax; right: -18vmax;
  background: radial-gradient(closest-side, rgb(255 194 61 / 0.55), rgb(255 194 61 / 0) 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 54vmax; height: 54vmax;
  bottom: -26vmax; left: -20vmax;
  background: radial-gradient(closest-side, rgb(246 179 194 / 0.6), rgb(246 179 194 / 0) 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 36vmax; height: 36vmax;
  top: 30%; left: 38%;
  background: radial-gradient(closest-side, rgb(169 214 240 / 0.45), rgb(169 214 240 / 0) 70%);
  animation: drift-c 19s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(10vmax, -5vmax, 0) scale(0.94); } }
@keyframes drift-c { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.15); } }

/* walking paw prints */
.paw-trail { position: absolute; inset: 0; }
.paw {
  position: absolute;
  width: 34px; height: 34px;
  color: var(--ink);
  opacity: 0;
  animation: step 9s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 0.42s);
}
.paw svg { width: 100%; height: 100%; transform: rotate(var(--r)); }
@keyframes step {
  0% { opacity: 0; transform: scale(0.6); }
  4% { opacity: 0.09; transform: scale(1); }
  45% { opacity: 0.09; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1); }
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.logo span { color: var(--accent-display); }
.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(42 34 31 / 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.nav-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { background: #fff; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero-copy { will-change: transform, opacity; }

.hello {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink-soft);
  margin: 0 0 -0.4em 0.3em;
}

.title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(6.5rem, 21vw, 17rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  display: flex;
}
.title .char {
  display: inline-block;
  transform-origin: 50% 100%;
}
.title .char:last-child { color: var(--accent-display); }

.tagline {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 30ch;
  margin: 1.25rem 0 0.4rem;
  text-wrap: pretty;
}

.rotator-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}
.rotator {
  display: inline-grid;
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  /* tek satır yüksekliği; kelimeler yukarıdan aşağı kayar */
}
.rotator > span {
  grid-area: 1 / 1;
  transition: transform 520ms var(--ease-out), opacity 520ms var(--ease-out);
  transform: translateY(100%);
  opacity: 0;
  white-space: nowrap;
}
.rotator > span.on { transform: translateY(0); opacity: 1; }
.rotator > span.off { transform: translateY(-100%); opacity: 0; }

.facts {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  border: 1px solid rgb(42 34 31 / 0.07);
  font-size: 0.92rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.facts .k { color: var(--ink-soft); }
.facts .v { font-weight: 700; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgb(42 34 31 / 0.5);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.cta svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 250ms var(--ease-out);
}
.cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--accent-ink); }
  .cta:hover svg { transform: translateY(3px); }
}

/* ───── stage ───── */
.hero-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  will-change: transform;
}
.stage-inner { position: relative; }

.cat-wrap {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cat-wrap:focus-visible { outline-offset: -10px; border-radius: 40%; }

.cat { width: 100%; height: auto; overflow: visible; }
.cat .fur { fill: var(--fur); }
.cat .patch { fill: var(--patch); }
.cat .line, .cat .line-fill, .cat .duck-paws .fur {
  stroke: var(--patch); stroke-width: 4; stroke-linejoin: round;
}
.cat .line { fill: none; }
.cat .tail-stroke { stroke: var(--patch); }
.cat .inner { fill: var(--inner); }
.cat .cheek { fill: var(--inner); opacity: 0.5; }
.cat .eye-ball { fill: var(--eyes); }
.cat .pupil { fill: #120e0d; }
.cat .glint { fill: #fff; }
.cat .nose { fill: var(--inner); }
.cat .mouth, .cat .whisker, .cat .toes {
  fill: none; stroke: #2a221f; stroke-width: 3; stroke-linecap: round;
}
.cat .whisker { stroke: rgb(42 34 31 / 0.35); stroke-width: 2.5; }
.cat .whisker-w { stroke: rgb(255 255 255 / 0.7); }
.cat .toes { stroke: rgb(42 34 31 / 0.35); stroke-width: 2.5; }
.cat .shadow { fill: rgb(42 34 31 / 0.12); }
.cat .mouth { transition: opacity 120ms ease; }
.cat .mouth-open {
  fill: #6b2b33;
  stroke: #2a221f; stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0.2);
  transition: opacity 120ms ease, transform 180ms var(--ease-out);
}
.cat .mouth-open .tongue { fill: #f08a9a; stroke: none; }
.cat .mouth-open .fang { fill: #fff; stroke: none; }
.cat.yelling .mouth { opacity: 0; }
.cat.yelling .mouth-open { opacity: 1; transform: none; }

.cat .box-in { fill: #7a4d2a; }
.cat .box-front { fill: #d9a066; }
.cat .box-flap { fill: #c68a50; }
.cat .box-tape { fill: #ecd0a4; opacity: 0.8; }
.cat .box-label {
  fill: #9b6537;
  font-family: var(--display);
  font-weight: 900;
  font-size: 46px;
  letter-spacing: 0.06em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.cat .eye, .cat .ear, .cat .tail, .cat .torso, .cat .head, .cat .duck, .cat .box {
  transform-box: view-box;
}
.cat .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.2s infinite;
}
.cat .eye-r { animation-delay: 0.04s; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94.5% { transform: scaleY(0.08); }
}
.cat .tail {
  transform-origin: 258px 404px;
  animation: tail 1.9s ease-in-out infinite alternate;
}
@keyframes tail {
  from { transform: rotate(-8deg); }
  to { transform: rotate(10deg); }
}
.cat .ear-r { transform-origin: 250px 140px; animation: ear 7s infinite; }
.cat .ear-l { transform-origin: 150px 140px; animation: ear-l 11s infinite; }
@keyframes ear {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(14deg); }
  93% { transform: rotate(-3deg); }
  96% { transform: rotate(0); }
}
@keyframes ear-l {
  0%, 70%, 100% { transform: rotate(0); }
  72% { transform: rotate(-12deg); }
  76% { transform: rotate(0); }
}
.cat .torso {
  transform-origin: 200px 456px;
  animation: breathe 3.6s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.012, 1.025); } }

/* Kutuya saklanıp geri çıkar (kutuları seviyor) */
.cat .duck { animation: duck 13s infinite; }
@keyframes duck {
  0%, 74% { transform: translateY(0); animation-timing-function: var(--ease-in-out); }
  78%, 86% { transform: translateY(104px); animation-timing-function: var(--ease-out); }
  91% { transform: translateY(-6px); animation-timing-function: var(--ease-in-out); }
  94%, 100% { transform: translateY(0); }
}
.cat .box { transform-origin: 200px 460px; animation: box-jiggle 13s infinite; }
@keyframes box-jiggle {
  0%, 76% { transform: none; }
  78% { transform: rotate(-1.6deg); }
  80% { transform: rotate(1deg); }
  82%, 87% { transform: none; }
  89% { transform: rotate(1.4deg); }
  91% { transform: rotate(-0.8deg); }
  93%, 100% { transform: none; }
}
.cat .head { transform-origin: 200px 265px; }

/* yarn ball */
.yarn {
  position: absolute;
  width: 22%;
  left: -2%;
  bottom: 2%;
  animation: yarn-bob 3.6s ease-in-out infinite alternate;
}
.yarn svg { animation: yarn-spin 14s linear infinite; }
@keyframes yarn-bob { to { transform: translate3d(10px, -8px, 0); } }
@keyframes yarn-spin { to { transform: rotate(360deg); } }

.sparkle {
  position: absolute;
  width: 26px; height: 26px;
  color: var(--accent-2);
  animation: twinkle 2.8s ease-in-out infinite;
}
.sparkle svg { width: 100%; height: 100%; }
.sparkle.s1 { top: 8%; right: 6%; }
.sparkle.s2 { top: 34%; left: 2%; width: 18px; height: 18px; color: var(--accent); animation-delay: 1.1s; }
.sparkle.s3 { top: 2%; left: 30%; width: 14px; height: 14px; color: var(--pink); animation-delay: 1.9s; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* photo variant */
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 48% 52% / 54% 46% 54% 46%;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgb(42 34 31 / 0.45);
  animation: morph 12s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  cursor: pointer;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
@keyframes morph {
  to { border-radius: 56% 44% 58% 42% / 44% 56% 44% 56%; }
}

/* speech bubble */
.bubble {
  position: absolute;
  top: 7%;
  right: -3%;
  padding: 0.6rem 1rem;
  background: #fff;
  border-radius: 18px 18px 18px 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 10px 30px -12px rgb(42 34 31 / 0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transform-origin: 0% 100%;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
.bubble.show { opacity: 1; transform: none; }
.bubble.loud {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: var(--accent-2);
}
.bubble.loud.show { animation: shout 500ms var(--ease-out); }
@keyframes shout {
  0% { transform: scale(0.85); }
  30% { transform: scale(1.08) rotate(-3deg); }
  55% { transform: scale(1) rotate(2deg); }
  100% { transform: none; }
}

.heart {
  position: absolute;
  pointer-events: none;
  font-size: 22px;
  line-height: 1;
  left: 0; top: 0;
  will-change: transform, opacity;
}

/* scroll cue */
.scroll-cue {
  justify-self: center;
  margin-bottom: 1.6rem;
  width: 28px; height: 44px;
  border: 2px solid rgb(42 34 31 / 0.35);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 9px;
  border-radius: 4px;
  background: var(--ink);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70%, 100% { transform: translateY(14px); opacity: 0; }
}

/* ───── intro choreography ───── */
.js .intro,
.js .facts li,
.js .intro-stage,
.js .title .char,
.js .nav { opacity: 0; }

.ready .nav { animation: fade 600ms var(--ease-out) both; }
.ready .intro,
.ready .facts li {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: calc(var(--d) * 70ms + 150ms);
}
.ready .title .char {
  animation: char-in 1000ms var(--ease-out) both;
  animation-delay: calc(var(--d) * 70ms + 150ms);
}
.ready .intro-stage {
  animation: stage-in 1100ms var(--ease-out) both;
  animation-delay: 450ms;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes char-in {
  from { opacity: 0; transform: translateY(40%) rotate(8deg) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* offscreen pause */
.hero.paused *, .marquee.paused * { animation-play-state: paused !important; }

/* ───────── Marquee ───────── */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.5deg);
  margin: -0.5rem -1rem 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  padding: 0 1.2rem;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee-track span:nth-child(even) { color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Gallery ───────── */
.gallery-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad) 5rem;
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.gallery-head h2 {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.gallery-head .count {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  vertical-align: super;
}

.filters {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--cream-2);
  border-radius: 999px;
}
.filters button {
  border: 0;
  background: transparent;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.filters button:active { transform: scale(0.96); }
.filters button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px -2px rgb(42 34 31 / 0.15);
}

.grid {
  columns: 3 300px;
  column-gap: 14px;
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  break-inside: avoid;
  isolation: isolate;
}
.tile img, .tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-out), opacity 300ms ease;
}
.tile video { position: absolute; inset: 0; opacity: 0; }
.tile video.playing { opacity: 1; }
.tile img { opacity: 0; }
.tile img.loaded { opacity: 1; }

/* reveal */
.js .tile.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}
.tile.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}
.tile.hidden { display: none; }

.badge {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgb(20 15 13 / 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}
.badge svg { width: 14px; height: 14px; fill: currentColor; }

.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  background: linear-gradient(to top, rgb(20 15 13 / 0.6), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  z-index: 1;
}
.tile.video .tile-caption { padding-left: 1rem; padding-bottom: 3rem; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.04); }
  .tile:hover .tile-caption { opacity: 1; transform: none; }
}
@media (hover: none) {
  .tile-caption { opacity: 1; transform: none; }
}

.empty {
  border: 2px dashed rgb(42 34 31 / 0.18);
  border-radius: var(--radius);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  column-span: all;
}
.empty strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); margin-bottom: 0.4rem; }
.empty code { background: var(--cream-2); padding: 0.15em 0.45em; border-radius: 6px; font-size: 0.9em; }

.footer {
  text-align: center;
  padding: 2rem var(--pad) 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ───────── Lightbox ───────── */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgb(18 13 11 / 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }

.lb-stage {
  position: absolute;
  inset: 0 0 64px;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 3.5rem clamp(0.5rem, 6vw, 5rem) 0.5rem;
  touch-action: pan-y;
  user-select: none;
}
.lb-stage > * {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: 14px;
  object-fit: contain;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.lb-stage > .enter { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)) scale(0.98); }
.lb-stage > .leave { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)) scale(0.98); }

.lb-bar {
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  font-size: 0.95rem;
}
.lb-bar p { margin: 0; }
.lb-caption { opacity: 0.9; }
.lb-count { opacity: 0.6; font-variant-numeric: tabular-nums; }

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { background: rgb(255 255 255 / 0.2); }
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* ───────── Responsive ───────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-bottom: 1.5rem;
    gap: 0;
  }
  .hero-stage { order: -1; width: min(72vw, 340px); margin-top: -0.5rem; }
  .title { font-size: clamp(5.5rem, 30vw, 9rem); }
  .facts { margin: 1.2rem 0 1.4rem; }
  .scroll-cue { display: none; }
  .bubble { font-size: 1rem; }
}
@media (max-width: 560px) {
  .grid { columns: 2 150px; column-gap: 8px; }
  .tile { margin-bottom: 8px; border-radius: 14px; }
  .lb-prev, .lb-next { display: none; }
  .filters button { padding: 0.5rem 0.8rem; }
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .paw, .yarn, .yarn svg, .sparkle, .cat .tail, .cat .ear, .cat .torso, .cat .duck, .cat .box,
  .marquee-track, .scroll-cue span, .photo-frame { animation: none !important; }
  .paw { display: none; }
  .ready .intro, .ready .facts li, .ready .title .char, .ready .intro-stage, .ready .nav {
    animation: fade 500ms ease both;
    animation-delay: 0ms;
  }
  .js .tile.reveal { transform: none; }
  .tile.reveal.in { transition: opacity 400ms ease; transition-delay: 0ms; }
  .rotator > span, .rotator > span.off { transform: none; transition: opacity 300ms ease; }
  .lb-stage > .enter, .lb-stage > .leave { transform: none; }
  .bubble.loud.show { animation: none; }
  .tile img, .tile:hover img { transform: none !important; }
}

/* ───────── Nav links ───────── */
.nav-links { display: flex; gap: 0.4rem; }
.nav-link-quiet { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ───────── Section reveal ───────── */
.js .reveal-up { opacity: 0; transform: translateY(24px); }
.reveal-up.in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

/* ───────── Ailem ───────── */
.family {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.family-head { max-width: 40rem; margin-bottom: 2.5rem; }
.family-title {
  margin: 0.3rem 0 0.8rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-wrap: balance;
}
.family-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); text-wrap: pretty; }
.family-text p { margin: 0 0 0.8em; }
.family-text p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 500; }
.family-text p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.4em;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  color: var(--accent-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.runes {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--ink-soft);
  opacity: 0.7;
}

.family-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.fam {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgb(42 34 31 / 0.07);
  box-shadow: 0 18px 40px -28px rgb(42 34 31 / 0.35);
}
.fam h3 {
  margin: 0.8rem 0 0.3rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.fam p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.fam-face { position: relative; width: 104px; }
.fam-face .face { width: 100%; height: auto; overflow: visible; transition: transform 300ms var(--ease-out); }
.face-eyes { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.fam:nth-child(2) .face-eyes { animation-delay: 1.7s; }
.fam:nth-child(3) .face-eyes { animation-delay: 3.1s; }
@media (hover: hover) and (pointer: fine) {
  .fam:hover .face { transform: rotate(-6deg) translateY(-3px); }
}
.fam.memorial { background: #1f2638; border-color: transparent; color: #f3ede4; }
.fam.memorial p { color: rgb(243 237 228 / 0.72); }
.moon { color: #f3d58a; font-size: 0.8em; }
.halo {
  position: absolute;
  left: 50%; top: -14px;
  width: 64px; height: 16px;
  margin-left: -32px;
  border-radius: 50%;
  border: 3px solid #f3d58a;
  box-shadow: 0 0 14px rgb(243 213 138 / 0.6);
  animation: halo 4s ease-in-out infinite alternate;
}
@keyframes halo { to { transform: translateY(-4px); } }
.fam-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: #f3d58a;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
@media (hover: hover) and (pointer: fine) {
  .fam-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ───────── Fili'nin anısına ───────── */
.tribute {
  --night: #161c2b;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f3ede4;
  background:
    radial-gradient(120% 80% at 80% 0%, #2a3350 0%, transparent 60%),
    radial-gradient(90% 70% at 0% 100%, #2b2438 0%, transparent 60%),
    var(--night);
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.2;
  animation: twinkle-soft ease-in-out infinite alternate;
}
@keyframes twinkle-soft { to { opacity: 0.85; } }
.lit {
  position: absolute;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #ffe7a3;
  box-shadow: 0 0 10px 3px rgb(255 214 120 / 0.55);
}
.shooting {
  position: absolute;
  top: 14%; left: 70%;
  width: 120px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, rgb(255 255 255 / 0.9), transparent);
  opacity: 0;
  transform: rotate(-20deg);
  animation: shoot 16s linear infinite;
  animation-delay: 4s;
}
@keyframes shoot {
  0%, 92% { opacity: 0; transform: rotate(-20deg) translateX(0); }
  93% { opacity: 1; }
  97%, 100% { opacity: 0; transform: rotate(-20deg) translateX(-360px); }
}

.tribute-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.tribute-photos { position: relative; }
.slides {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 10px solid #f6f1e8;
  border-bottom-width: 46px;
  border-radius: 6px;
  background: #222;
  overflow: hidden;
  cursor: zoom-in;
  transform: rotate(-2.5deg);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1800ms ease;
}
.slide.on { opacity: 1; }
.slide.on, .slide.off { animation: kenburns 9s linear both; }
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, -1.5%); }
}
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.4rem;
}
.slide-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(243 237 228 / 0.25);
  transition: background-color 600ms ease, transform 600ms var(--ease-out);
}
.slide-dots span.on { background: #f3d58a; transform: scale(1.3); }

.tribute-eyebrow { color: #f3d58a; }
.tribute-name {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.tribute-sub {
  margin: 0.6rem 0 1.6rem;
  font-size: 1.1rem;
  color: rgb(243 237 228 / 0.7);
}
.tribute-text p {
  margin: 0 0 0.9rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 34ch;
  text-wrap: pretty;
}
.tribute-text p:last-child {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: #f3d58a;
}

.star-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.85rem 1.3rem 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgb(243 213 138 / 0.4);
  background: rgb(243 213 138 / 0.08);
  color: #f3ede4;
  font-weight: 600;
  transition: background-color 250ms ease, border-color 250ms ease, transform 160ms var(--ease-out);
}
.star-btn svg { width: 18px; height: 18px; fill: #f3d58a; }
.star-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .star-btn:hover { background: rgb(243 213 138 / 0.18); border-color: rgb(243 213 138 / 0.7); }
}
.star-count { margin: 0.8rem 0 0; min-height: 1.5em; font-size: 0.9rem; color: rgb(243 237 228 / 0.6); }

.tribute.paused *, .family .paused * { animation-play-state: paused !important; }

@media (max-width: 860px) {
  .tribute-inner { grid-template-columns: 1fr; }
  .tribute-photos { width: min(78vw, 360px); justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-up { transform: none; }
  .reveal-up.in { transition: opacity 500ms ease; transition-delay: 0ms; }
  .slide.on, .slide.off, .shooting, .halo { animation: none !important; }
  .shooting { display: none; }
  .star { animation: none; opacity: 0.5; }
}
