/* ---------- landing page ---------- */
body.home { overflow: hidden; height: 100svh; }
.home__main {
  position: relative; z-index: 5; height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: center;
  padding: 0 clamp(20px, 4.5vw, 84px) 52px; column-gap: clamp(20px, 3vw, 56px);
}

.hero {
  position: relative; z-index: 6; pointer-events: none; user-select: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-self: start;
  max-width: 100%;
}
.hero__title {
  font-family: var(--font-hand); font-weight: 700; color: var(--violet-soft);
  font-size: clamp(24px, 3vw, 46px); line-height: 1; margin: 0 0 .35em .4em;
  opacity: 0; animation: hero-in 1s var(--ease-out) .2s forwards;
}
.hero__name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: min(10.2vw, 20vh); line-height: .9; letter-spacing: -.035em; color: var(--violet);
  display: flex; align-items: flex-end;
  filter: drop-shadow(0 10px 20px rgba(109, 91, 186, .25));
}
.hero__name > span { display: block; }
.hero__flower {
  position: relative; width: .27em; height: 1em; margin: 0 .02em 0 .01em; flex: none;
  display: flex; align-items: flex-end;
  animation: hero-sway 6s ease-in-out infinite; transform-origin: 50% 100%;
}
.hero__flower svg { width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; filter: drop-shadow(0 4px 6px rgba(109, 91, 186, .15)); }
.hero__last {
  align-self: flex-end;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 4.6vw, 72px); line-height: 1; letter-spacing: -.02em; color: var(--violet);
  margin: .1em 1.2vw 0 0;
  opacity: 0; animation: hero-in 1s var(--ease-out) 1.3s forwards;
}
.hero__contact {
  pointer-events: auto; margin: 2.2em 0 0 .5em;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--violet-ink);
  opacity: 0; animation: hero-in 1s var(--ease-out) 1.7s forwards;
}
.hero__contact .label { font-size: 10px; }
.hero__contact a { padding: 8px 14px; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--violet); transition: background .3s, color .3s; text-transform: none; }
.hero__contact a:hover { background: var(--violet); color: var(--cream); }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hero-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

/* four gold frames in a tidy 2 x 2 grid on the right half; they arrive one after another */
.frames {
  /* composites are 1270 x 1520 (h = 1.197 w); two rows + label plaques must fit under the nav */
  --fw: min(calc((58vw - 12vw) / 2), calc((100svh - var(--nav-h) - 52px - 66px) / 2.394));
  position: relative; z-index: 4; justify-self: center;
  display: grid; grid-template-columns: repeat(2, var(--fw)); column-gap: clamp(24px, 2.8vw, 48px); row-gap: 40px;
}
.frame {
  position: relative; width: var(--fw);
  display: block; user-select: none; -webkit-user-drag: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)) scale(var(--s, 1));
  transition: transform .5s var(--ease-out), filter .5s;
  filter: drop-shadow(0 16px 24px rgba(74, 61, 140, .24));
  opacity: 0; animation: frame-in .9s var(--ease-out) forwards; animation-delay: calc(.45s + var(--i, 0) * .45s);
}
@keyframes frame-in {
  0% { opacity: 0; transform: translate3d(0, 30px, 0) scale(.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)) scale(1); }
}
.frame.is-ready { animation: none; opacity: 1; }
.frame:hover { --s: 1.04; z-index: 20; filter: drop-shadow(0 26px 34px rgba(74, 61, 140, .32)) brightness(1.03); }
.frame__img { width: 100%; height: auto; pointer-events: none; }
.frame__label {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(16px, 1.45vw, 23px); line-height: 1; white-space: nowrap;
  color: var(--violet-ink); background: var(--paper); padding: 6px 14px 7px; border-radius: 3px;
  box-shadow: 0 8px 16px -8px rgba(74, 61, 140, .45), inset 0 0 0 1px rgba(201, 168, 106, .55);
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.frame__label::before { content: "→ "; opacity: .6; }
.frame:hover .frame__label { transform: translate(-50%, 50%); background: var(--violet); color: var(--cream); }

.home .site-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding-bottom: 22px; }

/* ---- responsive ---- */
@media (max-width: 1180px) and (min-width: 821px) {
  .home__main { grid-template-columns: minmax(0, 1fr) auto; }
  .frames { --fw: min(calc((58vw - 9vw) / 2), calc((100svh - var(--nav-h) - 52px - 66px) / 2.394)); }
  .hero__name { font-size: min(9.4vw, 19vh); }
}
@media (max-width: 820px) {
  body.home { overflow: auto; height: auto; }
  .home__main { display: block; height: auto; min-height: 0; padding: 0 0 40px; }
  .hero { margin: 4vh auto 0; padding: 0 20px; width: 100%; }
  .hero__name { font-size: 24vw; }
  .hero__last { font-size: 9vw; margin-right: 0; }
  .hero__contact { margin: 1.4em 0 0 .2em; flex-wrap: wrap; pointer-events: auto; }
  .frames { --fw: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 18px; padding: 6vh 20px 0; }
  .frame { width: auto; --px: 0px !important; --py: 0px !important; animation-delay: calc(.3s + var(--i, 0) * .3s); }
  .frame__label { font-size: 16px; padding: 5px 10px 6px; }
  .home .site-foot { position: static; }
}
