/* ============================================================
   Hub (root index) — the neutral "gallery wall".
   Each app panel re-themes itself via its own data-app attribute.
============================================================ */

.hub-hero{ padding: 84px 0 64px; position: relative; overflow: hidden; }
.hub-hero .hero-grid{ grid-template-columns: 1.15fr .85fr; }
.hub-hero h1{ font-size: clamp(40px, 5.8vw, 66px); line-height: 1.03; margin-bottom: 22px; letter-spacing: -0.02em; }
.hub-hero p.lede{ max-width: 500px; }
.hl{
  background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%) 0 0 / 0% 100% no-repeat;
  animation: hl .9s .6s ease-out forwards;
}
@keyframes hl{ to{ background-size: 100% 100%; } }

/* sun + stone duet */
.duo{ position: relative; height: 380px; max-width: 400px; width: 100%; margin: 0 auto; }
.sun{ position: absolute; left: 4%; top: 2%; width: 190px; height: 190px; animation: bob 7s ease-in-out infinite; }
.sun .rays{
  position: absolute; inset: -52px; border-radius: 50%;
  background: repeating-conic-gradient(from var(--angle), rgba(243,199,107,.75) 0 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 40%, #000 42% 58%, transparent 70%);
          mask-image: radial-gradient(circle, transparent 0 40%, #000 42% 58%, transparent 70%);
  animation: spin-angle 40s linear infinite;
}
.sun .core{
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff3c9 0, #ffda85 38%, #f0b64a 100%);
  box-shadow: 0 34px 60px -24px rgba(233,162,59,.8);
}
@keyframes spin-angle{ to{ --angle: 360deg; } }
@keyframes bob{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
.duo .stone{ --sw: 160px; position: absolute; right: 2%; bottom: 8%; animation: thud 7s ease-in-out infinite; }
@keyframes thud{
  0%, 80%, 100%{ transform: none; }
  86%{ transform: translateY(-22px) rotate(-3deg); }
  91%{ transform: translateY(0) scale(1.06, .93); }
  95%{ transform: scale(.99, 1.015); }
}
.duo .floor{
  position: absolute; left: 6%; right: 0; bottom: 4%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(28,28,28,.18), transparent);
}
@media (max-width: 860px){
  .hub-hero{ padding: 48px 0 36px; }
  .duo{ height: 300px; }
  .sun{ width: 150px; height: 150px; }
  .duo .stone{ --sw: 124px; }
}

/* ---- App panels ---- */
.apps{ padding: 24px 0 88px; }
.panels{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.panel{
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 34px; min-height: 560px; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line);
  background: var(--cream); color: var(--ink); font-family: var(--font-body);
  transition: transform .25s ease, box-shadow .25s ease;
}
.panel:hover{ transform: translateY(-5px); box-shadow: 0 30px 50px -34px rgba(0,0,0,.5); }
.panel[data-app="a-day"]{ background: linear-gradient(165deg, #fff6df 0%, #faf4e6 48%, #dee9fe 135%); }
.panel-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel .app-icon{ width: 64px; height: 64px; border-radius: 15px; display: block; }
.panel .stone-icon{
  width: 64px; height: 64px; border-radius: 15px; background: #f7f5f1; border: 1px solid #e3e0d8;
  display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden;
}
.panel .stone-icon .stone{ --sw: 50px; margin: 0 -6px -4px 0; box-shadow: none; }
.panel h2{ font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; margin-top: 8px; }
.panel .tag{ font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 0; }
.panel p{ margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 420px; }
.panel-art{ margin-top: auto; display: flex; justify-content: center; align-items: flex-end; min-height: 230px; padding-top: 10px; }
.panel-cta{ display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.stretch::after{ content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.stretch{ color: inherit; text-decoration: none; }
.panel .btn{ position: relative; }

.status{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-pale);
  padding: 6px 12px 6px 10px; border-radius: 999px; white-space: nowrap;
}
.status::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3c9d5c; }
.status--review::before{ background: #c9892f; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse{ 0%, 100%{ box-shadow: 0 0 0 0 rgba(201,137,47,.55); } 60%{ box-shadow: 0 0 0 7px rgba(201,137,47,0); } }

/* A Day's panel art: a stack of snaps; the top one expires */
.snaps{ position: relative; width: 250px; height: 214px; }
.snap{
  position: absolute; width: 128px; height: 158px; border-radius: 14px; background: #fff;
  padding: 8px 8px 30px; box-shadow: 0 20px 30px -16px rgba(13,37,83,.5);
}
.snap i{ display: block; height: 100%; border-radius: 8px; background: linear-gradient(160deg, #ffda85, #5a90fa); }
.snap:nth-child(1){ left: 0; top: 24px; transform: rotate(-9deg); }
.snap:nth-child(1) i{ background: linear-gradient(160deg, #dee9fe, #5a90fa); }
.snap:nth-child(2){ left: 58px; top: 0; transform: rotate(3deg); }
.snap:nth-child(2) i{ background: linear-gradient(160deg, #ffda85, #f0b64a); }
.snap:nth-child(3){ left: 108px; top: 34px; transform: rotate(11deg); animation: snap-gone 8s ease-in infinite; }
@keyframes snap-gone{
  0%, 50%{ opacity: 1; filter: none; transform: rotate(11deg); }
  70%{ opacity: 0; filter: blur(9px); transform: rotate(11deg) translateY(-14px) scale(.9); }
  93%{ opacity: 0; }
  100%{ opacity: 1; filter: none; transform: rotate(11deg); }
}
.snap-timer{
  position: absolute; right: -8px; bottom: 4px; z-index: 3;
  background: #1c1c1c; color: #ffda85; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px;
  padding: 8px 13px; border-radius: 999px; box-shadow: 0 14px 24px -12px rgba(0,0,0,.5);
  animation: countdown 8s linear infinite;
}
.snap-timer b{ font-weight: inherit; counter-reset: h var(--h); }
.snap-timer b::before{ content: counter(h); }

@media (max-width: 860px){
  .panels{ grid-template-columns: 1fr; gap: 18px; }
  .panel{ padding: 26px; min-height: 0; }
  .apps{ padding-bottom: 56px; }
}

/* ---- Story ---- */
.story-grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.story h2{ font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin-bottom: 24px; }
.story p{ font-size: 17px; color: var(--ink-soft); margin: 0 0 16px; max-width: 560px; }
.story p strong{ color: var(--ink); font-weight: 600; }
.principles{ list-style: none; margin: 0; padding: 0; counter-reset: pr; display: grid; gap: 14px; }
.principles li{
  counter-increment: pr; position: relative;
  background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px 22px 70px; transition: transform .2s ease;
}
.principles li:hover{ transform: translateX(6px); }
.principles li::before{
  content: counter(pr); position: absolute; left: 22px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.principles h3{ font-size: 18px; margin-bottom: 4px; }
.principles p{ font-size: 14.5px; margin: 0; }
@media (max-width: 860px){
  .story-grid{ grid-template-columns: 1fr; gap: 36px; }
  .principles li{ padding: 18px 18px 18px 62px; }
  .principles li::before{ left: 18px; top: 18px; }
}

/* ---- Contact ---- */
.contact{ text-align: left; }
.contact h2{ font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin-bottom: 16px; }
.contact p{ font-size: 17px; color: var(--ink-soft); margin: 0 0 24px; max-width: 520px; }
.contact .btn{ white-space: nowrap; max-width: 100%; }
@media (max-width: 480px){ .contact .btn{ font-size: 14px; padding-inline: 20px; } }

/* ---- Team (hidden until the whole team agrees; remove the hidden attribute to show) ---- */
.team[hidden]{ display: none; }
.team h2{ font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 28px; }
.team-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member{ text-align: center; text-decoration: none; color: inherit; }
.member svg{ width: 132px; height: 132px; display: block; margin: 0 auto 14px; transition: transform .25s ease; }
.member:hover svg{ transform: translateY(-6px) rotate(-3deg); }
.member h3{ font-size: 18px; }
.member p{ margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 860px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }
