/* Kamila Zaorska-Mierzejewska · 90 dni. Split stage.
   Two grounds held against each other by one rule. --s is the rule's position
   in percent of the stage (x on desktop, y on phones); page.js writes it. */

:root {
  /* right side, "Z zespołem": the white of her studio wall */
  --paper:      #EAECEB;
  --paper-2:    #F4F5F4;
  --ink-r:      #16241D;
  --ink-r-soft: #44544B;
  --acc-r:      #17703F;   /* her dress green, darkened to clear 4.5:1 on paper */
  /* left side, "Sama": the same room after dark */
  --slate:      #1D2629;
  --ink-l:      #EDF1EE;
  --ink-l-soft: #A7B5AF;
  --acc-l:      #5FD394;   /* same hue, lifted for the dark ground */

  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-2);
  --sc-ink: var(--ink-r);
  --sc-ink-soft: var(--ink-r-soft);
  --sc-accent: var(--acc-r);
  --sc-accent-ink: #F4F7F5;
  --sc-font-display: "Forum", Georgia, serif;
  --sc-font-text: "Questrial", system-ui, sans-serif;
  --sc-edge: inset 0 1px 0 rgb(255 255 255 / 0.7);
  --sc-shadow-color: 150 12% 30%;

  --gut: clamp(1.25rem, 5vw, 5rem);
  --d-xl: clamp(2.6rem, 1.5rem + 3.6vw, 5.4rem);
  --d-lg: clamp(1.9rem, 1.3rem + 1.9vw, 3.2rem);
  --d-md: clamp(1.35rem, 1rem + 1.1vw, 2.15rem);
}

html { font-synthesis: none; }
body { background: var(--paper); color: var(--ink-r); font-size: var(--sc-t-base); line-height: var(--sc-leading-body); }

.skip { position: fixed; left: var(--gut); top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink-r); color: var(--paper); border-radius: var(--sc-r-sm); }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.d-xl, .d-lg, .d-md, .h1 span, .cal-h {
  font-family: var(--sc-font-display); font-weight: 400;
  letter-spacing: -0.012em; line-height: 1.04; text-wrap: balance; margin: 0;
}
.d-xl { font-size: var(--d-xl); letter-spacing: -0.02em; line-height: 0.98; }
.d-lg { font-size: var(--d-lg); }
.d-md { font-size: var(--d-md); line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95rem 1.6rem; border-radius: var(--sc-r-pill);
  background: var(--acc-r); color: var(--sc-accent-ink);
  font: 400 1.02rem/1 var(--sc-font-text); letter-spacing: .015em; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1), var(--sc-edge);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #0F5E33; } }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--acc-r); outline-offset: 3px; }

/* ---------------------------------------------------------------- stage */
.ks-stage { --s: 50; background: var(--paper); }
.ks-stage img { max-width: none; }

.ks-gl, .cl, .cr { position: absolute; inset: 0; pointer-events: none; }
.ks-gl, .cl { clip-path: inset(0 calc((100 - var(--s)) * 1%) 0 0); }
.cr        { clip-path: inset(0 0 0 calc(var(--s) * 1%)); }
.ks-gl { background: var(--slate); z-index: 1; }

.m-dusk { z-index: 2; }
.m-dusk img { position: absolute; left: 0; top: 0; width: 64vw; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 30% 70%; }
.m-dusk-col { z-index: 3; opacity: 0; background: linear-gradient(90deg, rgb(20 27 30 / .86) 0%, rgb(20 27 30 / .7) 48%, rgb(20 27 30 / 0) 80%); }
.m-dusk-scrim { z-index: 3; background: linear-gradient(180deg, rgb(20 27 30 / .78) 0%, rgb(20 27 30 / .5) 38%, rgb(20 27 30 / 0) 66%); }

.m-kam, .m-kamcut { z-index: 2; }
.m-kamcut { z-index: 6; }
.m-kam img, .m-kamcut img { position: absolute; right: -6vw; bottom: 0; height: 90%; width: auto; transform-origin: 60% 100%; }
.m-kam img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%), linear-gradient(180deg, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%), linear-gradient(180deg, transparent 0, #000 14%);
  mask-composite: intersect;
}
.m-kam { background: radial-gradient(60% 70% at 78% 40%, var(--paper-2), transparent 70%); }

.m-fruit { z-index: 7; }
.m-fruit img { position: absolute; left: 52vw; bottom: -3%; width: 12vw; height: auto; filter: drop-shadow(0 18px 24px rgb(40 60 50 / .18)); }
.m-leaves { z-index: 7; }
.m-leaves img { position: absolute; left: 39vw; top: -11%; width: 13vw; height: auto; filter: blur(1.5px) brightness(.72); }

/* wordmark, drawn twice and clipped to each side so it changes ink at the rule */
.wm { z-index: 8; }
.wm__name { position: absolute; left: var(--gut); top: clamp(1rem, 3.2vh, 2rem); font: 400 .82rem/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; }
.wm--l { color: var(--ink-l); }
.wm--r { color: var(--ink-r); }

/* text blocks: positioned per beat, never across the rule's travel */
.t { position: absolute; z-index: 5; margin: 0; }
.t-l { color: var(--ink-l); }
.t-r { color: var(--ink-r); }
.t p:not([class]) { font-size: var(--sc-t-base); max-width: 44ch; }
.t-l p:not([class]) { color: var(--ink-l-soft); }
.t-r p:not([class]) { color: var(--ink-r-soft); }
.t > * + * { margin-top: var(--sc-4); }
.t .btn { margin-top: var(--sc-6); pointer-events: auto; }

.h1 { margin: 0; font-size: var(--d-xl); }
.h1__l { left: var(--gut); top: 17%; width: 36vw; font-size: var(--d-xl); line-height: .98; letter-spacing: -0.02em; }
.h1__r { left: 54vw; top: 15%; width: 22vw; font-size: var(--d-xl); line-height: .98; letter-spacing: -0.02em; }
.b1-sub { left: 54vw; top: 47%; width: 19vw; min-width: 15rem; }
.b1-sub p { color: var(--ink-r-soft) !important; }

.b2-l { left: var(--gut); top: 16%; width: 50vw; max-width: 46rem; color: var(--ink-l); line-height: 1.16; }
.b2-r { left: 66vw; bottom: 16%; width: 27vw; }

.b3-l { left: var(--gut); top: 22%; width: 33vw; }
.b3-r { left: 50vw; top: 22%; width: 40vw; }

.b4-l { left: var(--gut); bottom: 22%; width: 38vw; color: var(--ink-l-soft); }
.b4-r { left: 55vw; top: 22%; width: 38vw; }

/* the peak */
.b5-l { left: var(--gut); top: 13%; width: calc(37vw - var(--gut)); }
.b5-r { left: 56vw; top: 9%; width: 38vw; }
.cal-h { font-size: var(--d-md); }
.cal {
  --cell: clamp(18px, min(3.2vh, 2.4vw), 34px);
  --g: 4px; --pl: 2.6rem; --pt: 1.5rem;
  position: relative; display: grid; gap: var(--g);
  grid-template-columns: repeat(7, var(--cell)); grid-auto-rows: var(--cell); grid-auto-flow: row;
  padding: var(--pt) 0 0 var(--pl); margin-top: var(--sc-5);
}
.cal i::after { content: attr(data-l); }
.cal i { display: block; border-radius: 4px; position: relative; font: 400 10px/var(--cell) var(--sc-font-text); text-align: center; font-style: normal; }
.cal .mo { position: absolute; left: 0; top: calc(var(--pt) + var(--k) * (var(--cell) + var(--g))); font: .72rem/var(--cell) var(--sc-font-text); letter-spacing: .06em; white-space: nowrap; }
.cal .wd { position: absolute; top: 0; left: calc(var(--pl) + var(--j) * (var(--cell) + var(--g))); width: var(--cell); text-align: center; font: .66rem/1 var(--sc-font-text); opacity: .7; }
.t-l .cal i { box-shadow: inset 0 0 0 1px rgb(237 241 238 / .14); }
.t-l .cal i.past { background: rgb(237 241 238 / .07); }
.t-r .cal i { box-shadow: inset 0 0 0 1px rgb(22 36 29 / .14); }
.t-r .cal i.past { background: rgb(22 36 29 / .045); }
.cal i.now { box-shadow: inset 0 0 0 2px currentColor; }
.t-l .cal .mo, .t-l .cal .wd { color: var(--ink-l-soft); }
.t-r .cal .mo, .t-r .cal .wd { color: var(--ink-r-soft); }
.t-r .cal i.past:not(.on) { background: #DCE9E0; box-shadow: none; }

/* event marks, only once their day has passed */
.cal i.on.c-zus, .legend .c-zus { background: #D9DED9; color: var(--slate); }
.cal i.on.c-cz,  .legend .c-cz  { background: transparent; box-shadow: inset 0 0 0 2px #D9DED9; color: #D9DED9; }
.cal i.on.c-w,   .legend .c-w   { background: var(--acc-l); color: var(--slate); }
.cal i.on.c-m,   .legend .c-m   { background: transparent; box-shadow: inset 0 0 0 2px var(--acc-r); color: var(--acc-r); }
.cal i.on.c-s,   .legend .c-s   { background: #B9DCC7; color: var(--ink-r); }
.cal i.on.c-sz,  .legend .c-sz  { background: #9AA79F; color: #fff; }
.cal i.on.c-p,   .legend .c-p   { background: var(--acc-r); color: #fff; }
.cal i.on.c-k,   .legend .c-k   { background: var(--ink-r); color: #fff; }
.cal i.on.c-o { background: var(--acc-r); color: #fff; transform: scale(1.25); z-index: 2; box-shadow: 0 4px 10px rgb(23 112 63 / .35); }
.cal i { transition: background-color 160ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
/* the one day that gets a word: the clinic opening */
.cal i.on.c-o::before {
  content: "otwarcie"; position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: .3rem .55rem; border-radius: var(--sc-r-pill); background: var(--acc-r); color: #fff;
  font: 400 .72rem/1 var(--sc-font-text); letter-spacing: .05em; white-space: nowrap; box-shadow: var(--sc-e1);
}
@media (max-width: 760px) { .cal i.on.c-o::before { left: 50%; top: auto; bottom: calc(100% + 4px); transform: translateX(-50%) scale(.8); } }

.legend { list-style: none; padding: 0; margin: var(--sc-4) 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .82rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.t-l .legend { color: var(--ink-l-soft); }
.t-r .legend { color: var(--ink-r-soft); }
.cal-note { min-height: 1.6em; margin-top: var(--sc-4); font: var(--d-md)/1.15 var(--sc-font-display); font-size: clamp(1.1rem, .9rem + .7vw, 1.6rem); opacity: 0; transition: opacity 260ms var(--sc-ease-out); }
.cal-note.is-on { opacity: 1; }
.t-l .cal-note { color: var(--ink-l); }
.t-r .cal-note { color: var(--acc-r); }
.cal-fine { font-size: .74rem !important; color: var(--ink-r-soft); margin-top: var(--sc-3) !important; }

.pick { border: 0; padding: 0; margin: var(--sc-4) 0 0; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.pick legend { float: left; padding: 0; margin-right: .8rem; font-size: .9rem; color: var(--ink-r-soft); }
.pick__opts { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--sc-r-pill); background: rgb(22 36 29 / .07); pointer-events: auto; }
.pick__opts label { position: relative; cursor: pointer; }
.pick__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__opts span { display: block; padding: .5rem .95rem; border-radius: var(--sc-r-pill); font-size: .9rem; color: var(--ink-r); transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out); }
.pick__opts input:checked + span { background: var(--acc-r); color: #fff; box-shadow: var(--sc-e1); }
.pick__opts input:focus-visible + span { outline: 2px solid var(--acc-r); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pick__opts label:hover span { background: rgb(23 112 63 / .12); } .pick__opts label:hover input:checked + span { background: var(--acc-r); } }

.b6-l { left: var(--gut); bottom: 24%; width: 30vw; color: var(--ink-l-soft); }
.b6-r { left: 46vw; top: 7%; width: 47vw; }
.b6-fig { margin: 0; border-radius: var(--sc-r-md); overflow: hidden; box-shadow: var(--sc-e2); }
.b6-fig img { width: 100%; height: 36vh; object-fit: cover; }
.b6-r .d-lg { margin-top: var(--sc-6); max-width: 22ch; }

.b7-l { left: var(--gut); top: 26%; width: 34vw; }
.b7-r { left: 51vw; top: 7%; width: 42vw; }
.b7-img { width: 100%; height: 32vh; object-fit: cover; object-position: 50% 30%; border-radius: var(--sc-r-md); box-shadow: var(--sc-e2); }
.q-tag { font-family: var(--sc-font-display); font-size: 1.05rem !important; letter-spacing: 0; margin-top: var(--sc-6) !important; }
.t-l .q-tag { color: var(--acc-l); margin-top: 0 !important; }
.t-r .q-tag { color: var(--acc-r); }
blockquote { margin: var(--sc-3) 0 0; }
.b7-r figcaption { margin-top: var(--sc-3); font-size: .86rem; color: var(--ink-r-soft); }
.b7-count { margin-top: var(--sc-5) !important; font-size: 1rem; color: var(--ink-r); }
.num { font: 400 1.9em/1 var(--sc-font-display); color: var(--acc-r); font-variant-numeric: tabular-nums; vertical-align: -0.12em; }

.b8 { left: 21vw; top: 20%; width: 40vw; }
.b8 .d-xl { max-width: 11ch; }
.b8 p { max-width: 34ch !important; }

/* ---------------------------------------------------------------- the rule */
.ks-rule {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 9;
  transform: translate3d(calc(var(--s) * 1vw), 0, 0);
}
.rule__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--acc-r); }
.rule__lab { position: absolute; top: clamp(1rem, 3.2vh, 2rem); font: .78rem/1 var(--sc-font-text); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.rule__lab--l { right: 1rem; color: var(--ink-l-soft); }
.rule__lab--r { left: 1rem; color: var(--ink-r-soft); }
.rule__foot { position: absolute; bottom: clamp(1rem, 4vh, 2.4rem); left: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: var(--sc-r-pill); background: var(--paper-2); box-shadow: var(--sc-e2); white-space: nowrap; }
.rule__day { padding: 0 .8rem 0 .9rem; font-size: .86rem; color: var(--ink-r-soft); }
.rule__day b { font: 400 1.35rem/1 var(--sc-font-display); color: var(--ink-r); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: right; }
.rule__cta { padding: .62rem 1.05rem; border-radius: var(--sc-r-pill); background: var(--acc-r); color: #fff; font-size: .9rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .rule__cta, .f--radio label, .foot a, .apply a { transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
  .rule__cta:hover { background: #0F5E33; }
  .f--radio label:hover { border-color: rgb(23 112 63 / .55); }
  .foot a:hover, .apply a:hover { color: var(--acc-r); }
}
.rule__cta:active, .f--radio label:active { transform: scale(0.97); }
.rule__cta:focus-visible { outline: 2px solid var(--ink-r); outline-offset: 2px; }

/* ---------------------------------------------------------------- after the stage */
.voices { padding: clamp(3.5rem, 7vw, 6.5rem) var(--gut); }
.voices__wrap {
  max-width: var(--sc-maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start;
}
.v { margin: 0; }
/* width AND height: the img carries width/height attributes, overriding one alone leaves the other at its raw pixel value */
.v img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--sc-r-md); box-shadow: var(--sc-e1); }
.v blockquote { margin: var(--sc-5) 0 0; font: 400 clamp(1.2rem, .95rem + .75vw, 1.75rem)/1.2 var(--sc-font-display); text-wrap: pretty; }
.v figcaption { margin-top: var(--sc-3); font-size: .86rem; color: var(--ink-r-soft); max-width: 42ch; }
.v--anchor img { aspect-ratio: 4 / 5; object-position: 50% 25%; }
.voices__side { display: grid; gap: clamp(1.75rem, 3.2vw, 3rem); }
.voices__side h2 { max-width: 14ch; }
.v--row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1rem, 2.4vw, 2.25rem); align-items: center; padding-top: clamp(1.75rem, 3.2vw, 3rem); border-top: 1px solid rgb(22 36 29 / .12); }
.v--row img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.v--row blockquote { margin-top: 0; font-size: clamp(1.1rem, .9rem + .55vw, 1.45rem); }

.apply { background: var(--paper-2); padding: clamp(3.5rem, 8vw, 8rem) var(--gut) 2rem; }
.apply__wrap { max-width: var(--sc-maxw); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.apply__intro { position: sticky; top: clamp(2rem, 8vh, 5rem); }
.apply__intro > * + * { margin-top: var(--sc-4); }
.sign { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin-top: var(--sc-7) !important; padding-top: var(--sc-6); border-top: 1px solid rgb(22 36 29 / .12); }
.sign__pic { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 80% at 50% 30%, #fff, var(--paper)); box-shadow: var(--sc-e1); }
.sign__pic img { width: 100%; height: auto; transform: translateY(2%) scale(1.9); transform-origin: 50% 8%; }
.sign__name { font: 400 1.25rem/1.15 var(--sc-font-display); color: var(--ink-r); }
.sign__role { font-size: .86rem; color: var(--ink-r-soft); margin-top: .2rem !important; }
.form { background: #fff; padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: var(--sc-r-lg); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 24px 48px -28px hsl(150 20% 20% / .28), 0 2px 6px hsl(150 20% 20% / .06); }
.f input:not([type=radio]):not([type=checkbox]), .f select, .f textarea { background: var(--paper-2); }
.apply__intro p { color: var(--ink-r-soft); max-width: 40ch; }
.apply__alt a { color: var(--acc-r); text-underline-offset: 3px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.f { grid-column: 1 / -1; display: grid; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.f--half { grid-column: span 1; }
.f > label, .f legend { font-size: .92rem; color: var(--ink-r); padding: 0; }
.opt { color: var(--ink-r-soft); }
.f input:not([type=radio]):not([type=checkbox]), .f select, .f textarea {
  width: 100%; font: 1rem/1.4 var(--sc-font-text); color: var(--ink-r);
  padding: .8rem .9rem; border-radius: var(--sc-r-sm); border: 1px solid rgb(22 36 29 / .22); background: #fff;
  transition: border-color 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: none; border-color: var(--acc-r); box-shadow: 0 0 0 3px rgb(23 112 63 / .22); }
.f [aria-invalid=true] { border-color: #A3342B !important; }
.f.is-bad.f--radio label { border-color: #A3342B; }
.f.is-bad.f--check label { color: #A3342B; }
.f__err { margin: .1rem 0 0; font-size: .8rem; color: #A3342B; }
.f--radio .f__err, .f--check .f__err { width: 100%; }
.f--radio { display: flex; flex-wrap: wrap; gap: .5rem; }
.f--radio legend { margin-bottom: .45rem; width: 100%; }
.f--radio label { background: var(--paper-2) !important; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: var(--sc-r-pill); border: 1px solid rgb(22 36 29 / .18); background: #fff; font-size: .92rem; cursor: pointer; }
.f--radio label:has(input:checked) { border-color: var(--acc-r); box-shadow: inset 0 0 0 1px var(--acc-r); }
.f input[type=radio], .f input[type=checkbox] { accent-color: var(--acc-r); width: 1.05rem; height: 1.05rem; margin: 0; }
.f--check label { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-r-soft); line-height: 1.5; }
.f--check input { margin-top: .2rem !important; flex: none; }
.f--hp { position: absolute; left: -9999px; }
.btn--submit { justify-self: start; border: 0; cursor: pointer; font-size: 1.05rem; padding: 1.05rem 2rem; }
.btn--submit[disabled] { opacity: .6; cursor: progress; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; font-size: .95rem; color: var(--ink-r); }
.form__status.is-err { color: #A3342B; }
.form__status a { color: var(--acc-r); }

.foot { max-width: var(--sc-maxw); margin: clamp(4rem, 8vw, 7rem) auto 0; padding-top: 1.5rem; border-top: 1px solid rgb(22 36 29 / .12); display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: .86rem; color: var(--ink-r-soft); }
.foot__name { color: var(--ink-r); }
.foot a { color: inherit; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- phones: the rule turns horizontal */
@media (max-width: 760px) {
  .ks-gl, .cl { clip-path: inset(0 0 calc((100 - var(--s)) * 1%) 0); }
  .cr        { clip-path: inset(calc(var(--s) * 1%) 0 0 0); }
  .ks-rule { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 0; transform: translate3d(0, calc(var(--s) * 1svh), 0); }
  .rule__line { top: -1px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .rule__lab { top: auto; left: var(--gut); right: auto; }
  .rule__lab--l { bottom: .7rem; }
  .rule__lab--r { top: .7rem; }
  .rule__foot { bottom: auto; top: 0; left: auto; right: var(--gut); transform: translateY(-50%); padding: 4px; }
  .rule__day { padding: 0 .5rem 0 .6rem; font-size: .78rem; }
  .rule__day b { font-size: 1.1rem; }
  .rule__cta { padding: .55rem .85rem; font-size: .84rem; }

  .m-dusk img { width: 100%; height: 64%; object-position: 50% 70%; }
  .m-dusk-col { background: linear-gradient(180deg, rgb(20 27 30 / .88) 0%, rgb(20 27 30 / .78) 40%, rgb(20 27 30 / .2) 62%); }
  .m-kam img, .m-kamcut img { right: -14vw; height: 46%; }
  .m-fruit img { left: auto; right: 44vw; width: 30vw; bottom: -3%; }
  .m-leaves img { left: auto; right: -6vw; top: -6%; width: 30vw; }

  :root { --d-xl: clamp(2.1rem, 1.4rem + 3.4vw, 2.8rem); --d-lg: clamp(1.45rem, 1.1rem + 1.8vw, 1.9rem); --d-md: clamp(1.12rem, .95rem + 1vw, 1.35rem); }
  .t p:not([class]) { font-size: .95rem; }

  .h1__l { top: 11%; width: 80vw; }
  .h1__r { left: var(--gut); top: 54%; width: 50vw; }
  .b1-sub { left: var(--gut); top: 69%; width: 50vw; min-width: 0; }
  .b1-sub p { font-size: .9rem !important; }
  .t .btn { margin-top: var(--sc-4); padding: .85rem 1.3rem; }

  .b2-l { top: 9%; width: auto; right: var(--gut); line-height: 1.2; }
  .b2-r { left: var(--gut); right: var(--gut); bottom: auto; top: 70%; width: auto; }
  .b3-l { top: 10%; width: auto; right: var(--gut); }
  .b3-r { left: var(--gut); right: var(--gut); top: 51%; width: auto; }
  .b4-l { bottom: auto; top: 12%; width: auto; right: var(--gut); }
  .b4-r { left: var(--gut); top: 62%; width: auto; right: var(--gut); }

  .b5-l { top: 7%; width: auto; right: var(--gut); }
  .b5-r { left: var(--gut); right: var(--gut); top: 54%; width: auto; }
  .cal { --cell: 15px; --g: 3px; --pl: 0; --pt: 1.1rem; margin-top: var(--sc-3);
    grid-template-columns: none; grid-template-rows: repeat(7, var(--cell)); grid-auto-flow: column; grid-auto-columns: var(--cell); grid-auto-rows: auto; }
  .cal .mo { top: 0; left: calc(var(--k) * (var(--cell) + var(--g))); line-height: 1; }
  .cal .wd { display: none; }
  .cal i { font-size: 0; }
  .legend { font-size: .72rem; gap: .2rem .8rem; margin-top: var(--sc-3); }
  .legend i { width: 10px; height: 10px; }
  .cal-note { margin-top: var(--sc-2); font-size: 1rem; }
  .pick { margin-top: var(--sc-3); gap: .4rem; }
  .pick legend { font-size: .8rem; }
  .pick__opts span { padding: .42rem .7rem; font-size: .82rem; }
  .cal-fine { display: none; }

  .b6-l { bottom: auto; top: 12%; width: auto; right: var(--gut); }
  .b6-r { left: var(--gut); right: var(--gut); top: 47%; width: auto; }
  .b6-fig img { height: 15svh; }
  .b6-r .d-lg { margin-top: var(--sc-3); font-size: 1.3rem; }
  .b6-r p:not([class]) { font-size: .86rem; }

  .b7-l { top: 9%; width: auto; right: var(--gut); }
  .b7-r { left: var(--gut); right: var(--gut); top: 51%; width: auto; }
  .b7-img { height: 12svh; }
  .b7-r .q-tag { margin-top: var(--sc-3) !important; }
  .b7-r blockquote { font-size: 1.05rem; }
  .b7-r figcaption { font-size: .76rem; }
  .b7-count { margin-top: var(--sc-3) !important; font-size: .9rem; }

  .b8 { left: var(--gut); right: var(--gut); top: 9%; width: auto; }

  .voices__wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .voices__side { order: -1; gap: 2rem; }
  .v--anchor img { aspect-ratio: 4 / 3; }
  .v--row { grid-template-columns: 1fr; gap: 0; padding-top: 2rem; }
  .v--row blockquote { margin-top: var(--sc-4); }
  .v--anchor { padding-top: 2rem; border-top: 1px solid rgb(22 36 29 / .12); }
  .apply__wrap { grid-template-columns: 1fr; }
  .apply__intro { position: static; }
  .form { padding: 1.25rem; margin: 0 calc(var(--gut) * -0.5); }
  .form { grid-template-columns: 1fr; }
  .f--half { grid-column: 1 / -1; }
}

/* compact phones (360 x 640): the half-screen is ~250px, so the peak gets smaller cells
   and the hero loses its foreground props rather than its copy */
@media (max-width: 760px) and (max-height: 700px) {
  .m-fruit { display: none; }
  .b1-sub { top: 67%; }
  .cal { --cell: 11px; --g: 2px; padding-top: .9rem; }
  .cal .mo { font-size: .62rem; }
  .b5-l { top: 6%; }
  .b5-l .legend { display: none; }
  .b5-l .cal-h, .b5-r .cal-h { font-size: 1rem; }
  .b5-r .legend { font-size: .64rem; }
  .pick__opts span { padding: .32rem .55rem; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cal i, .cal-note { transition: none; }
}
