/* =============================================================
   YoussCreations — stylesheet
   1. Tokens         6. Home             11. Project window
   2. Base           7. About            12. Image grids
   3. Type & buttons 8. Room pages       13. Embeds & lightbox
   4. Header & menu  9. Banner cards     14. Footer & motion
   5. Shared blocks  10. Inline rooms    15. Small screens
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #f3f3f1;
  --line: #e3e3df;
  --text: #0b0b10;
  --text-2: #3a3a42;
  --muted: #6e6e75;
  --blue: #1d3bff;
  --red: #ff2e2e;
  --font-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
::selection { background: var(--blue); color: #fff; }
main, #site-footer { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 3. Type & buttons -------------------------------------------- */
.display { font: 800 clamp(48px, 10vw, 168px)/.92 var(--font-display); letter-spacing: -.04em; }
h2 { font: 700 clamp(32px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.03em; }
h3 { font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 46ch; }
.muted { color: var(--muted); }
.num { font: 600 13px var(--font-body); color: var(--red); letter-spacing: .06em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 4. Header & menu --------------------------------------------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
#site-header.scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border-color: var(--line); }
.logo { display: inline-block; position: relative; z-index: 2; font: 800 21px/.8 var(--font-display); letter-spacing: -.03em; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { position: relative; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); }
.menu-btn { display: none; position: relative; z-index: 2; width: 40px; height: 40px; }
.menu-btn span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: .3s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

/* 5. Shared blocks --------------------------------------------- */
.section { padding-top: clamp(64px, 10vw, 140px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.page-head { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(24px, 5vh, 60px); }
.page-head .lead { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col p + p { margin-top: 16px; }
.two-col > div > p { color: var(--text-2); }
.two-col .lead { color: var(--text); }
.page-head .two-col .lead { max-width: none; color: var(--muted); }

.photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 22px 0; border-block: 1px solid var(--line); }
.track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.track span { padding: 0 28px; font: 700 clamp(22px, 3vw, 40px) var(--font-display); white-space: nowrap; }
.track i { align-self: center; font-style: normal; color: var(--red); }
.marquee.logos { margin-top: clamp(48px, 7vw, 96px); padding: 34px 0; }
.marquee.logos .track { align-items: center; animation-duration: 45s; }
.marquee.logos:hover .track { animation-play-state: paused; }
.marquee.logos img { width: auto; margin: 0 44px; opacity: .8; }
.marquee.logos i { font-size: 18px; }
body.no-scroll .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

.next-page { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(80px, 10vw, 140px); padding: 48px 0; border-top: 1px solid var(--line); }
.next-page strong { font: 800 clamp(36px, 7vw, 110px)/1 var(--font-display); letter-spacing: -.04em; transition: color .3s; }
.next-page:hover strong { color: var(--blue); }

/* 6. Home ------------------------------------------------------ */
.hero {
  display: grid; grid-template-columns: 7fr 5fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 5vh, 60px) 0 clamp(40px, 8vh, 90px);
}
.hero-title { margin-bottom: 28px; font: 800 clamp(40px, 5.2vw, 84px)/1 var(--font-display); letter-spacing: -.035em; }
.welcome { max-width: 60ch; margin-bottom: 32px; }
.welcome p { color: var(--text-2); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; }
.welcome p + p { margin-top: 12px; }
.hero-side { position: relative; }
.hero-side::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 32%;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.hero-credit { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; line-height: 1.7; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 calc(var(--gutter) * -1); background: var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; gap: 6px; padding: 36px var(--gutter); background: var(--bg); }
.stats strong { font: 800 clamp(36px, 4vw, 60px)/1 var(--font-display); }
.stats strong::after { content: ""; display: inline-block; vertical-align: top; width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: var(--red); }
.stats span { color: var(--muted); font-size: 14px; }

.rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.room { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; padding: 14px; border-radius: calc(var(--radius) + 6px); background: var(--surface); transition: background .3s; }
.room:nth-child(-n + 2) { grid-column: span 3; }
.room:hover { background: #ebebe8; }
.room-thumb { position: relative; overflow: hidden; aspect-ratio: 1616 / 1264; border-radius: 10px; background: var(--text); container-type: inline-size; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room:hover .room-thumb img { transform: scale(1.03); }
.room-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 39.6%; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw; padding: 0 0 7cqw 4cqw; color: #fff; }
.room-panel .n { display: flex; align-items: center; gap: 1.4cqw; font: 600 2.1cqw/1 var(--font-body); letter-spacing: .08em; }
.room-panel .n i { width: 4cqw; height: 2px; background: currentColor; opacity: .7; }
.room-panel strong { padding-right: 2cqw; font: 700 5.3cqw/1.02 var(--font-display); letter-spacing: -.02em; }
.room-panel em { padding-right: 5cqw; font: 400 1.8cqw/1.4 var(--font-body); font-style: normal; opacity: .75; }
.room-panel b { width: 78%; height: .45cqw; margin-top: 2.6cqw; border-radius: 1cqw; background: var(--red); }
.room-count { align-self: flex-end; padding: 2px 8px 4px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.room:hover .room-count { color: var(--red); }

.about-teaser { display: grid; grid-template-columns: 5fr 7fr; align-items: start; gap: clamp(32px, 6vw, 96px); }
.about-teaser .lead { margin-bottom: 28px; color: var(--muted); }
.awards-mini { display: grid; gap: 10px; margin-bottom: 32px; list-style: none; }
.awards-mini b { font-weight: 600; }
.awards-mini span { color: var(--muted); font-size: 14px; }

/* Headline with a blue block behind it; letters turn white where they cross it */
.cut-title { position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin: 14px 0 24px; --cut-x: 24%; --cut-y: 14px; }
.cut-title::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--cut-y) * -1) var(--cut-x); border-radius: 4px; background: var(--blue); }
.cut-base { display: block; }
.cut-over { position: absolute; inset: 0; color: #fff; pointer-events: none; clip-path: inset(calc(var(--cut-y) * -1) var(--cut-x)); }
.nowrap { white-space: nowrap; }
.red-period { position: relative; display: inline-block; }
.red-period::after { content: ""; position: absolute; left: .0575em; top: .7075em; width: .157em; height: .12em; background: var(--red); }

/* Easter egg: the backflipping cursor */
.flip-trigger { cursor: none; text-decoration: underline dotted var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.flip-cursor { position: fixed; left: 0; top: 0; z-index: 300; opacity: 0; pointer-events: none; }
.flip-cursor svg { display: block; transform-origin: 40% 55%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.flip-cursor.on { opacity: 1; }
.flip-cursor.loop svg { animation: backflip 1.1s cubic-bezier(.45, .05, .4, 1) infinite; }
.flip-cursor.once svg { animation: backflip 1s cubic-bezier(.45, .05, .4, 1); }
.flip-note { max-height: 0; overflow: hidden; opacity: 0; font-style: italic; color: var(--muted); transition: max-height .5s, opacity .5s, margin-top .5s; }
.welcome .flip-note { margin-top: 0; }
.welcome .flip-note.show { max-height: 3em; opacity: 1; margin-top: 12px; }
@keyframes backflip {
  0%   { transform: translateY(0) rotate(0); }
  15%  { transform: translateY(3px) scaleY(.85) rotate(0); }
  50%  { transform: translateY(-34px) rotate(-180deg); }
  85%  { transform: translateY(0) rotate(-360deg); }
  92%  { transform: translateY(2px) scaleY(.9) rotate(-360deg); }
  100% { transform: translateY(0) rotate(-360deg); }
}

/* 7. About ----------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.page-head + .about-intro { padding-top: clamp(32px, 4vw, 56px); }
.about-intro .lead + .lead { margin-top: 20px; color: var(--muted); }
.meta-line { margin: 28px 0 20px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.timeline { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.job-when { color: var(--blue); font-weight: 600; }
.job h3 span { color: var(--muted); font-weight: 500; }
.job ul { display: grid; gap: 8px; max-width: 72ch; margin-top: 16px; padding-left: 18px; color: var(--text-2); }
.job li::marker { color: var(--red); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; }
.list { margin-top: 18px; list-style: none; border-top: 1px solid var(--line); }
.list li { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list b { font-weight: 600; }
.list span { color: var(--muted); font-size: 14px; }
.room-links { border-top: 1px solid var(--line); }
.room-links a {
  display: flex; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line);
  font: 700 clamp(26px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.02em;
  transition: padding .3s, color .3s;
}
.room-links a i { margin-left: auto; font-style: normal; color: var(--muted); }
.room-links a:hover { padding-left: 16px; color: var(--blue); }

/* 8. Room pages: description next to the intro ------------------ */
.head-desc p { color: var(--text-2); }

/* 9. Banner cards (two per row, all 4:1) ------------------------ */
.cards { display: flex; flex-direction: column; gap: 44px; }
.card-row { display: flex; align-items: flex-start; gap: 20px; }
.card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card.spacer { visibility: hidden; }
.card-img { position: relative; overflow: hidden; aspect-ratio: 4 / 1; border-radius: var(--radius); background: var(--card-bg, var(--surface)); }
.card-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(11, 11, 16, .08); pointer-events: none; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card-img img.fill { object-fit: cover; }
.card:hover .card-img img { transform: scale(1.03); }
.card-info { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; }
.card-info h3 { font-size: 26px; transition: color .2s; }
.card-info p { grid-column: 2; color: var(--muted); font-size: 14px; }
.card:hover h3 { color: var(--red); }

/* 10. Inline rooms (every project on the page) ------------------ */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jump a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.jump a span { color: var(--red); font-size: 12px; font-weight: 600; }
.jump a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.jump a:hover span { color: #fff; }
.inline-work { padding-top: clamp(56px, 8vw, 110px); scroll-margin-top: 70px; }
.inline-work + .inline-work { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.inline-work .banner { margin: 0 0 32px; }
.inline-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 14px; margin-bottom: 32px; }
.inline-head h2 { grid-column: 1 / -1; font-size: clamp(40px, 6vw, 88px); line-height: .95; }
.inline-work .two-col { margin-bottom: 56px; }
.inline-work .gsection:first-of-type { margin-top: 56px; }

/* 11. Project window -------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; overflow-y: auto; opacity: 0; pointer-events: none; background: rgba(11, 11, 16, .45); backdrop-filter: blur(6px); transition: opacity .3s; will-change: opacity; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-inner {
  position: relative; max-width: 1200px; margin: 40px auto; padding: clamp(24px, 5vw, 64px);
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(11, 11, 16, .18);
  transform: translateY(30px); transition: transform .4s var(--ease);
}
.modal.open .modal-inner { transform: none; }
.modal-inner .two-col { margin-bottom: 56px; }
.close {
  position: sticky; top: 0; z-index: 2; display: block; width: 48px; height: 48px; margin: 0 0 -48px auto;
  border-radius: 50%; background: var(--surface); box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  font-size: 28px; line-height: 48px; text-align: center;
}
.close:hover { background: var(--blue); color: #fff; }
.modal-title { margin: 16px 0 40px; font-size: clamp(40px, 7vw, 96px); line-height: .95; }
.banner { margin: -8px 0 40px; overflow: hidden; border-radius: 12px; background: var(--surface); }
.banner img { width: 100%; height: auto; }
.role { margin: 28px 0; padding: 20px; border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; background: var(--surface); }
.role p { margin-top: 6px; }

/* 12. Image grids (never crop) ---------------------------------- */
.gsection { margin-top: 72px; }
.gsection-head { display: grid; grid-template-columns: 1fr 1.4fr; align-items: baseline; gap: 32px; margin-bottom: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.gsection-head h3 { font-size: clamp(22px, 2.4vw, 32px); }
.gsection-head p { max-width: 60ch; color: var(--text-2); }
.grid { display: flex; flex-direction: column; gap: 12px; }
.tile { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 10px; background: var(--surface); cursor: zoom-in; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.g-full .tile { aspect-ratio: var(--r); }
.g-row { display: flex; gap: 12px; }
.g-row .tile { flex: var(--r) 1 0; aspect-ratio: var(--r); }
.g-row.solo { justify-content: center; }
.g-row.solo .tile { flex: none; width: min(100%, 560px); }
.g-feature { display: flex; align-items: flex-start; gap: 12px; }
.g-feature.flip { flex-direction: row-reverse; }
.g-feature > .tile, .g-col { flex: none; }
.g-col { display: flex; flex-direction: column; gap: 12px; }
.g-carousel { display: grid; grid-template-columns: repeat(calc(var(--cols) + 2), 1fr); gap: 12px; }
.g-carousel .tile { aspect-ratio: var(--r); }
.g-carousel .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* 13. Embeds & lightbox ----------------------------------------- */
.embeds { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.grid + .embeds { margin-top: 40px; }
.embed { flex: var(--wn) 1 0; min-width: 0; max-width: var(--w); }
.embed h4 { margin-bottom: 12px; font: 700 18px/1.2 var(--font-display); }
.embed-frame { overflow: hidden; aspect-ratio: var(--r); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.embed-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed figcaption { margin-top: 10px; font-size: 14px; text-align: center; }
.embed figcaption a { color: var(--blue); }
.embed figcaption a:hover { color: var(--red); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; background: rgba(11, 11, 16, .94); transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 88px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; text-align: center; }
.lightbox button:hover { background: var(--blue); }
.lightbox .lb-close { top: 20px; right: 20px; font-size: 30px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }

/* 14. Footer & motion ------------------------------------------- */
#site-footer { margin-top: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); }
.footer-cta { display: flex; flex-direction: column; gap: 16px; padding: 64px 0; }
.big-link { font: 800 clamp(28px, 6vw, 88px)/1 var(--font-display); letter-spacing: -.03em; word-break: break-word; transition: color .3s; }
.big-link:hover { color: var(--blue); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row .links { display: flex; gap: 20px; }
.footer-row a:hover { color: var(--blue); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .track, .flip-cursor svg { animation: none !important; }
}

/* 15. Small screens --------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-side { order: -1; max-width: 420px; }
  .page-head { padding-top: 16px; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .room, .room:nth-child(-n + 2) { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-teaser, .about-intro, .two-col, .facts { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter);
    background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a { font: 700 40px/1.2 var(--font-display); color: var(--text); }
  .nav a.active { color: var(--blue); }
  .nav a.active::after { display: none; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  body.menu-open #site-header { background: var(--bg); backdrop-filter: none; }
  .rooms { grid-template-columns: 1fr; }
  .marquee.logos img { margin: 0 26px; transform: scale(.75); }
  .card-row { flex-direction: column; gap: 32px; }
  .card { flex: none; width: 100%; }
  .card.spacer { display: none; }
  .gsection-head { grid-template-columns: 1fr; gap: 10px; }
  .embeds { flex-direction: column; align-items: center; }
  .embed { flex: none; width: min(100%, var(--w)); }
  .modal-inner { min-height: 100%; margin: 0; border-radius: 0; }
  .lb-stage { padding: 72px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
@media (max-width: 700px) {
  .g-carousel { grid-template-columns: repeat(3, 1fr); }
  .g-carousel .tile:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: var(--r); height: auto; }
}
