/* Yoonverse home, PART 1: sections 1 to 4 (hero, proof strip, proof cards, loop) */

/* ---------- 1. HERO ---------- */
.switch, .guides, .final, .faq, .loop { position: relative; }
.hero { position: relative; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 1.5rem);
  min-height: calc(100svh - 56px); display: flex; align-items: center; padding-bottom: 4.5rem; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 55% at 78% 40%, rgba(217,164,65,.22), transparent 70%), radial-gradient(40% 40% at 8% 90%, rgba(59,36,24,.32), transparent 70%); }
.hero-circle { position: absolute; width: min(62vw, 820px); right: -9vw; top: 50%; translate: 0 -52%; color: var(--ochre); opacity: .38; rotate: -12deg; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kicker { display: inline-block; position: relative; margin-bottom: var(--s-3); font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); color: var(--terracotta-deep); transform: rotate(-2deg); transform-origin: 0 100%; }
.kicker svg { display: block; width: 100%; height: .6rem; color: var(--orange); margin-top: -.1rem; overflow: visible; }
.kicker .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero h1 { font-size: clamp(2.35rem, 1.1rem + 3.9vw, 4.9rem); line-height: 1; letter-spacing: -.022em; font-variation-settings: "opsz" 96, "SOFT" 60; font-weight: 600; text-wrap: balance;
  animation: heroIn .9s .1s var(--ease-out) both; }
.hero-intro { margin-top: var(--s-4); max-width: 34rem; font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); line-height: 1.55; color: var(--brown-2); animation: heroIn .9s .3s var(--ease-out) both; }
.hero-cta { margin-top: var(--s-5); animation: heroIn .9s .45s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-vis { position: relative; justify-self: center; width: 100%; max-width: 640px; padding: 1rem 1rem 1.5rem; animation: windowIn 1.1s .25s var(--ease-spring) both; }
@keyframes windowIn { from { opacity: 0; transform: translateY(30px) rotate(-4deg) scale(.94); } to { opacity: 1; transform: none; } }
.paper-stack { position: relative; transform: rotate(1.6deg); }
.sheet { position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 2px 0 rgba(43,26,16,.08), 0 14px 24px -10px rgba(43,26,16,.3); }
.sheet-a { background: var(--ochre); transform: rotate(-3.4deg) translate(-10px, 8px); }
.sheet-b { background: var(--cream-3); transform: rotate(2.6deg) translate(12px, 12px); }
.window { position: relative; filter: drop-shadow(0 2px 0 rgba(43,26,16,.14)) drop-shadow(0 18px 22px rgba(43,26,16,.28)); }
.hero-video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cream-3);
  clip-path: url(#torn); -webkit-clip-path: url(#torn); border: 0; }
.washi-tl { top: -.9rem; left: -.6rem; width: 7rem; transform: rotate(-28deg); }
.float { position: absolute; z-index: 4; pointer-events: none; will-change: transform; }
.float svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 4px rgba(43,26,16,.25)); animation: bob 8s var(--ease-soft) infinite alternate; }
.f-leaf { width: clamp(46px, 6vw, 78px); left: -4%; bottom: 8%; rotate: -14deg; }
.f-star { width: clamp(40px, 5vw, 64px); right: -2%; top: -3%; rotate: 12deg; }
.f-star svg { animation-delay: -3s; }
.f-dot { width: clamp(22px, 2.6vw, 36px); aspect-ratio: 1; right: 8%; bottom: -1%; border-radius: 50%; background: var(--terracotta); box-shadow: var(--sh-2); }

.scroll-cue { position: absolute; left: 50%; bottom: 74px; z-index: 3; width: 1.6rem; margin-left: -.8rem; color: var(--terracotta-deep); animation: cue 1.8s var(--ease-soft) infinite; }
.scroll-cue svg { width: 100%; height: auto; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(9px); opacity: 1; } }

/* wipe reveal must keep some area visible or IntersectionObserver never fires */
.rv-wipe:not(.vis) { clip-path: inset(0 78% 0 0); opacity: 0; }
.rv-wipe.vis { opacity: 1; transition: clip-path 1s var(--ease-soft), opacity .3s; }

/* ---------- 2. PROOF STRIP ---------- */
.strip { position: relative; z-index: 2; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); }
.strip-title { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta-deep); font-variation-settings: normal; margin-bottom: var(--s-4); text-align: center; }
.strip-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem 1.1rem; }
.pt { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem .9rem 1.1rem; font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--brown);
  box-shadow: var(--sh-2); transition: transform .35s var(--ease-spring), box-shadow .3s; }
.pt svg { width: 1.45rem; height: 1.45rem; flex: none; }
.pt-1 { background: var(--terracotta); color: var(--white-paper); border-radius: 4px 18px 6px 18px; rotate: -2.4deg; }
.pt-2 { background: var(--ochre); clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 4% 50%); padding-inline: 1.7rem; border-radius: 0; rotate: 1.6deg; box-shadow: none; filter: drop-shadow(0 3px 3px rgba(43,26,16,.2)); }
.pt-3 { background: var(--green-2); color: var(--cream); border-radius: 28px 6px 24px 8px; rotate: -1.2deg; }
.pt-4 { background: var(--white-paper); border-radius: 8px 22px 8px 14px; rotate: 2.2deg; box-shadow: var(--sh-2), inset 0 0 0 2px rgba(43,26,16,.14); }
.pt:hover { translate: 0 -4px; box-shadow: var(--sh-3); }

/* ---------- 3. PROOF CARDS ---------- */
.proof { position: relative; padding: var(--s-8) 0 calc(var(--s-8) + 20px); }
.proof h2 { color: var(--cream); margin-bottom: var(--s-6); max-width: 16ch; }
.proof-grid { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: var(--s-5); align-items: stretch; }
.pcard { position: relative; padding: var(--s-5) var(--s-5) var(--s-5); color: var(--brown); background-color: var(--white-paper); background-image: var(--grain);
  border-radius: 6px 10px 6px 12px; box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 5px 0 -1px var(--cream-3), 0 10px 0 -2px var(--ochre), 0 26px 36px -12px rgba(0,0,0,.55);
  transition: transform .45s var(--ease-spring), box-shadow .3s; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.pcard::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(59,36,24,.32); border-radius: 4px; pointer-events: none; transition: inset .3s var(--ease-out), border-color .3s; }
.pcard > * { position: relative; z-index: 1; }
.pcard:hover { transform: translateY(-9px) rotate(-.5deg); }
.pcard:hover::after { inset: 7px; border-color: var(--terracotta); }
.pcard h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.pcard-big { grid-row: 1 / span 2; padding: clamp(2rem, 4vw, 3.5rem); justify-content: center; gap: var(--s-4); rotate: -.6deg; }
.pcard-big h3 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); }
.pcard-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); line-height: 1.38; color: var(--brown); font-variation-settings: "opsz" 48; max-width: none; }
.pcard-b { rotate: .8deg; background-color: var(--cream-2); }
.pcard-c { rotate: -.5deg; }
.pcard .arrow-link { margin-top: auto; padding-top: var(--s-2); }
.pcard .btn { margin-top: var(--s-2); }
.proof .rv-tilt:not(.vis) { opacity: 0; }

/* ---------- 4. THE LOOP ---------- */
.loop { position: relative; padding: clamp(6rem, 12vw, 11rem) 0 clamp(5rem, 10vw, 9rem); text-align: center; overflow: hidden; }
.loop-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.loop-mark { width: clamp(3.2rem, 6vw, 5rem); color: var(--ochre); margin-bottom: var(--s-3); rotate: -6deg; }
.loop h2 { font-size: clamp(2.6rem, 1.3rem + 6.4vw, 7rem); font-weight: 400; font-style: italic; letter-spacing: -.04em; line-height: .98; max-width: 14ch; color: var(--brown); }
.loop-text { margin-top: var(--s-5); max-width: 30rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--muted); text-align: center; padding-top: var(--s-4); position: relative; }
.loop-text::before { content: ""; position: absolute; top: 0; left: 50%; width: 5rem; height: 10px; margin-left: -2.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10' fill='none'%3E%3Cpath d='M2 6C14 1 22 9 36 5S62 2 78 6' stroke='%23b8532f' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; align-items: flex-start; padding-top: calc(var(--header-h) + .5rem); padding-bottom: 5.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero-vis { order: -1; max-width: none; padding: .8rem .6rem 1rem; }
  .hero-circle { width: 120vw; right: -50vw; top: 70%; }
  .scroll-cue { display: none; }
  .hero-video { aspect-ratio: 16 / 9.5; }
  .hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 2.6rem); }
  .hero-intro { font-size: 1.02rem; line-height: 1.5; margin-top: var(--s-3); }
  .hero-cta { margin-top: var(--s-4); gap: .7rem; }
  .hero .btn, .hero .btn-outline { min-height: 3rem; padding-block: .6rem; }
  .kicker { margin-bottom: var(--s-2); }
  .proof-grid { grid-template-columns: 1fr; }
  .pcard-big { grid-row: auto; }
}
@media (max-width: 700px) {
  .strip-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1);
    padding: .8rem var(--gutter) 1.4rem; scrollbar-width: none; }
  .strip-row::-webkit-scrollbar { display: none; }
  .pt { flex: none; scroll-snap-align: center; white-space: nowrap; }
  .strip-title { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .kicker .draw { animation: none; stroke-dashoffset: 0; }
  .hero h1, .hero-intro, .hero-cta, .hero-vis, .scroll-cue, .float svg { animation: none !important; }
  .pcard:hover, .pt:hover { transform: none; translate: none; }
}
/* END HOME PART 1 */

/* ===== HOME PART 2: sections 5 to 9 ===== */
:root { --slope: clamp(24px, 4vw, 64px); }
.switch { padding: var(--s-8) 0 calc(var(--s-8) + 10px); overflow: hidden; }
.switch h2 { max-width: 14ch; margin-bottom: var(--s-6); }

/* 5. folder tabs */
.folder { position: relative; max-width: 62rem; }
.tablist { display: flex; gap: 6px; padding-left: clamp(.5rem, 2vw, 1.5rem); position: relative; z-index: 2; margin-bottom: -2px; }
.tab { appearance: none; border: 0; cursor: pointer; font: 600 1.05rem/1 var(--font-body); color: var(--brown-2); padding: .95rem clamp(1.2rem, 3.2vw, 2.4rem) .85rem;
  background: var(--ochre); border-radius: 14px 22px 0 0; clip-path: polygon(0 100%, 0 14px, 8px 0, calc(100% - 22px) 0, 100% 100%);
  transform: translateY(7px); transition: transform .35s var(--ease-spring), background .25s, color .25s; position: relative; }
.tab:nth-child(2) { background: var(--cream-3); margin-left: -10px; }
.tab:nth-child(3) { background: #e9b9a0; margin-left: -10px; }
.tab:hover { transform: translateY(2px); }
.tab.on, .tab[aria-selected="true"] { background: var(--white-paper); color: var(--terracotta-deep); transform: translateY(0); z-index: 3; }
.tab:focus-visible { outline: 3px solid var(--orange); outline-offset: -5px; clip-path: none; border-radius: 14px 22px 0 0; }
.sw-body, .folder > .panel { background-color: var(--white-paper); background-image: var(--grain); }
.folder > .panel { position: relative; z-index: 1; min-height: clamp(18rem, 32vw, 26rem); padding: clamp(1.8rem, 4vw, 3.5rem); border-radius: 6px 22px 10px 14px;
  box-shadow: 0 1px 0 rgba(43,26,16,.1), 0 6px 0 -1px var(--cream-3), 0 12px 0 -2px var(--ochre), 0 28px 40px -14px rgba(43,26,16,.35); overflow: hidden; }
.sw-panel.on { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-5); align-items: center; animation: sheetIn .6s var(--ease-out) both; }
.sw-panel[hidden] { display: none; }
@keyframes sheetIn { from { opacity: 0; transform: translateX(60px) rotate(1.4deg); clip-path: inset(0 0 0 40%); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.sw-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.sw-text .lede { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.22; color: var(--brown); max-width: 24ch; }
.sw-art { width: 100%; max-width: 360px; justify-self: center; rotate: 3deg; filter: drop-shadow(0 14px 16px rgba(43,26,16,.28)); animation: artIn .9s .12s var(--ease-soft) both; }
@keyframes artIn { from { opacity: 0; transform: scale(.9) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* 6. framework fan */
.framework { padding: var(--s-8) 0 calc(var(--s-8) + 1rem); overflow: hidden; }
.fw-head { max-width: 38rem; margin-bottom: var(--s-6); }
.fw-head h2 { margin-bottom: var(--s-3); }
.fw-fan { list-style: none; margin: 0; padding: 1.5rem 0 2rem; display: flex; justify-content: center; }
.fw-tile { position: relative; flex: 0 0 clamp(150px, 19vw, 236px); min-height: clamp(380px, 38vw, 470px); margin-left: clamp(-34px, -2.4vw, -16px); padding: 1rem 1rem 1.4rem;
  display: flex; flex-direction: column; gap: .8rem; background-color: var(--white-paper); background-image: var(--grain); border-radius: 8px 14px 6px 16px;
  box-shadow: 0 1px 0 rgba(43,26,16,.12), 0 14px 26px -8px rgba(43,26,16,.38); transform-origin: 50% 100%; transition: transform .55s var(--ease-spring), box-shadow .35s; cursor: default; }
.fw-tile:first-child { margin-left: 0; }
.fw-1 { rotate: -7deg; translate: 0 18px; background-color: #f3e1b6; }
.fw-2 { rotate: -3.5deg; translate: 0 4px; background-color: #f1d3c0; z-index: 2; }
.fw-3 { rotate: 0deg; translate: 0 -8px; z-index: 3; }
.fw-4 { rotate: 3.5deg; translate: 0 4px; background-color: #d9e2cf; z-index: 2; }
.fw-5 { rotate: 7deg; translate: 0 18px; background-color: #f3e1b6; }
.fw-tile:hover, .fw-tile:focus-within { transform: translateY(-26px) rotate(-2deg) scale(1.05); z-index: 6; box-shadow: 0 1px 0 rgba(43,26,16,.12), 0 34px 40px -10px rgba(43,26,16,.45); }
.fw-5:hover { transform: translateY(-26px) rotate(2deg) scale(1.05); }
.fw-num { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(4.5rem, 7vw, 7rem); line-height: .8; color: var(--terracotta); font-variation-settings: "opsz" 144, "SOFT" 100; letter-spacing: -.04em; }
.fw-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px 12px 4px 10px; transition: transform .5s var(--ease-out); }
.fw-tile:hover img { transform: rotate(-3deg) scale(1.04); }
.fw-tile p { margin: auto 0 0; font-size: .98rem; line-height: 1.4; font-weight: 500; color: var(--brown); }

/* 7. guide cards */
.guides { padding: var(--s-8) 0 calc(var(--s-8) + 1rem); }
.guides h2 { color: var(--cream); margin-bottom: var(--s-6); }
.guides-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5) var(--s-5); align-items: start; }
.g-card { position: relative; background-color: var(--white-paper); background-image: var(--grain); color: var(--brown); border-radius: 4px 6px 12px 8px; overflow: hidden;
  box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 24px 34px -14px rgba(0,0,0,.6); transition: transform .5s var(--ease-spring); display: flex; flex-direction: column; }
.g-card:hover { transform: translateY(-8px) rotate(-.6deg); }
.g-card img { width: 100%; object-fit: cover; display: block; clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 97%, 87% 93%, 79% 98%, 70% 94%, 61% 99%, 52% 95%, 43% 98%, 34% 93%, 25% 98%, 16% 94%, 8% 98%, 0 94%); transition: transform .6s var(--ease-out); }
.g-card:hover img { transform: scale(1.04); }
.g-tall img { aspect-ratio: 4 / 4.6; }
.g-short img { aspect-ratio: 16 / 9; object-position: center 40%; }
.g-body { padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.g-body h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; }
.g-body p { color: var(--muted); font-size: 1rem; }
.g-body .arrow-link { margin-top: var(--s-2); }
.guides-grid > :nth-child(1) { grid-column: 1 / span 5; rotate: -.7deg; }
.guides-grid > :nth-child(2) { grid-column: 6 / span 7; margin-top: var(--s-6); rotate: .6deg; }
.guides-grid > :nth-child(3) { grid-column: 1 / span 7; margin-top: calc(var(--s-6) * -1); rotate: .5deg; }
.guides-grid > :nth-child(4) { grid-column: 8 / span 5; margin-top: calc(var(--s-6) * -.4); rotate: -.8deg; }
.guides-grid > :nth-child(3), .guides-grid > :nth-child(2) { flex-direction: column; }

/* 8. FAQ conversation */
.faq { padding: var(--s-8) 0 calc(var(--s-8) + var(--slope)); background-color: var(--cream); background-image: var(--grain); }
.faq h2 { margin-bottom: var(--s-6); }
.faq-list { max-width: 64rem; }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-3) clamp(2rem, 6vw, 5rem); padding: var(--s-5) 0; position: relative; }
.faq-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 10px; opacity: .75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 5C30 1 55 9 90 5S150 2 190 6 260 9 300 5 370 2 400 5' stroke='%23b8532f' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.faq-row:last-child::after { display: none; }
.faq-row h3 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.12; font-weight: 600; color: var(--brown); text-wrap: balance; }
.faq-row p { font-size: var(--fs-body); color: var(--brown-2); padding-left: 1.1rem; border-left: 3px solid var(--ochre); border-radius: 2px; align-self: center; }
.faq-row:nth-child(even) p { border-left-color: var(--terracotta); }

/* 9. final CTA */
.final { margin-top: calc(var(--slope) * -1); z-index: 2; padding: clamp(5.5rem, 10vw, 9rem) 0 clamp(4.5rem, 8vw, 7.5rem); overflow: hidden; color: var(--white-paper); background-color: var(--terracotta); }
.final-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 320px); gap: var(--s-5); align-items: center; }
.final h2 { font-size: clamp(2.4rem, 1.2rem + 5.4vw, 5.6rem); line-height: .98; letter-spacing: -.03em; color: var(--white-paper); max-width: 15ch; font-weight: 600; }
.final .lede { color: #ffe9d6; margin: var(--s-4) 0 var(--s-5); max-width: 28rem; }
.final .btn-paper { background: var(--white-paper); color: var(--terracotta-deep); }
.final .btn-paper:hover { background: var(--brown); color: var(--cream); }
.final :focus-visible { outline-color: var(--white-paper); }
.final-art { width: 100%; justify-self: end; align-self: end; rotate: 9deg; translate: 6% 14%; filter: drop-shadow(0 18px 20px rgba(43,26,16,.38)); }

@media (max-width: 900px) {
  .sw-panel.on { grid-template-columns: 1fr; }
  .sw-art { max-width: 220px; justify-self: end; margin-top: calc(var(--s-4) * -1); }
  .fw-fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-3); margin-inline: calc(var(--gutter) * -1); padding: 2rem var(--gutter) 2.5rem; scrollbar-width: none; }
  .fw-fan::-webkit-scrollbar { display: none; }
  .fw-tile { flex: 0 0 min(66vw, 250px); min-height: 0; margin-left: 0; scroll-snap-align: center; rotate: 0deg !important; translate: none !important; }
  .fw-tile:nth-child(odd) { rotate: -1.5deg !important; } .fw-tile:nth-child(even) { rotate: 1.5deg !important; }
  .fw-tile:hover { transform: translateY(-8px); }
  .guides-grid { display: flex; flex-direction: column; gap: var(--s-5); }
  .guides-grid > .g-card { margin-top: 0 !important; }
  .g-tall img, .g-short img { aspect-ratio: 16 / 10; }
  .faq-row { grid-template-columns: 1fr; }
  .final-in { grid-template-columns: 1fr; }
  .final-art { width: 55%; max-width: 230px; justify-self: end; margin-top: calc(var(--s-5) * -1); translate: 8% 18%; }
}
@media (max-width: 480px) { .tab { padding-inline: 1.05rem; font-size: .98rem; } .tablist { padding-left: .25rem; } }

/* scroll-linked entrances where supported (no extra markup needed) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fw-tile { animation: fanIn linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .g-card { animation: cutIn linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .faq-row h3 { animation: qIn linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .faq-row p { animation: aIn linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .final-art { animation: stickIn linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes fanIn { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes cutIn { from { opacity: 0; clip-path: inset(18% 0 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes qIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes aIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes stickIn { from { opacity: 0; transform: scale(1.25) rotate(14deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sw-panel.on, .sw-art { animation: none; }
  .tab, .fw-tile, .g-card, .fw-tile img, .g-card img { transition: none; }
  .fw-tile:hover, .g-card:hover, .tab:hover { transform: none; }
}
/* END HOME PART 2 */
/* M5 refinements */
.folder { max-width: none; }
.fw-tile { flex-basis: clamp(160px, 21vw, 256px); margin-left: clamp(-14px, -1vw, -6px); }
.fw-tile p { font-size: .95rem; }
.guides-grid > :nth-child(2) { margin-top: var(--s-7); }
.guides-grid > :nth-child(3) { margin-top: 0; }
.guides-grid > :nth-child(4) { margin-top: var(--s-6); }
@media (max-width: 900px) { .guides-grid > :nth-child(n) { rotate: 0deg; } .guides-grid > :nth-child(odd) { rotate: -.5deg; } }
.switch, .final { overflow-x: clip; overflow-y: visible; }
.final { margin-top: 0; }
.faq { clip-path: none; padding-bottom: var(--s-8); }
@media (max-width: 900px) { .sw-art { margin-top: 0; max-width: 200px; } .fw-fan { align-items: stretch; } }
