/* Livie G page kit: every inner page is built from these classes plus tokens.css.
   Same rules as the home page: a strict 12-column grid inside .wrap, Outfit for display and DM Sans for text,
   color only through [data-note] (var(--note)), hairlines, white and wash bands, nothing wider than the screen.
   Every rule describes the finished resting state; motion lives at the end, inside prefers-reduced-motion: no-preference. */

/* ---------- views (one page visible at a time; js/router.js) ---------- */
.view[hidden]{display:none}
.view{min-height:50vh}
/* in-page targets and focused fields land clear of the sticky header (top) and the phone price bar (bottom):
   scroll-padding on html (site.css) does it for every page, so no scroll-margin here (it would add up) */
#main:focus{outline:none}
.view h1[tabindex="-1"]:focus{outline:none}

/* ---------- page root and breadcrumb ---------- */
.pg{position:relative}
.crumbs{display:flex; flex-wrap:wrap; align-items:center; gap:0 10px; font-size:14px; line-height:1.4; color:var(--mute)}
.crumbs a{display:inline-flex; align-items:center; min-height:44px; color:var(--ink); font-weight:500; text-underline-offset:3px}
.crumbs a:hover{text-decoration-thickness:2px}
.crumbs > * + *::before{content:"/"; margin-right:10px; color:var(--hair)}
.crumbs span{font-weight:500}
.pg > .crumbs{max-width:var(--wrap); margin-inline:auto; padding:8px var(--gut) 0}

/* ---------- page hero: the page's own key hangs from the top edge, like one key of the home row ---------- */
.pg-hero{--key-w:56px; --key-h:104px; position:relative; padding:calc(var(--key-h) + 40px) 0 var(--s6)}
.pg-hero::before{position:absolute; top:0; left:max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); width:var(--key-w); height:var(--key-h);
  display:flex; align-items:flex-end; justify-content:center; padding-bottom:10px; border-radius:0 0 6px 6px; background:var(--note); color:var(--on-note);
  font-family:var(--display); font-weight:800; font-size:24px; line-height:1; content:""}
/* the note letter on the key, read from the page's data-note */
[data-note="C"] .pg-hero::before{content:"C"} [data-note="D"] .pg-hero::before{content:"D"} [data-note="E"] .pg-hero::before{content:"E"}
[data-note="F"] .pg-hero::before{content:"F"} [data-note="G"] .pg-hero::before{content:"G"} [data-note="A"] .pg-hero::before{content:"A"}
[data-note="B"] .pg-hero::before{content:"B"} [data-note="C2"] .pg-hero::before{content:"C"}
/* a breadcrumb set before the hero sits above the key; one inside the hero sits under it */
.pg > .crumbs + .pg-hero{margin-top:var(--s1)}
.pg-hero .crumbs{margin:-12px 0 20px}
.pg-hero__in{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--s3); row-gap:var(--s5); align-items:end}
.pg-hero__in > *{grid-column:1 / -1; min-width:0}
.pg-hero h1{font-size:clamp(40px,5.8vw,92px); letter-spacing:-.035em; line-height:.96}
/* stacked parts of the hero text (meta line, lead, prices, contents, note) sit 24 px apart unless a rule below says otherwise */
.pg-hero__text > :where(* + *){margin-top:var(--s3)}
.pg-lead{max-width:34em; font-size:clamp(19px,1.6vw,22px); line-height:1.5}
.pg-hero h1 + .pg-lead, .pg-hero h1 + p{margin-top:28px; padding-top:18px; border-top:2px solid var(--ink)}
.pg-actions{display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin-top:32px}
.pg-actions .link{display:inline-flex; align-items:center; min-height:44px; font-size:16px}
.pg-hero__media{min-width:0}
.pg-hero__media > *{margin-inline:0}
.pg-hero__media lg-clip{max-width:320px}
.pg-hero__media .figure{max-width:440px}
@media (min-width:960px){
  .pg-hero__text{grid-column:1 / 8}
  .pg-hero__media{grid-column:8 / 13; justify-self:end; width:100%; display:flex; justify-content:flex-end}
  .pg-hero__media > *{flex:0 1 auto; width:100%}
  .pg-hero__media lg-clip, .pg-hero__media .figure{width:100%}
  .pg-hero--plain .pg-hero__text{grid-column:1 / 11}
}
@media (max-width:959px){
  .pg-hero{--key-w:44px; --key-h:76px; padding:calc(var(--key-h) + 28px) 0 var(--s5)}
  .pg-hero::before{font-size:20px; padding-bottom:8px}
  .pg-hero__in{row-gap:var(--s4)}
  .pg-actions .btn{flex:1 1 200px}
}

/* ---------- sections ---------- */
/* a heading or paragraph directly above a ruled list (link list, rows, facts) keeps 24 px from its top rule */
:is(h2,h3,p) + :is(.linklist,.rows,.facts){margin-top:var(--s3)}
.pg-sec{padding-block:var(--s6)}
.pg-sec--wash{background:var(--wash)}
.pg-sec--ink{background:var(--ink); color:#fff}
.pg-sec--tight{padding-block:var(--s5)}
.pg-hero + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink){padding-top:0}
.pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) > .wrap{position:relative}
.pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink){padding-top:0}
.pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) > .wrap::before{content:""; display:block; height:1px; margin-bottom:var(--s6); background:var(--hair)}
/* in a grid section the hairline is a grid item of its own: it spans the row (so the columns keep their places) and the
   row gap makes up the rest of the space below it */
.pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) > .wrap.pg-grid::before{grid-column:1 / -1; margin-bottom:var(--s4)}
@media (max-width:959px){
  .pg-sec{padding-block:var(--s5)}
  .pg-sec--tight{padding-block:var(--s4)}
  .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) > .wrap::before{margin-bottom:var(--s5)}
  .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) + .pg-sec:not(.pg-sec--wash):not(.pg-sec--ink) > .wrap.pg-grid::before{margin-bottom:var(--s3)}
}
/* vertical rhythm for whatever sits in a section */
.pg-sec > .wrap > * + *{margin-top:var(--s4)}
.pg-sec > .wrap > .pg-h2 + *{margin-top:var(--s3)}
.pg-sec > .wrap > .pg-lead + *, .pg-sec > .wrap > .pg-h2 + .pg-lead + *{margin-top:var(--s4)}
.pg-sec > .wrap > .pg-actions{margin-top:var(--s4)}
/* columns of a grid section start level with each other: the grid's row gap does the stacking */
.pg-sec > .wrap.pg-grid > *{margin-top:0}
/* white text and light buttons on ink */
.pg-sec--ink .small, .pg-sec--ink .row__text, .pg-sec--ink .step__text, .pg-sec--ink .linklist__text, .pg-sec--ink .fact dt{color:#CFCCC4}
.pg-sec--ink .btn, .cta-band .btn{background:#fff; color:var(--ink); border-color:#fff}
.pg-sec--ink .btn:hover, .cta-band .btn:hover{background:var(--wash)}
.pg-sec--ink .btn--ghost, .cta-band .btn--ghost{background:transparent; color:#fff; border-color:#fff}
.pg-sec--ink .btn--ghost:hover, .cta-band .btn--ghost:hover{background:#fff; color:var(--ink)}
.pg-sec--ink .rows, .pg-sec--ink .steps, .pg-sec--ink .linklist, .pg-sec--ink .facts, .pg-sec--ink .faq{border-color:#fff}
.pg-sec--ink .row, .pg-sec--ink .step, .pg-sec--ink .linklist li, .pg-sec--ink .fact, .pg-sec--ink .faq details{border-color:rgba(255,255,255,.28)}
.pg-sec--ink :focus-visible, .cta-band :focus-visible{outline-color:#fff; box-shadow:0 0 0 2px var(--ink)}

/* ---------- grid ---------- */
.pg-grid{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--s3); row-gap:var(--s5); align-items:start}
.pg-grid > *{grid-column:1 / -1; min-width:0}
.pg-grid > * > * + *{margin-top:20px}
.pg-grid > * > .pg-h2 + *{margin-top:var(--s3)}
@media (min-width:960px){
  .pg-col-4{grid-column:span 4}
  .pg-col-5{grid-column:span 5}
  .pg-col-6{grid-column:span 6}
  .pg-col-7{grid-column:span 7}
  .pg-col-8{grid-column:span 8}
  .pg-col-12{grid-column:1 / -1}
  /* asymmetry: a narrow column followed by a wide one leaves a gutter column between them */
  .pg-col-4 + .pg-col-7, .pg-col-4 + .pg-col-6, .pg-col-5 + .pg-col-6{grid-column-end:-1}
  .pg-col-7 + .pg-col-4, .pg-col-6 + .pg-col-4{grid-column-end:-1}
}
@media (max-width:959px){ .pg-grid{row-gap:var(--s4)} }

/* ---------- type ---------- */
.pg-h2{font-size:clamp(34px,4.4vw,64px); letter-spacing:-.03em; line-height:.98}
.pg-h3{font-size:clamp(22px,2vw,28px); font-weight:700; letter-spacing:-.015em; line-height:1.15}
.pg-sec .pg-lead{max-width:32em}

.prose{max-width:38em; font-size:18px; line-height:1.65}
.prose > * + *{margin-top:1.05em}
.prose p{margin-top:1.05em}
.prose > :first-child{margin-top:0}
.prose h2{margin-top:1.8em; font-size:clamp(28px,3vw,40px); letter-spacing:-.025em; line-height:1.05}
.prose h3{margin-top:1.8em; font-size:clamp(22px,2vw,26px); font-weight:700; letter-spacing:-.015em; line-height:1.2}
.prose h2 + *, .prose h3 + *{margin-top:.6em}
.prose ul, .prose ol{padding-left:0; list-style:none}
.prose li{position:relative; padding-left:28px}
.prose li + li{margin-top:.5em}
.prose ul > li::before{content:""; position:absolute; left:2px; top:.6em; width:10px; height:10px; background:var(--note)}
.prose ol{counter-reset:pg-ol}
.prose ol > li{counter-increment:pg-ol}
.prose ol > li::before{content:counter(pg-ol); position:absolute; left:0; top:0; font-family:var(--display); font-weight:800; color:var(--ink)}
.prose blockquote{margin:1.6em 0; padding:4px 0 4px 22px; border-left:4px solid var(--note); font-family:var(--display); font-weight:500; font-size:clamp(21px,2vw,26px); line-height:1.3; letter-spacing:-.01em}
.prose a{font-weight:700; text-decoration-thickness:2px; text-underline-offset:4px}
.prose a:hover{text-decoration-thickness:3px}
.prose strong{font-weight:700}
.prose hr{border:0; border-top:1px solid var(--hair); margin:2em 0}

/* ---------- rows: ruled list with a note square ---------- */
.rows{margin:0; padding:0; list-style:none; border-top:2px solid var(--ink); border-bottom:2px solid var(--ink)}
.row{display:grid; grid-template-columns:56px minmax(0,4fr) minmax(0,7fr); column-gap:var(--s3); align-items:start; padding:28px 0}
.row + .row{border-top:1px solid var(--ink)}
.row .sq{font-size:22px}
.row__title{padding-top:6px; font-size:24px; font-weight:700; line-height:1.15; letter-spacing:-.015em}
.row__text{padding-top:7px; font-size:17px; line-height:1.55}
.row__text a{font-weight:700; text-underline-offset:3px}
.row > :not(.sq):not(.row__title):not(.row__text){grid-column:3}
/* in a half-width column there is no room for three columns: the text goes under the title, as on a phone */
@media (min-width:960px){
  :is(.pg-col-4,.pg-col-5,.pg-col-6) .row{grid-template-columns:40px minmax(0,1fr); column-gap:var(--s2)}
  :is(.pg-col-4,.pg-col-5,.pg-col-6) .row__text, :is(.pg-col-4,.pg-col-5,.pg-col-6) .row > :not(.sq):not(.row__title):not(.row__text){grid-column:2; padding-top:8px}
}
@media (max-width:959px){
  .row{grid-template-columns:40px minmax(0,1fr); column-gap:16px; padding:22px 0}
  .row__title{font-size:21px}
  .row__text, .row > :not(.sq):not(.row__title):not(.row__text){grid-column:2; padding-top:6px; font-size:16px}
}

/* ---------- steps: a timeline ---------- */
.steps{margin:0; padding:0; list-style:none; border-top:2px solid var(--ink)}
.step{display:grid; grid-template-columns:120px minmax(0,1fr); column-gap:var(--s3); align-items:start; padding:28px 0 32px; border-bottom:1px solid var(--hair)}
.step__time{display:flex; align-items:center; gap:10px; padding-top:7px; font-family:var(--display); font-weight:700; font-size:19px; line-height:1.1; font-variant-numeric:tabular-nums}
.step__time::before{content:""; flex:0 0 14px; width:14px; height:14px; background:var(--note)}
.step__title{font-size:clamp(24px,2.4vw,32px); font-weight:800; letter-spacing:-.02em; line-height:1.1}
.step__text{grid-column:2; max-width:34em; margin-top:10px; font-size:17px}
.step > :not(.step__time):not(.step__title):not(.step__text){grid-column:2; margin-top:16px}
.step:not(:has(.step__time)) .step__title{grid-column:2}
@media (max-width:767px){
  .step{grid-template-columns:minmax(0,1fr); padding:22px 0 24px}
  .step__time{padding:0 0 10px; font-size:16px}
  .step__text, .step > :not(.step__time):not(.step__title):not(.step__text), .step:not(:has(.step__time)) .step__title{grid-column:1}
}

/* ---------- facts: label and value pairs ---------- */
.facts{margin:0; border-top:2px solid var(--ink)}
.fact{display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); column-gap:var(--s3); padding:18px 0; border-bottom:1px solid var(--hair)}
.fact dt{font-size:15px; font-weight:700; line-height:1.4; color:var(--mute)}
.fact dd{margin:0; font-size:18px; line-height:1.45}
.fact dd a{font-weight:700; text-underline-offset:3px}
@media (max-width:559px){
  .fact{grid-template-columns:1fr; row-gap:4px; padding:14px 0}
}

/* ---------- prices ---------- */
.prices{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); column-gap:var(--s3); border-top:2px solid var(--ink); border-bottom:2px solid var(--ink)}
.price{position:relative; display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 18px; padding:28px 0 24px}
.price + .price::before{content:""; position:absolute; top:0; bottom:0; left:calc(var(--s3) / -2); width:1px; background:var(--ink)}
.price__num{font-family:var(--display); font-weight:800; font-size:clamp(80px,11vw,168px); line-height:.8; letter-spacing:-.05em; font-variant-numeric:tabular-nums}
.price__unit{padding-bottom:.25em; font-family:var(--display); font-weight:500; font-size:clamp(19px,1.8vw,26px); line-height:1.1}
@media (max-width:559px){
  .prices{grid-template-columns:1fr}
  .price + .price{border-top:1px solid var(--ink)}
  .price + .price::before{display:none}
}

/* ---------- linklist: ruled links to other pages ---------- */
.linklist{margin:0; padding:0; list-style:none; border-top:2px solid var(--ink)}
.linklist li{border-bottom:1px solid var(--ink)}
.linklist a{position:relative; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); column-gap:var(--s3); align-items:baseline; min-height:72px;
  padding:22px 0 22px 28px; text-decoration:none}
.linklist a::before{content:""; position:absolute; left:0; top:22px; width:12px; height:28px; border-radius:0 0 3px 3px; background:var(--note);
  transform:scaleY(.5); transform-origin:top center; transition:transform .25s var(--ease)}
.linklist a:hover::before, .linklist a:focus-visible::before{transform:none}
.linklist__title{font-family:var(--display); font-weight:700; font-size:clamp(21px,2vw,26px); line-height:1.15; letter-spacing:-.015em}
.linklist a:hover .linklist__title{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px}
.linklist__text{font-size:16px; line-height:1.5; color:var(--mute)}
@media (max-width:767px){
  .linklist a{grid-template-columns:1fr; row-gap:4px; min-height:64px; padding:18px 0 18px 26px}
  .linklist a::before{top:18px}
}

/* ---------- quotes ---------- */
.quote{margin:0; padding-top:20px; border-top:1px solid var(--hair)}
.quote blockquote{margin:0}
.quote blockquote, .quote blockquote p{font-size:18px; line-height:1.5}
.quote blockquote p + p{margin-top:.6em}
.quote figcaption{margin-top:12px; font-size:14px; font-weight:700; color:var(--mute)}
.quote--lg{padding-top:var(--s3); border-top:2px solid var(--ink)}
.quote--lg blockquote, .quote--lg blockquote p{font-family:var(--display); font-weight:500; font-size:clamp(28px,3.4vw,48px); line-height:1.12; letter-spacing:-.02em}
.quote--lg figcaption{margin-top:18px; font-size:15px; color:var(--ink)}
.pg-sec--ink .quote figcaption{color:#CFCCC4}

/* ---------- small asides ---------- */
.note-box{position:relative; padding:20px 24px 22px 56px; background:var(--wash); border-top:2px solid var(--ink); font-size:17px; line-height:1.55}
.note-box::before{content:""; position:absolute; left:24px; top:24px; width:14px; height:14px; background:var(--note)}
.note-box > * + *{margin-top:.6em}
.note-box strong:first-child, .note-box h3, .note-box h2{font-family:var(--display); font-weight:700; letter-spacing:-.01em}
.note-box h3, .note-box h2{font-size:21px; line-height:1.2}
.note-box a{font-weight:700; text-underline-offset:3px}
.pg-sec--wash .note-box{background:var(--paper)}
.pg-sec--ink .note-box{background:#232323; border-top-color:#fff}

.proposal{position:relative; display:block; margin-top:14px; padding:28px 24px 22px; background:var(--paper); color:var(--ink); border:2px dashed var(--ink); border-radius:6px; font-size:17px; line-height:1.55}
.proposal > strong:first-child{position:absolute; left:18px; top:-13px; padding:3px 9px; border-radius:4px; background:var(--ink); color:#fff;
  font-family:var(--text); font-size:13px; font-weight:700; line-height:1.4; letter-spacing:0}
.proposal > * + *{margin-top:.6em}
.proposal a{font-weight:700; text-underline-offset:3px}
.pg-hero .proposal{max-width:40em; margin-bottom:var(--s3)}

.confirm{display:inline-block; margin-left:4px; padding:1px 7px; border:1.5px solid var(--ink); border-radius:4px; background:var(--paper); color:var(--ink);
  font-family:var(--text); font-size:12px; font-weight:700; line-height:1.4; letter-spacing:0; vertical-align:.12em; white-space:nowrap}

.tags{display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none}
.tags > *{display:inline-flex; align-items:center; min-height:32px; padding:0 11px; border:1px solid var(--ink); border-radius:4px; font-size:14px; font-weight:500; line-height:1.2}
.tags > a{min-height:44px; text-decoration:none}
.tags > a:hover{background:var(--ink); color:#fff}
.pg-sec--ink .tags > *{border-color:#fff}

/* ---------- tables and accordions ---------- */
.table-wrap{max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; border-top:2px solid var(--ink)}
.table-wrap table{width:100%; min-width:520px; border-collapse:collapse; font-size:16px; line-height:1.45; font-variant-numeric:tabular-nums}
.table-wrap th, .table-wrap td{padding:14px 16px 14px 0; border-bottom:1px solid var(--hair); text-align:left; vertical-align:top}
.table-wrap thead th{font-size:14px; font-weight:700; color:var(--mute); border-bottom:1px solid var(--ink)}
.table-wrap tbody th{font-weight:700}
.table-wrap td:last-child, .table-wrap th:last-child{padding-right:0}
.table-wrap caption{padding:12px 0; text-align:left; font-size:14px; color:var(--mute); caption-side:bottom}

.faq{border-top:2px solid var(--ink)}
.faq details{border-bottom:1px solid var(--ink)}
.faq summary{text-wrap:balance; display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:64px; padding:16px 0; list-style:none; cursor:pointer;
  font-family:var(--display); font-weight:700; font-size:clamp(19px,1.8vw,24px); line-height:1.2; letter-spacing:-.01em}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; flex:0 0 auto; width:24px; font-family:var(--display); font-weight:500; font-size:30px; line-height:1; text-align:center}
.faq details[open] summary::after{content:"\2212"}
.faq summary:hover{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px}
.faq details > :not(summary){max-width:40em; font-size:17px}
.faq details > p{padding-bottom:16px}
.faq details > :last-child{padding-bottom:24px}
.faq details a{font-weight:700; text-underline-offset:3px}

/* ---------- clips: 9:16 video tiles ---------- */
.clips{position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--s3) 20px; align-items:start}
.clips > *{min-width:0}
@media (max-width:1099px){ .clips{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:679px){ .clips{grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px} }
.clips--rail{grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:clamp(176px,21%,250px); gap:20px;
  overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:0; padding-bottom:16px;
  scrollbar-width:thin; scrollbar-color:var(--ink) var(--hair)}
.clips--rail > *{scroll-snap-align:start}
.clips--rail::-webkit-scrollbar{height:6px}
.clips--rail::-webkit-scrollbar-track{background:var(--hair)}
.clips--rail::-webkit-scrollbar-thumb{background:var(--ink)}
/* where the wrap is the full screen width, the rail runs to the right edge so the next tile peeks in */
@media (max-width:1239px){
  .clips--rail{margin-right:calc(-1 * var(--gut)); padding-right:var(--gut); scroll-padding-inline:0 var(--gut)}
}
@media (max-width:679px){ .clips--rail{grid-auto-columns:44%; gap:12px} }
/* wide (16:9) clips: two columns, the whole row on phones; a grid of only wide clips gets columns of 280 px or more */
.clips > lg-clip[data-wide]{grid-column:span 2}
@media (max-width:679px){ .clips:not(.clips--rail) > lg-clip[data-wide]{grid-column:1 / -1} }
.clips:not(.clips--rail):not(:has(> lg-clip:not([data-wide]))){grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.clips:not(.clips--rail):not(:has(> lg-clip:not([data-wide]))) > lg-clip[data-wide]{grid-column:auto}

/* ---------- figures ---------- */
.figure{margin:0}
.figure img{width:100%; height:auto; border-radius:6px}
.figure figcaption{margin-top:10px; font-size:14px; line-height:1.4; color:var(--mute)}
.figure--ink{overflow:hidden; border-radius:0 0 6px 6px; background:var(--ink)}
.figure--ink img{border-radius:0; aspect-ratio:712 / 1070; object-fit:cover; object-position:42% 0}
.figure--ink figcaption{margin:0; padding:14px 18px 16px; color:#E9E7E1}

/* ---------- forms (labels above inputs) ---------- */
.form{display:grid; gap:20px; max-width:640px}
.form__row{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px}
@media (max-width:559px){ .form__row{grid-template-columns:1fr} }
.form__field{display:grid; gap:8px; min-width:0}
.form label{font-size:15px; font-weight:700; line-height:1.3}
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea{width:100%; min-height:52px; padding:12px 14px; border:2px solid var(--ink); border-radius:6px;
  background:var(--paper); color:var(--ink); font:inherit; font-size:17px; line-height:1.4}
.form textarea{min-height:140px; resize:vertical}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible{outline:3px solid var(--a); outline-offset:2px}
.form input[type="checkbox"], .form input[type="radio"]{width:22px; height:22px; margin:0; accent-color:var(--ink)}
.form__field--check{display:flex; align-items:center; gap:12px; min-height:44px}
.form__field--check label{font-weight:500}
.form .small, .form__hint{font-size:14px; color:var(--mute)}
.form [aria-invalid="true"]{border-color:var(--c)}
.form__error{font-size:14px; font-weight:700; color:#B42323}
.form [aria-live]{font-size:16px}

/* ---------- closing band: ink, with the page's key hanging at the right ---------- */
.cta-band{position:relative; overflow:hidden; padding:var(--s6) 0; background:var(--ink); color:#fff}
.cta-band::after{content:""; position:absolute; top:0; right:max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); width:clamp(56px,7vw,96px); height:clamp(120px,16vw,220px);
  border-radius:0 0 6px 6px; background:var(--note)}
.cta-band .wrap{position:relative; z-index:1}
.cta-band h2{max-width:13em; padding-right:clamp(72px,9vw,120px); font-size:clamp(40px,6vw,96px); letter-spacing:-.04em; line-height:.95}
.cta-band p{max-width:32em; margin-top:24px; font-size:19px; color:#E9E7E1}
.cta-band .pg-actions{margin-top:32px}
.cta-band a:not(.btn){color:#fff}
@media (max-width:959px){ .cta-band{padding:var(--s5) 0} }

/* ---------- small pieces ---------- */
.keys-divider{height:12px; margin-block:var(--s4)}
.keys-divider::before{content:""; display:block; width:32px; height:12px; border-radius:0 0 3px 3px; background:var(--c);
  box-shadow:38px 0 0 var(--d), 76px 0 0 var(--e), 114px 0 0 var(--f), 152px 0 0 var(--g), 190px 0 0 var(--a), 228px 0 0 var(--b)}

.toc{padding:18px 0 6px; border-top:2px solid var(--ink); font-size:16px}
.toc > :is(h2,h3,p,strong):first-child{display:block; margin-bottom:6px; font-family:var(--text); font-size:15px; font-weight:700; letter-spacing:0; line-height:1.3}
.toc ol, .toc ul{margin:0; padding:0; list-style:none}
.toc li{border-top:1px solid var(--hair)}
.toc a{display:flex; align-items:center; gap:10px; min-height:44px; text-decoration:none}
.toc a::before{content:""; flex:0 0 auto; width:8px; height:8px; background:var(--note)}
.toc a:hover{text-decoration:underline; text-underline-offset:4px}
@media (min-width:960px) and (min-height:700px){ .pg-grid > .toc, .pg-grid > * > .toc:only-child{position:sticky; top:120px} }

.article-meta{display:flex; flex-wrap:wrap; gap:0 16px; margin-top:16px; font-size:15px; line-height:1.5; color:var(--mute)}

/* ---------- components (each script styles its own insides) ---------- */
lg-clip{display:block; min-height:200px}
lg-quiz{display:block; min-height:420px}
lg-finder{display:block; min-height:320px}
lg-area{display:block; min-height:160px}
lg-warmup{display:block; min-height:440px}
lg-songstarter{display:block; min-height:440px}
lg-portal-app{display:block; min-height:640px}
lg-range{display:block; min-height:380px}
lg-portal-demo{display:block; min-height:460px}
.clips lg-clip{min-height:0}

/* ---------- phones: never wider than the screen ---------- */
.pg img, .pg video, .pg svg{max-width:100%}
.pg :is(h1,h2,h3){overflow-wrap:break-word}

/* ---------- motion: optional, starts from the finished state ---------- */
@media (prefers-reduced-motion: no-preference){
  /* a short settle as the page arrives; transform only, so the page is painted (and counted for LCP) from the first frame */
  .view:not([hidden]){animation:lg-view .3s var(--ease)}
  @keyframes lg-view{ from{transform:translateY(12px)} }
  /* the page's key drops in as the page arrives */
  .view:not([hidden]) .pg-hero::before{animation:lg-keydrop .7s var(--ease) .08s backwards}
  @keyframes lg-keydrop{ from{transform:translateY(-36px); opacity:0} }
  @supports (animation-timeline: view()){
    .cta-band::after{animation:lg-keygrow var(--ease) both; animation-timeline:view(); animation-range:entry 0% cover 30%}
    @keyframes lg-keygrow{ from{transform:scaleY(.4)} to{transform:none} }
    .cta-band::after{transform-origin:top center}
  }
}

/* the portal demo has its own bottom tab bar on phones */
@media (max-width: 767px){ body[data-route="student-portal"] .pbar{display:none} }
