/* Zynnah studio — homepage: a colourful bento of five doors */
.home {
  --hot: #e2508c;
  --hot-2: #c93576;
  --sage: #7d9a82;
  --red: #b3121d;
  --wa: #17804a;
  --sun: #f2b544;
  --cream-hi: #ffe7b0;
  background: #fff4f8; min-height: 100svh;
}

.bento {
  width: min(1320px, 100% - 24px); margin: 12px auto 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 96px;
  grid-template-areas:
    "hero hero hero hero hero wed wed wed wed stu stu stu"
    "hero hero hero hero hero wed wed wed wed book book book"
    "hero hero hero hero hero wa wa wa wa map map map";
  height: min(calc(100svh - 24px), 900px); min-height: 640px;
}
.t { position: relative; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.t-hero { grid-area: hero; }
.t-wed { grid-area: wed; background: var(--plum); }
.t-studio { grid-area: stu; background: var(--sage); }
.t-book { grid-area: book; background: var(--red); }
.t-wa { grid-area: wa; background: var(--wa); }
.t-map { grid-area: map; background: var(--sun); color: var(--plum); }

/* ── Hero tile ── */
.t-hero {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(242, 181, 68, .55), transparent 70%),
    radial-gradient(70% 60% at 10% 95%, rgba(138, 104, 184, .65), transparent 70%),
    var(--hot-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(22px, 3vw, 44px);
}
.t-hero .lang {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2;
  background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.t-hero .lang:hover { background: #fff; color: var(--hot-2); }
.seal { position: relative; width: clamp(170px, 19vw, 250px); aspect-ratio: 1; display: grid; place-items: center; margin-top: 6px; }
.seal .ring { direction: ltr; position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 38s linear infinite; }
.seal .ring text { fill: #fff; font-family: var(--f-latin); font-size: 13.5px; letter-spacing: .5px; opacity: .92; }
.seal img { width: 34%; height: auto; filter: drop-shadow(0 10px 18px rgba(80, 10, 50, .35)); animation: bob 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }

.hero-words { position: relative; z-index: 1; }
.t-hero .name {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 99px;
  background: #fff; color: var(--hot-2); font-family: var(--f-display); font-weight: 700; font-size: 15px;
  transform: rotate(-2deg);
}
html[lang="en"] .t-hero .name { font-family: var(--f-latin); font-style: italic; font-weight: 600; }
.t-hero h1 {
  margin: 0; font-family: var(--f-display); font-weight: 700; color: #fff;
  font-size: clamp(30px, 3.4vw, 54px); line-height: 1.38; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(120, 20, 70, .25);
}
.t-hero h1 em { font-style: normal; color: var(--cream-hi); }
html[lang="en"] .t-hero h1 { font-family: var(--f-latin); font-weight: 500; line-height: 1.12; font-size: clamp(32px, 3.6vw, 58px); }
html[lang="en"] .t-hero h1 em { font-style: italic; }
.spark { position: absolute; color: var(--cream-hi); animation: twinkle 3s ease-in-out infinite; pointer-events: none; }
.spark.s1 { top: 14%; inset-inline-end: 22%; font-size: 30px; }
.spark.s2 { top: 44%; inset-inline-end: 9%; font-size: 18px; animation-delay: 1s; }
.spark.s3 { top: 30%; inset-inline-start: 58%; font-size: 14px; animation-delay: 2s; color: #fff; }

/* ── Photo tiles ── */
.t-photo .ph { position: absolute; inset: 10px; border-radius: 20px; overflow: hidden; }
.t-wed .ph { border-radius: 999px 999px 20px 20px; }
.t-photo .ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 6s ease;
}
.t-photo .ph img.on { opacity: 1; transform: scale(1); }
.t-photo .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(30, 10, 30, .55)); }

/* sticker label */
.tag {
  position: absolute; z-index: 1; inset-inline-start: 22px; bottom: 22px; max-width: calc(100% - 44px);
  display: flex; flex-direction: column; gap: 2px; padding: 12px 18px 12px;
  background: #fff; color: var(--plum); border-radius: 18px;
  box-shadow: 0 14px 30px -12px rgba(30, 10, 30, .5);
  transform: rotate(-2.5deg); transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.t-studio .tag { transform: rotate(2deg); }
.tag i { font-family: var(--f-latin); font-style: italic; font-size: 13px; color: var(--hot-2); }
.t-studio .tag i { color: #5b7a61; }
.t-book .tag i { color: var(--red); }
.tag b { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.25; }
html[lang="en"] .tag b { font-family: var(--f-latin); font-weight: 600; }
.tag u {
  text-decoration: none; align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--hot-2); padding: 4px 12px; border-radius: 99px;
  transition: gap .25s;
}
.t-studio .tag u { background: #5b7a61; }
.t-book .tag u { background: var(--red); }
.tag u::after { content: "←"; }
html[dir="ltr"] .tag u::after { content: "→"; }
.t-photo:hover .tag, .t-photo:focus-visible .tag { transform: rotate(0) translateY(-4px); }
.t-photo:hover .tag u { gap: 14px; }
.t-photo:hover .ph img.on { transform: scale(1.04); }

/* ── Pill tiles ── */
.t-pill { display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.t-pill .ic { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.t-map .ic { background: var(--plum); }
.t-pill .ic svg { width: 28px; height: 28px; fill: #fff; }
.t-pill .tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.t-pill i { font-family: var(--f-latin); font-style: italic; font-size: 12.5px; }
.t-pill b { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); }
html[lang="en"] .t-pill b { font-family: var(--f-latin); font-weight: 600; }
.t-pill small { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-pill:hover .ic, .t-pill:focus-visible .ic { transform: rotate(-12deg) scale(1.08); }

.t:focus-visible { outline: 4px solid var(--plum); outline-offset: 3px; }
.t-hero .lang:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── Ribbon ── */
.ribbon {
  overflow: hidden; direction: ltr; padding: 14px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reel { display: flex; gap: 10px; width: max-content; animation: reel 110s linear infinite; }
.reel img { height: 150px; width: auto; aspect-ratio: 934 / 1400; object-fit: cover; border-radius: 14px; }
.reel img:nth-child(4n+1) { border-radius: 99px 99px 14px 14px; }
.ribbon:hover .reel { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ── Footer ── */
.h-foot {
  width: min(1320px, 100% - 32px); margin: 0 auto; padding: 12px 0 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  font-size: 13.5px; color: var(--muted);
}
.h-foot a { text-decoration: none; }
.h-foot a:hover { color: var(--hot-2); }
.h-foot a:first-child { color: var(--hot-2); font-weight: 700; }

/* ── Tablet & phone ── */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas: "hero hero" "wed wed" "stu book" "wa wa" "map map";
    height: auto; min-height: 0; gap: 10px;
  }
  .t-hero { gap: 14px; flex-direction: row; align-items: center; padding: 22px 18px 24px; }
  .seal { width: 118px; flex: none; margin: 0; }
  .t-hero .lang { top: 12px; inset-inline-end: 12px; padding: 4px 11px; }
  .t-hero h1 { font-size: clamp(20px, 5.4vw, 30px); }
  html[lang="en"] .t-hero h1 { font-size: clamp(21px, 5.6vw, 32px); }
  .t-hero .name { font-size: 13px; margin-bottom: 10px; }
  .spark.s1 { top: 10px; inset-inline-end: 40%; font-size: 20px; }
  .spark.s2, .spark.s3 { display: none; }
  .t-wed { aspect-ratio: 4 / 3.6; }
  .t-studio, .t-book { aspect-ratio: 3 / 4.3; }
  .t-pill { height: 80px; }
  .tag { inset-inline-start: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 10px 14px; }
  .t-studio .tag, .t-book .tag { inset-inline-start: 12px; bottom: 14px; max-width: calc(100% - 24px); }
  .reel img { height: 120px; }
}
@media (max-width: 420px) {
  .seal { width: 96px; }
  .tag b { font-size: 15.5px; }
  .tag u { font-size: 12px; padding: 3px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .seal .ring, .seal img, .reel, .spark { animation: none; }
  .t-photo .ph img { transition: none; }
}
@media (max-width: 900px) {
  .t-studio .tag, .t-book .tag { padding: 8px 12px; border-radius: 14px; }
  .t-studio .tag b, .t-book .tag b { font-size: 15px; }
  .t-studio .tag u, .t-book .tag u { margin-top: 4px; }
}
