/* Case-study page for "Tetris".
   Reuses the main site's design tokens, fonts and section/card
   conventions (style.css) — this file only adds the page-specific
   layout: hero mockup, about text, and the play CTA section. */

/* ---------- HERO ---------- */
.tet-hero {
  background: var(--bg-dark);
  padding: 140px 0 100px;
  text-align: center;
}
.tet-eyebrow {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--mint);
  transform: rotate(-3deg);
  display: inline-block;
  margin: 0 0 20px;
}
.tet-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-dark-1);
  margin: 0 0 24px;
}
.tet-desc {
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-dark-2);
}
.tet-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--mint);
  color: #04263a;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease;
}
.tet-cta-button:hover { transform: translateY(-2px); background: var(--mint-2); }
.tet-note {
  display: block;
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--text-dark-2);
}
.tet-hero-mockup {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

/* ---------- ABOUT ---------- */
.tet-about-text {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light-2);
  margin: 0 0 28px;
}
.tet-role {
  font-size: 16px;
  margin: 0 0 24px;
}
.tet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tet-tag {
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-1);
  white-space: nowrap;
}

/* ---------- AI WORKFLOW (dark) ---------- */
.tet-ai-text {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark-2);
  margin: 0 0 20px;
}
.tet-ai-text:last-child { margin-bottom: 0; }

/* ---------- PLAY IT YOURSELF ---------- */
.tet-play {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.tet-play-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light-2);
  margin: 0 0 24px;
  max-width: 460px;
}
.tet-play-image {
  max-width: 420px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

/* ---------- NEXT PROJECT ---------- */
.tet-next-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  gap: 20px;
}
.tet-next-card {
  display: block;
  background: #fafafa;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s ease, transform .3s ease;
}
.tet-next-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,.1); transform: translateY(-4px); }
.tet-next-thumb { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.tet-next-name { display: block; padding: 16px 20px 4px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.tet-next-link { display: block; padding: 0 20px 18px; font-size: 14px; color: var(--text-light-2); }

@media (max-width: 680px) {
  .tet-tags { justify-content: center; }
  .tet-hero { padding: 110px 0 70px; }
  .tet-play { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- MOBILE WARNING TOAST ---------- */
.tet-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2000;
  width: max-content;
  max-width: min(94vw, 560px);
  padding: 18px 32px;
  border-radius: 18px;
  background: #0a0a0a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}
.tet-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
