/* The studio's card. One strong decision — the mark — and everything else
   waits its turn: mark, then name, then the one thing made so far, then the
   foot. Same arrival the site has carried since it went up, re-tuned to the
   settled amber and given somewhere to go. */

.studio {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: var(--serif-studio);
}
/* the ground: a whisper of grain and a warm vignette, as before */
.studio::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}
.studio::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 38%, transparent 12%, rgba(0,0,0,.45) 100%);
}

.card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 16px 2rem;
  text-align: center;
}

.mark {
  width: min(280px, 60vw); height: auto; aspect-ratio: 1;
  border-radius: 50%;
  view-transition-name: mark;
  animation: arrive 2s ease-out both, breathe 8s ease-in-out 2s infinite;
  transition: filter 1.2s var(--ease-io);
}
@keyframes arrive { from { opacity: 0; transform: scale(.96); } }
@keyframes breathe {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(181, 96, 31, .10)); }
  50%      { filter: brightness(1.03) drop-shadow(0 0 55px rgba(181, 96, 31, .34)); }
}
/* the mark notices when you reach for the work — acknowledgement, not decoration */
body:has(.work a:is(:hover, :focus-visible)) .mark {
  animation-play-state: running, paused;
  filter: brightness(1.06) drop-shadow(0 0 70px rgba(217, 138, 61, .42));
}

.name { margin: clamp(3.5rem, 11vh, 6rem) 0 0; font-weight: 400; line-height: 1; animation: rise 1.8s ease-out .8s both; }
.made {
  display: block; margin-bottom: .55rem;
  font-size: clamp(.8rem, 1.5vw, .95rem); letter-spacing: .25em;
  color: var(--muted);
}
.word { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: .05em; color: var(--warm); }

.work { margin-top: clamp(2.5rem, 8vh, 4.5rem); animation: rise 1.6s ease-out 2.2s both; }
.work a {
  display: inline-flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .6rem 1rem; text-decoration: none;
}
.work-name {
  font-style: italic; font-size: 1.35rem; letter-spacing: .02em; color: var(--warm);
  background: linear-gradient(var(--amber), var(--amber)) no-repeat 50% 100% / 0 1px;
  padding-bottom: 2px;
  transition: color .6s ease, background-size .8s var(--ease-io);
}
.work-line { font-size: .9rem; letter-spacing: .08em; color: var(--muted); }
/* coming soon: melloThought's own breathing dot, borrowed for a line —
   the app is waiting, and it looks like it */
.soon {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .55rem;
  font-size: .8rem; letter-spacing: .2em; color: rgba(200, 130, 10, .85);
}
.soon-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #c8820a;
  animation: soon 6.4s var(--ease-io) infinite;
}
@keyframes soon { 0%, 100% { opacity: .42; transform: scale(1); } 50% { opacity: .9; transform: scale(1.3); } }
.work a:is(:hover, :focus-visible) .soon-dot { animation-duration: 1.6s; }
.work a:is(:hover, :focus-visible) .work-name { color: var(--amber-emph); background-size: 100% 1px; }
.work a:focus-visible { outline-offset: 2px; }

.foot {
  position: relative; z-index: 1;
  padding: 0 16px max(1.6rem, env(safe-area-inset-bottom));
  text-align: center; font-size: .8rem; letter-spacing: .14em; color: var(--muted);
  animation: rise 1.4s ease-out 2.8s both;
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .mark, .name, .work, .foot { animation: fade 1s ease-out both; }
  @keyframes fade { from { opacity: 0; } }
}

/* 404: the mark, smaller, a little turned away — present, unbothered.
   The number says it's an error; the button says where to go. */
.mark.lost { width: 140px; rotate: -9deg; transition: rotate .9s var(--ease-io); }
.lost-mark { border-radius: 50%; }
.lost-mark:is(:hover, :focus-visible) .mark.lost { rotate: 0deg; }
.code {
  margin: 2.6rem 0 0; font-weight: 400; line-height: 1;
  font-size: clamp(4rem, 14vw, 6rem); letter-spacing: .04em; color: var(--warm);
  animation: rise 1.6s ease-out .5s both;
}
.lost-line { margin: .9rem 0 0; font-size: 1.15rem; letter-spacing: .04em; color: var(--muted); animation: rise 1.6s ease-out .8s both; }
.home-btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; margin-top: 2.4rem; padding: 0 1.5rem;
  border: 1px solid rgba(181, 96, 31, .7); border-radius: 999px;
  font-size: 1.15rem; letter-spacing: .06em; color: var(--warm); text-decoration: none;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease;
  animation: rise 1.6s ease-out 1.1s both;
}
.home-btn:is(:hover, :focus-visible) { background: rgba(181, 96, 31, .18); border-color: var(--amber-accent); color: var(--amber-emph); }
@media (prefers-reduced-motion: reduce) { .code, .lost-line, .home-btn { animation: fade 1s ease-out both; } }
