/* ==========================================================================
   NIVARO CGI — section styles for Series, Anatomy, Formats, Packs,
   image backdrops and the phone quick-action. Tokens come from styles.css.
   ========================================================================== */

@keyframes push { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes kb-a { from { transform: scale(1.02) translate3d(-1.5%, 0, 0); } to { transform: scale(1.12) translate3d(1.5%, -1%, 0); } }
@keyframes kb-b { from { transform: scale(1.12) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1.5%, 0, 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Shared: slow cross-fading image backdrops ---------- */
.has-bg { isolation: isolate; overflow: clip; }
.bgloop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --bg-o: .24; --bg-fade: var(--ink-900); }
.bgloop::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg-fade) 0, rgba(8, 8, 10, .3) 24%, rgba(8, 8, 10, .45) 76%, var(--bg-fade) 100%),
    radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(8, 8, 10, .5) 100%); }
.bgloop__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 2.8s var(--ease-io); }
.bgloop__layer.is-active { opacity: var(--bg-o); }
.bgloop__layer .media { position: absolute; inset: -5%; aspect-ratio: auto; animation: kb-a 24s ease-in-out infinite alternate; will-change: transform; }
.bgloop__layer:nth-child(even) .media { animation-name: kb-b; }
.bgloop__layer:not(.is-active) .media { animation-play-state: paused; }
.contact .bgloop::after { display: none; }

/* sections that use .has-bg keep their own background colour */
.formats { background: var(--ink-950); }
.packs { background: var(--ink-900); }

/* ---------- Work additions ---------- */
.work__tags { grid-column: 2; margin-top: .35rem; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); opacity: .9; }
.viewer__tags { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ==========================================================================
   SERIES — one object, four moods
   Phones/tablets: swipeable carousel. Desktop: expanding panels.
   ========================================================================== */
.series { background: var(--ink-950); overflow: clip; }
.series__rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.series__rail::-webkit-scrollbar { display: none; }
.series__item { position: relative; flex: 0 0 min(80vw, 380px); scroll-snap-align: center; display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.series__tab { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); cursor: default; }
.series__slot .media { aspect-ratio: 4 / 5; }
.series__info { display: grid; gap: .8rem; padding-inline: .2rem; }
.series__num { font-size: .75rem; font-weight: 500; letter-spacing: .16em; color: var(--gold); }
.series__title { font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.025em; }
.series__spec { display: grid; gap: .7rem; margin: 0; }
.series__spec div { display: grid; gap: .1rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.series__spec dt { font-size: .625rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.series__spec dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ivory-dim); }

@media (min-width: 1000px) {
  .series__rail { overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; gap: 14px; height: clamp(540px, 66vh, 720px); }
  .series__item { flex: 1 1 0; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: flex-grow 1s var(--ease), border-color .6s var(--ease); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }
  .series__item.is-active { flex-grow: 3.5; border-color: rgba(207, 169, 104, .45); }
  .series__tab { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; }
  .series__tab::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 10, .42); transition: background-color .8s var(--ease); }
  .series__item.is-active .series__tab::after { background: rgba(8, 8, 10, 0); }
  .series__slot, .series__slot picture { height: 100%; }
  .series__slot .media { aspect-ratio: auto; height: 100%; }
  .series__slot .media img { transition: opacity .9s var(--ease), scale 1.6s var(--ease); scale: 1.12; }
  .series__item.is-active .series__slot .media img { scale: 1; }
  .series__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2.2vw, 34px); gap: .6rem; pointer-events: none;
    background: linear-gradient(0deg, rgba(8, 8, 10, .9) 0, rgba(8, 8, 10, .6) 58%, transparent 100%); }
  .series__title, .series__spec { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .8s var(--ease); }
  .series__item.is-active .series__title, .series__item.is-active .series__spec { opacity: 1; translate: 0 0; transition-delay: .35s; }
  .series__spec { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: .4rem; }
  .series__spec dd { font-size: .8125rem; }
}

/* ==========================================================================
   ANATOMY — zoomable hotspots on a native-resolution render
   ========================================================================== */
.anatomy { background: var(--ink-900); overflow: clip; }
.anatomy::before { content: ""; position: absolute; right: -10%; top: 20%; width: 50%; aspect-ratio: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(207, 169, 104, .08), transparent 70%); }
.anatomy__grid { position: relative; display: grid; gap: 1.4rem; }
.anatomy__stage { position: relative; overflow: hidden; aspect-ratio: 2816 / 1536; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-850); box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .95); }
.anatomy__zoom { position: absolute; inset: 0; transform-origin: 0 0; transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--zs, 1)); transition: transform 1.4s var(--ease); will-change: transform; }
.anatomy__zoom .media { position: absolute; inset: 0; aspect-ratio: auto; }

.hotspot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; scale: calc(1 / var(--zs, 1)); transition: scale 1.4s var(--ease); }
.hotspot__dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(207, 169, 104, .28); transition: background-color .4s, box-shadow .5s var(--ease); }
.hotspot__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold-bright); animation: ping 2.6s var(--ease-io) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (max-width: 599px) { .hotspot__dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(207, 169, 104, .28); } .hotspot__dot::after { inset: -4px; } }
.hotspot__num { position: absolute; left: 50%; top: calc(100% - 4px); translate: -50% 0; padding: .15rem .5rem; border-radius: 999px; font-size: .625rem; font-weight: 500; letter-spacing: .12em; color: var(--ink-950); background: var(--ivory); opacity: 0; transition: opacity .4s; pointer-events: none; }
.hotspot:hover .hotspot__num, .hotspot:focus-visible .hotspot__num, .hotspot.is-active .hotspot__num { opacity: 1; }
.hotspot.is-active .hotspot__dot { background: var(--ivory); box-shadow: 0 0 0 7px rgba(242, 237, 227, .3); }
.hotspot.is-active .hotspot__dot::after { animation: none; opacity: 0; }

.anatomy__side { display: grid; gap: 1rem; align-content: start; }
.anatomy__list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: .2rem var(--gutter); scrollbar-width: none; }
.anatomy__list::-webkit-scrollbar { display: none; }
.anat__item { flex: 0 0 auto; scroll-snap-align: start; }
.anat__btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .6rem 1.05rem; border-radius: 999px; white-space: nowrap; font-size: .875rem; color: var(--ivory-dim); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); transition: background-color .4s, color .4s, border-color .4s; }
.anat__btn:hover { border-color: var(--gold); color: var(--ivory); }
.anat__btn[aria-pressed="true"] { background: var(--ivory); color: var(--ink-950); border-color: var(--ivory); }
.anat__n { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; color: var(--gold); }
.anat__btn[aria-pressed="true"] .anat__n { color: var(--gold-ink); }
.anat__d { display: none; }
.anatomy__detail { min-height: 3.3em; font-size: 1rem; line-height: 1.55; color: var(--ivory-dim); }
.anatomy__reset { width: fit-content; }

@media (min-width: 1000px) {
  .anatomy__grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, .9fr); gap: clamp(28px, 3.4vw, 64px); align-items: start; }
  .anatomy__list { display: grid; gap: 0; overflow: visible; margin: 0; padding: 0; }
  .anat__item { border-top: 1px solid var(--line); }
  .anat__item:last-child { border-bottom: 1px solid var(--line); }
  .anat__btn { width: 100%; min-height: 0; padding: 1.1rem 0; border: 0; border-radius: 0; background: none; justify-content: flex-start; gap: 1.1rem; white-space: normal; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.02em; color: var(--ivory-dim); }
  .anat__btn:hover { color: var(--ivory); }
  .anat__btn[aria-pressed="true"] { background: none; color: var(--ivory); }
  .anat__btn[aria-pressed="true"] .anat__n { color: var(--gold); }
  .anat__d { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: .9375rem; line-height: 1.55; max-width: 38ch; transition: max-height .9s var(--ease), opacity .6s var(--ease), padding .6s var(--ease); }
  .anat__item.is-active .anat__d { max-height: 8rem; opacity: 1; padding-bottom: 1.2rem; }
  .anatomy__detail { display: none; }
}

/* ==========================================================================
   FORMATS — the same render framed for every channel
   ========================================================================== */
.fmt-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: clamp(28px, 4vw, 52px); }
.fmt-picker__label { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.fmt-picker__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.fmt-pick { display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; padding: .35rem 1.15rem .35rem .35rem; border-radius: 999px; font-size: .875rem; color: var(--ivory-dim); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .4s, color .4s, border-color .4s; }
.fmt-pick:hover { border-color: var(--gold); color: var(--ivory); }
.fmt-pick[aria-pressed="true"] { background: var(--ivory); color: var(--ink-950); border-color: var(--ivory); }
.fmt-pick__thumb { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; }
.fmt-pick__thumb .media { width: 100%; height: 100%; aspect-ratio: auto; }

.formats__stage { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: .4rem var(--gutter) 1.2rem; scrollbar-width: none; }
.formats__stage::-webkit-scrollbar { display: none; }
.fmt { flex: 0 0 auto; scroll-snap-align: center; display: grid; gap: .9rem; margin: 0; }
.fmt--reel { width: min(54vw, 230px); }
.fmt--portrait { width: min(66vw, 270px); }
.fmt--square { width: min(66vw, 270px); }
.fmt--wide { width: min(86vw, 420px); }
.fmt__device { position: relative; overflow: hidden; background: #000; border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 50px 100px -45px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .04); isolation: isolate; }
.fmt__device--phone { aspect-ratio: 9 / 16; border-radius: 34px; border-width: 5px; border-color: #1c1c20; }
.fmt__device--portrait { aspect-ratio: 4 / 5; border-radius: 22px; }
.fmt__device--square { aspect-ratio: 1 / 1; border-radius: 22px; }
.fmt__device--wide { aspect-ratio: 16 / 9; border-radius: 16px; }
.fmt__screen { position: absolute; inset: 0; }
.fmt__screen .media { position: absolute; inset: 0; aspect-ratio: auto; animation: fade-in .9s var(--ease) both, push 18s ease-in-out .9s infinite alternate; will-change: transform; }
.fmt__screen::after { content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none; background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, .15) 50%, transparent 58%); transform: translateX(-130%); animation: sweep 8s var(--ease-io) 1.5s infinite; }
@keyframes sweep { 0% { transform: translateX(-130%); } 40%, 100% { transform: translateX(130%); } }
.fmt--portrait .fmt__screen::after { animation-delay: 3s; }
.fmt--square .fmt__screen::after { animation-delay: 4.5s; }
.fmt--wide .fmt__screen::after { animation-delay: 6s; }

.fmt__bars { position: absolute; z-index: 3; top: 12px; left: 14px; right: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.fmt__bars i { position: relative; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.fmt__bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.fmt__bars i:nth-child(1)::after { animation: bar1 9s linear infinite; }
.fmt__bars i:nth-child(2)::after { animation: bar2 9s linear infinite; }
.fmt__bars i:nth-child(3)::after { animation: bar3 9s linear infinite; }
@keyframes bar1 { 0% { transform: scaleX(0); } 33% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes bar2 { 0%, 33% { transform: scaleX(0); } 66% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes bar3 { 0%, 66% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.fmt__badge { position: absolute; z-index: 3; top: 28px; left: 14px; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fmt__chrome { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 22px; display: flex; align-items: center; gap: 5px; padding-inline: 10px; background: rgba(13, 13, 15, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fmt__chrome i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.fmt__device--wide .fmt__screen { top: 22px; }

.fmt figcaption { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .1rem .8rem; }
.fmt__ratio { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.fmt__use { font-size: .8125rem; color: var(--ivory-dim); }
.fmt__px { grid-column: 2; font-size: .6875rem; letter-spacing: .14em; color: var(--muted); }
.fmt__note { margin-top: 1.4rem; max-width: 62ch; }

@media (min-width: 1100px) {
  .formats__stage { overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; justify-content: space-between; }
  .fmt--reel { width: clamp(200px, 17vw, 250px); }
  .fmt--portrait { width: clamp(240px, 20vw, 290px); }
  .fmt--square { width: clamp(240px, 20vw, 290px); }
  .fmt--wide { width: clamp(320px, 28vw, 400px); }
}

/* ==========================================================================
   PACKS — three levels, image-led cards
   ========================================================================== */
.packs__grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.pack { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: rgba(19, 19, 22, .66); -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1); box-shadow: 0 50px 110px -55px rgba(0, 0, 0, .95); transition: transform .8s var(--ease), border-color .6s var(--ease), box-shadow .8s var(--ease); }
.pack:hover { transform: translateY(-6px); border-color: rgba(207, 169, 104, .5); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1), 0 0 90px -40px rgba(207, 169, 104, .3); }
.pack__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-850); }
.pack__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(8, 8, 10, .35) 0, transparent 35%, transparent 55%, rgba(19, 19, 22, .96) 100%); }
.pack__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease-io); }
.pack__slide.is-active { opacity: 1; }
.pack__slide .media { position: absolute; inset: 0; aspect-ratio: auto; animation: push 20s ease-in-out infinite alternate; will-change: transform; }
.pack__slide:not(.is-active) .media { animation-play-state: paused; }
.pack__badge { position: absolute; z-index: 3; left: 16px; top: 16px; background: rgba(13, 13, 15, .6); border-color: rgba(207, 169, 104, .55); color: var(--gold-bright); }
.pack__idx { position: absolute; z-index: 3; right: 18px; top: 14px; font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: rgba(242, 237, 227, .85); letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.pack__body { display: grid; gap: 1.15rem; align-content: start; padding: clamp(22px, 2.4vw, 34px); padding-top: .4rem; }
.pack__name { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1; letter-spacing: -.03em; }
.pack__tag { margin-top: .5rem; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pack__price { display: flex; align-items: baseline; gap: .6rem; padding-block: .9rem; border-block: 1px solid var(--line); }
.pack__quote { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ivory); letter-spacing: -.01em; }
.pack__from { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pack__amount { font-family: var(--serif); font-size: 2rem; color: var(--ivory); letter-spacing: -.02em; }
.pack__list { display: grid; gap: .7rem; }
.pack__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .9375rem; line-height: 1.45; color: var(--ivory-dim); }
.pack__list svg { margin-top: .2rem; color: var(--gold); }
.pack__fmt { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pack .btn { width: 100%; margin-top: .3rem; }
.packs__foot { margin-top: clamp(24px, 3vw, 44px); max-width: 62ch; }

/* animated gold edge on the most complete pack */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pack--feat { border-color: rgba(207, 169, 104, .4); }
.pack--feat::before { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 72%, var(--gold-bright) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: edge 7s linear infinite; }
@keyframes edge { to { --ang: 360deg; } }

@media (min-width: 700px) and (max-width: 999px) {
  .pack { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto; }
  .pack__media { aspect-ratio: auto; min-height: 100%; }
  .pack__media::after { background: linear-gradient(90deg, rgba(8, 8, 10, .25) 0, transparent 40%, rgba(19, 19, 22, .96) 100%); }
  .pack__body { padding-top: clamp(22px, 2.4vw, 34px); }
}
@media (min-width: 1000px) {
  .packs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .pack--feat { margin-block: -10px; }
}

/* ==========================================================================
   Process: a little more air over the animated backdrop
   ========================================================================== */
.process.has-bg { background: var(--ink-950); }

/* collapsed series panels: vertical title only; the spec block opens with the panel */
@media (min-width: 1000px) {
  .series__title { opacity: 1; translate: 0 0; }
  .series__item:not(.is-active) .series__spec { display: none; }
  .series__item:not(.is-active) .series__info { padding-inline: 0; justify-items: center; }
  .series__item:not(.is-active) .series__title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.5rem; white-space: nowrap; }
}

/* pack buttons sit on the card's bottom edge, so all three align */
.pack__body { display: flex; flex-direction: column; }
.pack .btn { margin-top: auto; }

/* pack wrapper carries the scroll reveal, so the card keeps its own hover lift */
.packs__item { display: grid; min-width: 0; }
.packs__item > .pack { min-width: 0; }

/* seventh project: full-width cinematic finale on desktop */
@media (min-width: 1024px) {
  .work__item:nth-child(7) { grid-column: 1 / -1; align-self: auto; }
}
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .32s; }

/* ==========================================================================
   Adaptive text: balanced headings and safe wrapping, EN and ES, any width
   ========================================================================== */
.h2, .work__title, .series__title, .pack__name, .step__title, .service__title { text-wrap: balance; }
.section-head__aside p, .work__desc, .pack__list li, .series__spec dd, .anatomy__detail, .anat__d, .step p { text-wrap: pretty; }
.pack__list li span, .series__spec dd, .work__desc, .anat__d { overflow-wrap: anywhere; hyphens: auto; }

/* ==========================================================================
   Phone quick action
   ========================================================================== */
.m-cta { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 95; translate: -50% 140%; opacity: 0; pointer-events: none; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transition: translate .8s var(--ease), opacity .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease); }
.m-cta.is-visible { translate: -50% 0; opacity: 1; pointer-events: auto; }
@media (min-width: 960px) { .m-cta { display: none; } }

/* ==========================================================================
   Small phones: tighter rhythm
   ========================================================================== */
@media (max-width: 599px) {
  .pack__idx { font-size: 2rem; }
  .series__item { flex-basis: 82vw; }
  .fmt__ratio { font-size: 1.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bgloop__layer .media, .pack__slide .media, .fmt__screen .media, .fmt__screen::after, .fmt__bars i::after, .hotspot__dot::after, .pack--feat::before { animation: none !important; }
  .fmt__bars i:nth-child(1)::after { transform: scaleX(1); }
  .anatomy__zoom { transition-duration: .01ms; }
  .m-cta { transition-duration: .01ms; }
}
