/* =========================================================
   Session page template (sessions/*.html)
   Editorial layout: mosaic hero, outlined background words,
   sticky "ideal for" list, pinned horizontal gallery,
   packages, animated facts and related sessions.
   ========================================================= */

.s-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.serif-up { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; }

/* ---------- Book circle (rotating text button) ---------- */
.book-circle { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); box-shadow: 0 20px 60px rgba(203,54,15,.35); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.book-circle:hover { transform: scale(1.08); }
.book-circle svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.book-circle svg.ring text { fill: #fff; font: 600 13px var(--sans); letter-spacing: 1px; }
.book-circle .arr { width: 22px; height: 22px; transition: transform .4s; }
.book-circle:hover .arr { transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero mosaic ---------- */
.s-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #0c0c0d; }
.s-mosaic { position: absolute; inset: -12vh 3vw; display: grid; grid-template-columns: 1.1fr 1.3fr .9fr 1.05fr 1.2fr; gap: 14px; }
.s-col { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.s-col:nth-child(2) { margin-top: -8vh; }
.s-col:nth-child(3) { margin-top: 10vh; }
.s-col:nth-child(4) { margin-top: -4vh; }
.s-col:nth-child(5) { margin-top: 6vh; }
.s-tile { position: relative; overflow: hidden; border-radius: 3px; background: var(--card); clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1); }
.s-tile.in { clip-path: inset(0 0 0 0); }
.s-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); transform: scale(1.15); transition: filter .7s, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.s-tile.in img { transform: scale(1); }
.s-tile.color img { filter: brightness(.85); }
.s-tile:hover img { filter: none; transform: scale(1.05); }
.s-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 55% 50% at 50% 52%, rgba(12,12,13,.72), rgba(12,12,13,.15) 70%), linear-gradient(180deg, rgba(12,12,13,.6), transparent 22%, transparent 75%, var(--bg)); }
.s-title { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 20px; }
.s-crumb { font-size: 11px; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); margin-bottom: 26px; pointer-events: auto; }
.s-crumb a:hover { color: var(--accent); }
.s-crumb span { color: var(--accent); }
.s-title h1 { font-size: clamp(64px, 11.5vw, 196px); line-height: .84; text-shadow: 0 10px 50px rgba(0,0,0,.55); }
.s-title h1 em { display: block; font-style: italic; text-transform: none; font-size: .5em; line-height: 1.1; margin: .08em 0 .02em; }
.s-title h1 small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .35em; margin-top: 30px; text-shadow: none; }
.s-hero .book-circle { position: absolute; z-index: 4; left: 6vw; bottom: 8vh; }
.s-scroll { position: absolute; z-index: 4; right: 6vw; bottom: 8vh; display: flex; align-items: center; gap: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.s-scroll::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); background-size: 200% 100%; animation: cue 2s linear infinite; }
@keyframes cue { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- About (outlined words behind) ---------- */
.s-about { position: relative; padding: 150px 0 130px; overflow: hidden; }
.bg-words { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.bg-words span { display: block; white-space: nowrap; font-family: var(--serif); text-transform: uppercase; font-size: 19vw; line-height: .82; color: transparent; -webkit-text-stroke: 1px rgba(203,54,15,.28); will-change: transform; }
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1.15fr; grid-template-areas: "head head tall" "a1 a2 tall"; gap: 40px 34px; align-items: start; }
.a-head { grid-area: head; }
.a-title { font-size: clamp(48px, 6.4vw, 96px); line-height: .9; }
.a-title em { display: block; font-style: italic; text-transform: none; }
.a-title b { font-weight: 400; display: block; padding-left: 1.2em; }
.a1 { grid-area: a1; }
.a2 { grid-area: a2; padding-top: 70px; }
.a-tall { grid-area: tall; }
.about-grid p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.about-grid p strong { color: #fff; font-weight: 500; }
.about-grid p em { color: var(--accent); font-style: normal; }
.p-frame { overflow: hidden; border-radius: 3px; }
.p-frame img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.a1 .p-frame { aspect-ratio: 4/3; margin-bottom: 26px; }
.a2 .p-frame { aspect-ratio: 3/4; margin-top: 26px; }
.a-tall .p-frame { aspect-ratio: 4/5.4; }
.a-tall .p-frame img { filter: grayscale(.2); }
.a-tall figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.a-tall figcaption b { color: var(--accent); font-weight: 500; }

/* ---------- Ideal for (sticky image swap) ---------- */
.s-for { padding: 60px 0 40px; }
.s-for .h-sec { max-width: 620px; }
.s-for .lead { max-width: 560px; margin-top: 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.for-media { position: sticky; top: 14vh; height: 72vh; border-radius: 4px; overflow: hidden; background: var(--card); }
.for-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); filter: grayscale(1); transition: opacity .8s, transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s; }
.for-media img.on { opacity: 1; transform: scale(1); filter: grayscale(.15); }
.for-media .tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; padding: 8px 14px; border-radius: 100px; background: rgba(17,17,18,.6); backdrop-filter: blur(8px); font-size: 12px; }
.for-list { list-style: none; }
.for-list li { padding: 15vh 0; border-bottom: 1px solid var(--line); opacity: .25; transition: opacity .5s; }
.for-list li:first-child { padding-top: 8vh; }
.for-list li.on { opacity: 1; }
.for-list .n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); }
.for-list h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.6vw, 54px); line-height: .95; margin: 8px 0 14px; }
.for-list h3 small { display: block; font-family: var(--sans); text-transform: none; font-size: 13px; color: var(--dim); margin-top: 8px; letter-spacing: 0; }
.for-list p { font-size: 15px; color: var(--muted); max-width: 400px; }

/* ---------- Pinned horizontal gallery ---------- */
.s-gallery { position: relative; height: 400vh; background: #0c0c0d; }
.g-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.g-head { position: absolute; top: 96px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6vw; }
.g-head h2 { font-size: clamp(40px, 5vw, 76px); line-height: .9; }
.g-head h2 em { font-style: italic; text-transform: none; color: var(--accent); }
.g-count { font-family: var(--serif); font-size: 22px; color: var(--dim); white-space: nowrap; }
.g-count b { font-weight: 400; font-size: 54px; color: #fff; }
.g-track { display: flex; align-items: center; gap: 4vw; padding: 0 6vw; margin-top: 60px; will-change: transform; }
.g-item { position: relative; flex: none; height: 58vh; aspect-ratio: var(--ar, 3/4); min-width: 0; }
.g-item:last-child { margin-right: 6vw; }
.g-item:nth-child(even) { margin-top: 10vh; }
.g-item .fr { width: 100%; height: 100%; overflow: hidden; border-radius: 3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.7); transform: scale(1.08); transition: filter .9s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.g-item.on img { filter: none; transform: scale(1); }
.g-item figcaption { position: absolute; left: 0; top: -30px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); transition: color .6s; }
.g-item.on figcaption { color: #fff; }
.g-item figcaption b { color: var(--accent); font-weight: 500; margin-right: 10px; }
.g-bar { position: absolute; left: 6vw; right: 6vw; bottom: 7vh; height: 1px; background: var(--line); }
.g-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Packages ---------- */
.s-packages { padding: 130px 0 60px; }
.s-packages .h-sec { max-width: 560px; margin-bottom: 44px; }
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pkg { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; padding: 28px 24px 26px; border-radius: 6px; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(203,54,15,.16), transparent 45%), var(--card); border: 1px solid var(--line); transition: border-color .4s, transform .4s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.pkg:hover { border-color: rgba(203,54,15,.6); transform: translateY(-6px); }
.pkg .name { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.pkg .price { font-family: var(--serif); font-size: clamp(64px, 6vw, 92px); line-height: 1; color: var(--accent); margin: 18px 0 22px; }
.pkg .price sup { font-size: .38em; vertical-align: top; position: relative; top: .35em; margin-right: 2px; }
.pkg dl { display: grid; gap: 0; margin-bottom: 26px; }
.pkg dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pkg dt { color: var(--dim); }
.pkg dd { text-align: right; }
.pkg .extra { font-size: 12px; color: #fff; background: rgba(203,54,15,.15); border: 1px solid rgba(203,54,15,.4); border-radius: 4px; padding: 8px 10px; margin: -12px 0 24px; }
.pkg .btn { margin-top: auto; align-self: flex-start; }
.pkg.top { border-color: rgba(203,54,15,.55); }
.pkg .badge { position: absolute; top: 18px; right: -34px; transform: rotate(45deg); background: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 5px 40px; }
.swipe-hint { display: none; }
.swipe-ctrl { display: none; }
.pkg-note { margin-top: 24px; font-size: 14px; color: var(--muted); }
.pkg-note a { color: #fff; border-bottom: 1px solid var(--accent); }

/* ---------- Packages: variants ---------- */
.pkgs.two { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
.pkg .sub { font-size: 13px; color: var(--dim); margin-top: 4px; }

/* ---------- What's included (quinceañera) ---------- */
.s-include { padding: 130px 0 40px; }
.s-include .h-sec { max-width: 620px; margin-bottom: 40px; }
.inc-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inc-grid li { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); transition: border-color .4s, transform .4s; }
.inc-grid li:hover { border-color: rgba(203,54,15,.6); transform: translateY(-4px); }
.inc-grid li:first-child { grid-column: span 2; background: linear-gradient(135deg, rgba(203,54,15,.22), var(--card) 60%); }
.inc-grid .n { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent); }
.inc-grid h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 10px 0 8px; }
.inc-grid p { font-size: 14px; color: var(--muted); }
.s-notebox { margin-top: 18px; padding: 20px 24px; border-left: 2px solid var(--accent); background: rgba(203,54,15,.08); font-size: 14px; line-height: 1.7; color: var(--muted); }
.s-notebox strong { color: #fff; }

/* ---------- How it works: timeline with scroll progress ---------- */
.s-steps { padding: 110px 0 40px; }
.s-steps .h-sec { max-width: 560px; margin-bottom: 50px; }
.tl { position: relative; max-width: 820px; padding-left: 70px; }
.tl ol { list-style: none; }
.tl::before, .tl .tl-fill { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl .tl-fill { background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl li { position: relative; padding: 0 0 46px; opacity: .3; transition: opacity .5s; }
.tl li.on { opacity: 1; }
.tl li::before { content: attr(data-n); position: absolute; left: -70px; top: -4px; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--dim); transition: background .5s, border-color .5s, color .5s; }
.tl li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.tl p { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 560px; }

/* ---------- Facts (count-up) ---------- */
.s-facts { padding: 90px 0 110px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 50px; }
.fact .num { font-family: var(--serif); font-size: clamp(76px, 8.5vw, 132px); line-height: .8; color: var(--accent); }
.fact .num sup { font-size: .32em; color: #fff; vertical-align: top; margin-left: 4px; }
.fact p { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-top: 4px; position: relative; }

/* ---------- Related sessions ---------- */
.s-related { padding: 40px 0 120px; }
.rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
.rel a { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.rel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6); transition: filter .7s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.rel a:hover img { filter: brightness(.75); transform: scale(1.06); }
.rel .txt { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.rel h3 { font-size: clamp(30px, 2.8vw, 42px); line-height: .95; }
.rel p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.rel .go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s; }
.rel a:hover .go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.rel .go svg { width: 16px; height: 16px; }

/* ---------- Closing CTA ---------- */
.s-cta { position: relative; padding: 120px 0 130px; text-align: center; overflow: hidden; background: #0c0c0d; }
.s-cta h2 { font-size: clamp(54px, 9vw, 150px); line-height: .86; }
.s-cta h2 em { display: block; font-style: italic; text-transform: none; color: var(--accent); }
.s-cta .book-circle { margin: 50px auto 30px; }
.s-cta p { font-size: 14px; color: var(--muted); max-width: 440px; margin: 0 auto; }
.s-cta p a { color: #fff; border-bottom: 1px solid var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .inc-grid { grid-template-columns: 1fr 1fr; }
  .s-mosaic { grid-template-columns: repeat(4, 1fr); }
  .s-col:nth-child(5) { display: none; }
  .about-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "a1 a2" "tall tall"; }
  .a-tall .p-frame { aspect-ratio: 4/3; }
  .pkgs { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 50px; }
}

@media (max-width: 700px) {
  .s-wrap { padding: 0 16px; }
  .h-sec { font-size: 30px; }

  /* Hero: 3 columns (JS moves the hidden columns' photos into them) */
  .s-mosaic { grid-template-columns: repeat(3, 1fr); gap: 8px; inset: -14vh 8px; }
  .s-col { gap: 8px; }
  .s-col:nth-child(4) { display: none; }
  .s-hero::after { background: radial-gradient(ellipse 90% 40% at 50% 50%, rgba(12,12,13,.8), rgba(12,12,13,.2) 75%), linear-gradient(180deg, rgba(12,12,13,.6), transparent 20%, transparent 70%, var(--bg)); }
  .s-title h1 { font-size: clamp(52px, 16.5vw, 84px); }
  .s-title h1 small { font-size: 11px; letter-spacing: .25em; margin-top: 22px; }
  .s-crumb { margin-bottom: 18px; }
  .s-hero .book-circle { width: 104px; height: 104px; left: 50%; bottom: 5svh; margin-left: -52px; }
  .s-hero .book-circle svg.ring text { font-size: 15px; }
  .s-scroll { display: none; }

  /* About */
  .s-about { padding: 90px 0 50px; }
  .bg-words span { font-size: 34vw; }
  .about-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "a1 a1" "a2 tall"; gap: 26px 10px; }
  .a-title { font-size: 52px; }
  .a1 .p-frame { aspect-ratio: 16/10; margin-bottom: 18px; }
  .a2 { padding-top: 0; }
  .a2 .p-frame { aspect-ratio: 3/4; margin-top: 18px; }
  .a-tall { padding-top: 60px; }
  .a-tall .p-frame { aspect-ratio: 3/4.6; }
  .a-tall figcaption { flex-direction: column; gap: 2px; font-size: 10px; }
  .about-grid p { font-size: 14px; }

  /* Ideal for: smaller sticky photo, active item is read below it */
  .s-for { padding: 30px 0 0; }
  .for-grid { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .for-media { top: 64px; height: 36vh; height: 36svh; z-index: 2; box-shadow: 0 30px 40px -10px var(--bg); }
  .for-list li { padding: 9vh 0; }
  .for-list li:first-child { padding-top: 7vh; }
  .for-list li:last-child { padding-bottom: 22vh; border-bottom: 0; }
  .for-list h3 { font-size: 34px; }

  /* Gallery */
  .g-head { top: 74px; padding: 0 16px; align-items: flex-start; }
  .g-head h2 { font-size: 40px; }
  .g-head h2 em { display: block; }
  .g-count { font-size: 16px; }
  .g-count b { font-size: 40px; }
  .g-track { gap: 7vw; padding: 0 16px; margin-top: 110px; }
  .g-item { height: 50vh; height: 50svh; }
  .g-item:nth-child(even) { margin-top: 6vh; }
  .g-bar { left: 16px; right: 16px; bottom: 5svh; }

  /* Packages + related: swipeable cards, the centered one is in focus */
  .s-packages { padding: 80px 0 30px; }
  .s-packages .h-sec { margin-bottom: 14px; }
  .swipe-hint { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 18px; }
  .pkgs, .pkgs.two, .rel { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 6px 16px 18px; scroll-padding: 0 16px; scrollbar-width: none; cursor: grab; }
  .pkgs.dragging, .rel.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
  .pkgs::-webkit-scrollbar, .rel::-webkit-scrollbar { display: none; }
  .pkgs .pkg, .pkgs .pkg.reveal.in, .rel a { flex: 0 0 80%; scroll-snap-align: center; transform: scale(calc(.92 + .08 * var(--k, 1))); opacity: calc(.45 + .55 * var(--k, 1)); transition: border-color .4s; will-change: transform; }
  .pkg:hover { transform: scale(calc(.92 + .08 * var(--k, 1))); }
  .swipe-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
  .swipe-ctrl button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
  .swipe-ctrl button:active { background: var(--accent); border-color: var(--accent); }
  .swipe-ctrl button:disabled { opacity: .3; }
  .swipe-ctrl button svg { width: 14px; height: 14px; }
  .swipe-ctrl .prev svg { transform: rotate(180deg); }
  .swipe-dots { display: flex; gap: 6px; }
  .swipe-dots button { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
  .swipe-dots button.on { width: 24px; background: var(--accent); }
  .rel { margin-top: 24px; }
  .rel a { aspect-ratio: 3/4; }

  .s-facts { padding: 50px 0 60px; }
  .facts { padding-top: 36px; row-gap: 36px; }
  .fact .num { font-size: 72px; }
  .fact p { font-size: 10px; }
  .s-related { padding: 20px 0 80px; }
  .s-cta { padding: 90px 0 100px; }
  .s-cta h2 { font-size: 54px; }
  .s-include { padding: 80px 0 30px; }
  .inc-grid { grid-template-columns: 1fr; }
  .inc-grid li:first-child { grid-column: auto; }
  .s-steps { padding: 70px 0 20px; }
  .tl { padding-left: 58px; }
  .tl::before, .tl .tl-fill { left: 18px; }
  .tl li { padding-bottom: 36px; }
  .tl li::before { left: -58px; width: 38px; height: 38px; font-size: 16px; }
  .tl h3 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .s-tile { clip-path: none; }
  .book-circle svg.ring { animation: none; }
}
