:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1f1f1f;
  --muted: #9b9b9b;
  --hair: #e9e9e9;
  --hair-hover: #1f1f1f;
  --font-ui: Verdana, Tahoma, Arial, sans-serif;
  --font-display: "Trebuchet MS", Verdana, Tahoma, sans-serif;
  --font-mono: "Lucida Console", Monaco, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100% - 56px, 1000px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.topline {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: -14px 0 30px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.brand {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.tagline {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hair {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-section + .home-section {
  margin-top: 42px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-tools {
  display: flex;
  gap: 6px;
}

.rail-button,
.category-filter {
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rail-button {
  width: 28px;
  height: 24px;
}

.rail-button:disabled {
  opacity: 0.35;
}

.showcase-controls {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.category-filter {
  padding: 5px 9px;
}

.category-filter[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.showcase-shell {
  overflow: hidden;
}

.showcase-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.showcase-rail::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  flex: 0 0 calc((100% - 42px) / 4);
  max-width: 250px;
  scroll-snap-align: start;
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card[hidden] {
  display: none;
}

.plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  aspect-ratio: 1 / 0.92;
  min-height: 142px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--paper);
  padding: 14px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.top {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 3;
}

.card-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

.plan {
  position: absolute;
  z-index: 1;
  inset: 31px 10px 37px;
  width: calc(100% - 20px);
  height: calc(100% - 68px);
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.showcase-plan {
  inset: 31px 10px 37px;
  width: calc(100% - 20px);
  height: calc(100% - 68px);
  object-fit: contain;
  object-position: center;
}

.showcase-motion-canvas {
  inset: 31px 10px 37px;
  width: calc(100% - 20px);
  height: calc(100% - 68px);
  object-fit: contain;
  object-position: center;
  opacity: 0;
}

.showcase-motion-canvas.is-visible {
  opacity: 1;
}

.showcase-card.is-motion-frame-visible .showcase-plan {
  opacity: 0;
}

.body {
  position: relative;
  z-index: 3;
  text-align: right;
}

.title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.title-line {
  display: block;
}

.title-line--strong {
  text-transform: uppercase;
}

.desc {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.card:hover .plate,
.card:focus-visible .plate {
  border-color: var(--hair-hover);
  outline: none;
}

.card:hover .card-date,
.card:focus-visible .card-date {
  color: var(--ink);
}

.card:hover .plan,
.card:focus-visible .plan {
  filter: brightness(0.35) contrast(1.16);
}

.miro-thumb {
  position: absolute;
  z-index: 1;
  inset: 26px 8px 36px;
  pointer-events: none;
}

.miro-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.miro-base-fill,
.miro-add-fill {
  transform-box: fill-box;
  transform-origin: center;
}

.miro-base-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.85s ease;
  transition-delay: 0s;
}

.miro-base-fill {
  opacity: 0;
  transform: scale(0);
  transition: transform 0.45s ease, opacity 0.45s ease;
  transition-delay: 0s;
}

.miro-thumb.is-loaded .miro-base-line {
  stroke-dashoffset: 0;
  transition-delay: var(--d, 0s);
}

.miro-thumb.is-loaded .miro-base-fill {
  opacity: 1;
  transform: scale(1);
  transition-delay: var(--d, 0s);
}

.miro-add-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease;
  transition-delay: 0s;
}

.miro-add-fill {
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0s;
}

.miro-thumb.is-complete .miro-add-line {
  stroke-dashoffset: 0;
  transition-delay: var(--d, 0s);
}

.miro-thumb.is-complete .miro-add-fill {
  opacity: 1;
  transform: scale(1);
  transition-delay: var(--d, 0s);
}

.miro-drift {
  animation: miroDrift var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--ad, 0s);
}

.miro-breathe {
  transform-box: fill-box;
  transform-origin: center;
  animation: miroBreathe 9s ease-in-out infinite;
}

.miro-blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: miroBlink 7.3s ease-in-out infinite;
}

.miro-twinkle {
  animation: miroTwinkle 2.4s ease-in-out infinite;
}

.miro-ring {
  fill: none;
  stroke: #5e5e5e;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.miro-med {
  fill: none;
  stroke: #5e5e5e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.miro-thin {
  fill: none;
  stroke: #6f6f6f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.miro-spk {
  fill: none;
  stroke: #6f6f6f;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.miro-fil {
  fill: #5e5e5e;
  stroke: none;
}

.blog-card--vibe-led:hover .miro-thumb,
.blog-card--vibe-led:focus-visible .miro-thumb,
.miro-thumb.is-complete {
  filter: contrast(1.06);
}

.blog-card--vibe-led .plate::before,
.blog-card--vibe-led .plate::after,
.showcase-card--vibe-led .plate::before,
.showcase-card--vibe-led .plate::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.blog-card--vibe-led .plate::before {
  display: none;
}

.blog-card--vibe-led .plate::after {
  display: none;
}

.blog-card--vibe-led:hover .plan,
.blog-card--vibe-led:focus-visible .plan {
  opacity: 0.72;
  filter: none;
}

.showcase-card--vibe-led:hover .plan,
.showcase-card--vibe-led:focus-visible .plan {
  filter: none;
}

.showcase-card--vibe-led .plate::before {
  display: none;
  left: 43%;
  top: 45%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  background:
    radial-gradient(circle, transparent 48%, rgba(255, 255, 255, 0.82) 50% 54%, transparent 57%),
    conic-gradient(from 0deg, transparent 0 61%, rgba(255, 42, 36, 0.02) 64%, rgba(255, 42, 36, 0.88) 71%, rgba(255, 167, 112, 0.68) 76%, transparent 83% 100%);
  mix-blend-mode: screen;
  transition: opacity 0.18s ease;
}

.showcase-card--vibe-led .plate::after {
  display: none;
  left: 43%;
  top: 45%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  background: radial-gradient(circle at 72% 52%, rgba(255, 54, 42, 0.7), rgba(255, 64, 40, 0.26) 22%, transparent 48%);
  filter: blur(7px);
  mix-blend-mode: screen;
  transition: opacity 0.18s ease;
}

.showcase-card--vibe-led:hover .plate::before,
.showcase-card--vibe-led:focus-visible .plate::before {
  opacity: 0.92;
  animation: ledOrbit 1.1s linear infinite;
}

.showcase-card--vibe-led:hover .plate::after,
.showcase-card--vibe-led:focus-visible .plate::after {
  opacity: 0.88;
  animation: ledGlowOrbit 1.1s linear infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes miroDrift {
    0% {
      transform: translate(0, 0);
    }
    25% {
      transform: translate(var(--dx), var(--dy));
    }
    50% {
      transform: translate(calc(var(--dx) * -0.4), calc(var(--dy) * 0.7));
    }
    75% {
      transform: translate(calc(var(--dx) * 0.6), calc(var(--dy) * -0.5));
    }
    100% {
      transform: translate(0, 0);
    }
  }

  @keyframes miroBreathe {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.013);
    }
  }

  @keyframes miroBlink {
    0%,
    90%,
    100% {
      transform: scaleY(1);
    }
    94% {
      transform: scaleY(0.12);
    }
    97% {
      transform: scaleY(1);
    }
  }

  @keyframes miroTwinkle {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.55;
    }
  }

  @keyframes ledOrbit {
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  @keyframes ledGlowOrbit {
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card--vibe-led:hover .plate::before,
  .showcase-card--vibe-led:focus-visible .plate::before,
  .showcase-card--vibe-led:hover .plate::after,
  .showcase-card--vibe-led:focus-visible .plate::after {
    animation: none;
  }

  .miro-drift,
  .miro-breathe,
  .miro-blink,
  .miro-twinkle {
    animation: none;
  }

  .miro-base-line,
  .miro-base-fill,
  .miro-add-line,
  .miro-add-fill {
    transition: none;
  }
}

@media (max-width: 820px) {
  .grid,
  .showcase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-card {
    flex-basis: calc((100% - 14px) / 2);
    max-width: none;
  }
}

@media (max-width: 500px) {
  .page {
    width: min(100% - 36px, 1000px);
    padding-top: 44px;
  }

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

  .showcase-card {
    flex-basis: 100%;
  }

  .plate {
    aspect-ratio: auto;
    min-height: 132px;
  }
}
