/*
 * Edumasoft company website. One stylesheet for every page. The header and footer are shared with the other
 * Edumasoft websites and have their own files: app/brand/ and public/assets/brand/.
 * Brand: deep green (as on the school website) with the logo's indigo, Jost headings and DM Sans text.
 * Shape: the rounded bar from the logo. It is used for buttons and floating links.
 */
:root {
    --green-900: #06301f;
    --green-800: #0b4530;
    --green-600: #0b6b47;
    --green-100: #dfeee5;
    --mist: #f1f7f3;
    --indigo: #181d90;
    --sun: #ffc857;
    --ink: #10261c;
    --soft: #4a5f55;
    --line: #d5e2da;
    --white: #fff;
    --radius: 20px;
    --head: 'Jost', 'DM Sans', system-ui, sans-serif;
    --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 3px var(--green-900); }
.ico { width: 1.3em; height: 1.3em; flex: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--white); border-radius: 8px; }
.skip:focus { top: 1rem; }
.lead { color: var(--soft); font-size: 1.175rem; max-width: 34em; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .7rem 1.5rem; border: 2px solid transparent; border-radius: 99px; background: transparent; color: inherit; font-family: inherit; font-size: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-main { background: var(--green-600); color: var(--white); }
.btn-main:hover { background: var(--green-900); }
.btn-line { border-color: var(--green-600); color: var(--green-800); }
.btn-line:hover { background: var(--green-100); }
.btn-light { background: var(--white); color: var(--green-900); }
.btn-light:hover { background: var(--sun); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .12); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Sections */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec-title { max-width: 16em; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--green-900); }
.tint { background: var(--mist); }

/* Inner pages */
.sec-title + .lead { margin-top: 1rem; }
.aside { margin-top: 2.5rem; color: var(--soft); }
.aside a { color: var(--green-800); font-weight: 700; text-underline-offset: .25em; }
/* Team cards: 4 per row on computers, 3 on tablets (below 1000px), 2 on phones (640px and below) */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.t-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.t-photo { overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-100); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.t-initials { display: grid; place-items: center; height: 100%; color: var(--green-800); font: 600 clamp(2rem, 5vw, 3.2rem)/1 var(--head); }
.t-body { flex: 1; padding: 1.1rem 1.1rem 1.2rem; overflow-wrap: anywhere; }
.t-body h3 { font-size: 1.25rem; }
.role { margin-top: .3rem; color: var(--green-600); font-weight: 700; line-height: 1.4; }
.t-foot { border-top: 1px solid var(--line); }
.t-more { width: 100%; min-height: 50px; padding: .6rem .5rem; border: 0; background: none; color: var(--green-800); font: 700 1rem/1.2 var(--body); cursor: pointer; transition: background-color .2s, color .2s; }
.t-more:hover { background: var(--green-600); color: var(--white); }
.t-more:focus-visible { outline-offset: -4px; box-shadow: none; outline-color: var(--green-900); border-radius: 0 0 var(--radius) var(--radius); }

/* Popup */
.modal { width: min(760px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.modal::backdrop { background: rgba(6, 48, 31, .72); }
.modal-in { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.modal .t-photo { align-self: start; margin: 1.75rem 0 1.75rem 1.75rem; border-radius: 14px; }
.modal-text { padding: 1.75rem; overflow-wrap: anywhere; }
.modal-text h2 { padding-right: 3rem; font-size: 1.8rem; color: var(--green-900); }
.modal-text .role { margin-bottom: 1.2rem; }
.modal-text h3 { margin: 1.4rem 0 .5rem; font-size: 1.2rem; }
.modal-text p + p, .modal-text ul { margin-top: .9rem; }
.modal-text ul { padding-left: 1.2rem; list-style: disc; }
.modal-x { position: absolute; top: .9rem; right: .9rem; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--green-100); color: var(--green-900); cursor: pointer; }
.modal-x:hover { background: var(--green-600); color: var(--white); }
html:has(dialog[open]) { overflow: hidden; } /* the page behind can't scroll, only while a popup is open */
.meta { color: var(--soft); font-size: .95rem; }
.reading { max-width: calc(760px + 2 * var(--gutter)); }
.reading h1 { margin-block: .6rem 1rem; font-size: clamp(2.1rem, 4.2vw, 3.3rem); color: var(--green-900); overflow-wrap: anywhere; }
.reading h2:not(.sec-title) { margin: 2.2rem 0 .7rem; font-size: 1.5rem; color: var(--green-900); scroll-margin-top: 90px; }
.reading > p, .reading > ul { margin-bottom: 1.1rem; overflow-wrap: anywhere; }
.reading > ul { padding-left: 1.3rem; list-style: disc; }
.post-img { width: 100%; margin-block: 1.5rem; border-radius: var(--radius); }

/* Forms */
.contact-box { align-self: start; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--mist); }
.contact-box h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.form > * { min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; font-weight: 700; }
.form small { color: var(--soft); font-weight: 400; font-size: .9rem; line-height: 1.4; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 52px; padding: .75rem .9rem; border: 1px solid #7d9488; border-radius: 12px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green-600); outline: 3px solid var(--green-100); box-shadow: none; }
.form .check { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: .8rem; font-weight: 400; }
.form .check input { flex: none; width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--green-600); }
.form .check a { color: var(--green-800); }
.form > .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { margin-block: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; font-weight: 500; }
.note-ok { background: var(--green-100); color: var(--green-900); }
.note-bad { background: #fdeceb; color: #86190f; }

/* Closing call and contact details */
.end { background: var(--green-600); color: var(--white); }
.end-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.end h2 { max-width: 12em; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.reach li { display: flex; align-items: center; gap: .9rem; min-height: 48px; overflow-wrap: anywhere; }
.reach a { text-underline-offset: .25em; }

/* Admin sign-in (/manage/login): only the form, in front of the logo's bars */
.login { position: relative; display: grid; place-items: center; min-height: max(640px, calc(100vh - 77px)); padding: 3rem var(--gutter); overflow: hidden; background: var(--mist); }
/* Two sets, each starting beside the card and running off its side of the screen */
.login-bars { position: absolute; top: 50%; right: 0; left: calc(50% + 290px); display: grid; gap: 1rem; transform: translateY(-50%); }
.login-bars span { height: 76px; border-radius: 99px 0 0 99px; background: var(--indigo); }
.login-bars span:nth-child(2) { margin-left: 14%; background: var(--green-600); }
.login-bars span:nth-child(3) { margin-left: 28%; background: var(--green-900); }
.login-bars-left { transform: translateY(-50%) rotate(180deg); right: calc(50% + 290px); left: 0; }
.login-card { position: relative; width: 100%; max-width: 460px; padding: clamp(1.6rem, 4vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 34px 70px -34px rgba(6, 48, 31, .55); }
.login-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.3rem; border-radius: 17px; background: var(--green-900); color: var(--sun); font-size: 1.25rem; }
.login-card h1 { font-size: clamp(1.9rem, 4vw, 2.3rem); color: var(--green-900); }
.login-sub { margin-top: .5rem; color: var(--soft); }
.login-card .note { margin-block: 1.3rem 0; }
.login-card form { display: grid; margin-top: 1.7rem; }
.login-card label { margin-bottom: .4rem; font-weight: 700; }
.login-field { position: relative; margin-bottom: 1.2rem; }
.login-field > .ico { position: absolute; top: 50%; left: 1rem; color: var(--soft); transform: translateY(-50%); pointer-events: none; }
.login-field:focus-within > .ico { color: var(--green-600); }
.login-field input { width: 100%; min-height: 54px; padding: .75rem 1rem .75rem 3.1rem; border: 1px solid #7d9488; border-radius: 14px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.login-field input[name=password] { padding-right: 3.6rem; }
.login-field input::-ms-reveal { display: none; }
.login-field input:hover { border-color: var(--green-600); }
.login-field input:focus { border-color: var(--green-600); outline: 3px solid var(--green-600); outline-offset: -1px; box-shadow: none; }
.login-show { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 11px; background: none; color: var(--soft); font-size: 1rem; cursor: pointer; }
.login-show[hidden], .login-show .ico + .ico, .login-show.is-on .ico:first-child { display: none; }
.login-show.is-on .ico + .ico { display: block; }
.login-show:hover { background: var(--mist); color: var(--green-800); }
.login-card .btn-main { width: 100%; min-height: 54px; margin-top: .4rem; }
.login-card .btn-main .ico { transition: transform .2s; }
.login-card .btn-main:hover .ico { transform: translateX(4px); }
.login-card .btn-main:disabled { opacity: .7; cursor: progress; }
@media (max-width: 999px) {
    .login { align-items: start; min-height: 0; padding-block: clamp(1.5rem, 6vw, 3.5rem) 4rem; }
    .login-bars { display: none; }
}

/* ---------- Home page (hm-) ----------
   The product screens (scr-) are drawings. Every colour comes from the two brand colours, so /manage/colors changes them too. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.hm-head { max-width: 46rem; }
.hm-head .lead { margin-top: 1rem; }

.hm-hero { position: relative; overflow: hidden; background: var(--mist);
    background: radial-gradient(55% 80% at 88% 8%, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 70%),
        radial-gradient(50% 70% at 55% 105%, color-mix(in srgb, var(--sun) 30%, transparent), transparent 70%),
        linear-gradient(120deg, var(--mist), var(--green-100)); }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(3rem, 5vw, 5rem) clamp(3.5rem, 6vw, 6rem); }
.hm-hero h1 { margin-bottom: 1.3rem; color: var(--green-900); font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.06; letter-spacing: -.03em; }
.hm-mark { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: .1em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.hm-hero .lead { color: var(--green-800); }
.hm-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.8rem; font-weight: 500; }
.hm-trust li { display: flex; align-items: center; gap: .5rem; }
.hm-trust .ico { padding: .22rem; border-radius: 50%; background: var(--green-600); color: var(--white); stroke-width: 3; }

/* Product screens at the top: one main window with smaller ones in front */
.hm-stage { position: relative; aspect-ratio: 1 / .9; }
.hm-win { position: absolute; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--green-900) 60%, transparent); }
.hm-win-top { display: flex; align-items: center; gap: .35rem; min-height: 38px; padding: .4rem .9rem; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; line-height: 1.2; }
.hm-win-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hm-win-top i:first-child { background: var(--sun); }
.hm-win-top i + span { margin-left: .5rem; }
.hm-win-main { top: 4%; left: 4%; width: 88%; height: 70%; }
.hm-win-main .scr { height: calc(100% - 38px); }
.hm-win-learn { right: 0; bottom: 0; width: 41%; }
.hm-win-rental { left: 0; bottom: 3%; width: 39%; }
.hm-chip { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 99px; background: var(--green-900); color: var(--white); font-size: .9rem; font-weight: 700; box-shadow: 0 16px 34px -16px var(--green-900); }
.hm-chip .ico:first-child { color: var(--sun); }

.scr { color: var(--green-900); font-size: .8rem; line-height: 1.2; }
.scr i, .scr u { display: block; text-decoration: none; font-style: normal; }
.scr b { font-weight: 700; }
.scr-school { display: grid; grid-template-columns: 17% 1fr; height: 100%; }
.scr-side { display: grid; align-content: start; gap: .85rem; padding: 1.1rem .8rem; background: var(--indigo); }
.scr-side i { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .35); }
.scr-side i:first-child { background: var(--sun); }
.scr-main { display: grid; grid-template-rows: auto 1fr; gap: .9rem; min-width: 0; padding: 1rem; }
.scr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.scr-tiles span { display: grid; gap: .4rem; min-width: 0; padding: .7rem; border-radius: 12px; background: var(--mist); }
.scr-tiles b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-tiles .ico { width: 1.5rem; height: 1.5rem; color: var(--green-600); }
.scr-chart { display: flex; align-items: flex-end; gap: 5%; min-height: 70px; padding: .8rem .8rem 0; border-radius: 12px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 33%, var(--white); border-bottom: 2px solid var(--line); }
.scr-chart i { flex: 1; height: var(--h); border-radius: 7px 7px 0 0; background: color-mix(in srgb, var(--indigo) 32%, white); transform-origin: bottom; }
.scr-chart i:last-child { background: var(--green-600); }
.scr-lesson { display: grid; place-items: center; height: 84px; background: linear-gradient(135deg, var(--green-600), var(--green-900)); }
.scr-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); }
.scr-play::after { content: ""; margin-left: 4px; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: var(--green-900); }
.scr-list { display: grid; align-content: center; gap: .6rem; padding: .9rem; }
.scr-list > span { display: flex; align-items: center; gap: .6rem; }
.scr-list .ico, .scr-list u { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--green-100); color: var(--green-600); }
.scr-list span i { flex: 1; height: 7px; border-radius: 9px; background: var(--line); }
.scr-list span:nth-of-type(2) i { margin-right: 22%; }
.scr-bar { height: 9px; border-radius: 9px; background: var(--green-100); }
.scr-bar i { width: var(--w); height: 100%; border-radius: 9px; background: var(--green-600); }
.scr-rental { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; padding: .9rem; }
.scr-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.scr-units i { padding: .5rem 0; border: 1px dashed #7d9488; border-radius: 8px; text-align: center; font-size: .75rem; font-weight: 700; }
.scr-units .on { border: 1px solid var(--green-100); background: var(--green-100); }
.scr-row { display: flex; align-items: center; gap: .5rem; }
.scr-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-row .ico { color: var(--green-600); }
.scr-row em { flex: none; margin-left: auto; padding: .25rem .6rem; border-radius: 99px; background: var(--sun); font-style: normal; font-weight: 700; }
.scr-savings { display: grid; grid-template-columns: 42% 1fr; align-items: center; height: 100%; }
.scr-ring { display: grid; place-items: center; justify-self: center; width: 104px; max-width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--white) 70%, transparent 72%), conic-gradient(var(--green-600) 68%, var(--sun) 0 86%, var(--green-100) 0); }
.scr-ring .ico { width: 2rem; height: 2rem; }

/* Product cards */
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.8rem; }
.hm-card { --tone: var(--indigo); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--white); }
.hm-learn { --tone: var(--green-600); }
.hm-rental { --tone: var(--green-800); }
.hm-savings { --tone: var(--green-900); }
.hm-shot { display: grid; grid-template-rows: minmax(0, 1fr); align-items: end; justify-items: center; aspect-ratio: 16 / 9; padding: 2rem 2rem 0; overflow: hidden; background: var(--tone);
    background: radial-gradient(circle at 100% 0, var(--sun) 0 72px, transparent 73px), radial-gradient(circle at 0 100%, rgba(255, 255, 255, .12) 0 32%, transparent 32.5%), var(--tone); }
.hm-shot .scr { width: 100%; max-width: 440px; height: 100%; overflow: hidden; border-radius: 18px 18px 0 0; background: var(--white); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); transition: transform .35s; }
.hm-card:hover .hm-shot .scr { transform: translateY(-8px); }
.hm-shot .scr-side { background: var(--green-900); }
.hm-shot .scr-tiles { gap: .45rem; }
.hm-shot .scr-tiles span { padding: .6rem .5rem; font-size: .74rem; }
.hm-shot .scr-tiles b, .hm-win .scr-tiles b { letter-spacing: -.02em; }
.hm-shot .scr-lesson { background: linear-gradient(135deg, var(--indigo), var(--green-900)); }
.hm-shot .scr-learn { display: grid; grid-template-columns: 1fr 1fr; }
.hm-shot .scr-lesson { height: 100%; }
.hm-shot .scr-rental { align-content: center; padding: 1.2rem 1.4rem; }
.hm-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.hm-card h3 { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; color: var(--green-900); font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.hm-card h3 .ico { color: var(--tone); }
.hm-card p { color: var(--soft); }
.hm-feats { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.2rem 1.5rem; }
.hm-feats li { display: flex; align-items: center; gap: .4rem; padding: .3rem .8rem .3rem .6rem; border-radius: 99px; background: var(--mist); font-size: .95rem; font-weight: 500; }
.hm-feats .ico { width: 1rem; height: 1rem; color: var(--green-600); stroke-width: 2.6; }
.hm-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: auto; }
.hm-visit { background: var(--tone); color: var(--white); }
.hm-visit:hover { background: var(--sun); color: var(--green-900); }
.hm-note { margin-top: 1.4rem; color: var(--soft); font-size: .95rem; }

/* Before and after */
.hm-change { background: var(--mist); }
.hm-ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 2.8rem; }
.hm-before, .hm-after { height: 100%; padding: clamp(1.5rem, 3.2vw, 2.8rem); border-radius: 26px; }
.hm-before { border: 2px dashed #7d9488; }
.hm-after { background: var(--green-900); color: var(--white); }
.hm-ba h3 { margin-bottom: 1.2rem; font-size: 1.6rem; }
.hm-after h3 { color: var(--sun); }
.hm-ba li { display: flex; gap: .8rem; padding-block: .6rem; font-weight: 500; }
.hm-ba li .ico { margin-top: .22em; color: var(--soft); }
.hm-after li .ico { color: var(--sun); }
.hm-go { z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin-inline: -18px; border: 6px solid var(--mist); border-radius: 50%; background: var(--sun); color: var(--green-900); font-size: 1.2rem; }

/* Services */
.hm-svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-block: 2.8rem 1.4rem; }
.hm-svc li { padding: 1.7rem 1.5rem; border: 1px solid var(--line); border-radius: 22px; transition: border-color .25s, box-shadow .25s; }
.hm-svc li:hover { border-color: var(--green-600); box-shadow: 0 22px 40px -26px var(--green-900); }
.hm-ico { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.3rem; border-radius: 18px; background: var(--green-100); color: var(--green-800); font-size: 1.35rem; }
.hm-svc li:nth-child(even) .hm-ico { background: color-mix(in srgb, var(--indigo) 12%, white); color: var(--indigo); }
.hm-svc h3 { margin-bottom: .6rem; font-size: 1.3rem; overflow-wrap: anywhere; }
.hm-svc p { color: var(--soft); font-size: 1rem; }

/* Vision and mission */
.vm-list { display: grid; gap: 1.5rem; }
.vm-card { --tone: var(--indigo); position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-height: 360px; padding: clamp(1.8rem, 3.4vw, 3.4rem); overflow: hidden; isolation: isolate; border-radius: 34px; color: var(--white); background: var(--tone); }
.vm-mission { --tone: var(--green-600); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.vm-mission .vm-text { order: 1; }
.vm-card::before, .vm-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.vm-card::before { right: -90px; bottom: -190px; width: 560px; aspect-ratio: 1; background: rgba(0, 0, 0, .12); }
.vm-card::after { top: -74px; right: -74px; width: 148px; aspect-ratio: 1; background: var(--sun); }
.vm-mission::before { right: auto; left: -90px; }
.vm-mission::after { right: auto; left: -74px; }
.vm-card h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; }
.vm-card h2::after { content: ""; display: block; width: 68px; height: 6px; margin-block: 1.1rem 1.3rem; border-radius: 99px; background: var(--sun); }
.vm-card p { max-width: 30em; font: 500 clamp(1.15rem, 1.7vw, 1.45rem)/1.5 var(--head); overflow-wrap: anywhere; }
.vm-art, .vm-photo { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.vm-art { overflow: visible; }
.vm-photo { max-width: 480px; aspect-ratio: 16 / 9; border-radius: 28px; object-fit: cover; }
.vm-shadow { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .26)); }
.a-path, .a-pole, .a-shaft { fill: none; stroke: var(--white); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.a-pole { stroke: var(--green-900); stroke-width: 7; }
.a-shaft { stroke: var(--green-900); stroke-width: 10; }

/* Steps, joined by a line */
.hm-how { background: var(--mist); }
.hm-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2rem; margin-top: 3rem; counter-reset: step; }
.hm-steps::before { content: ""; position: absolute; top: 28px; right: calc(100% / var(--n, 4) - 2rem); left: 28px; height: 4px; border-radius: 9px; background: linear-gradient(90deg, var(--indigo), var(--green-600)); }
.hm-steps-many::before { display: none; }
.hm-steps li { position: relative; counter-increment: step; overflow-wrap: anywhere; }
.hm-steps li::before { content: counter(step); display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1.3rem; border: 5px solid var(--mist); border-radius: 50%; background: var(--indigo); color: var(--white); font: 600 1.35rem/1 var(--head); }
.hm-steps li:last-child::before { background: var(--green-600); }
.hm-steps h3 { margin-bottom: .4rem; font-size: 1.4rem; }
.hm-steps p { color: var(--soft); }

/* Questions */
.hm-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); }
.hm-faq .lead { margin-block: 1rem .3rem; }
.hm-faq details { margin-bottom: .8rem; border: 1px solid var(--line); border-radius: 18px; }
.hm-faq details[open] { border-color: var(--mist); background: var(--mist); }
.hm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .9rem 1.3rem; border-radius: 18px; font: 600 1.2rem/1.3 var(--head); cursor: pointer; list-style: none; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary:hover { color: var(--green-600); }
.hm-faq summary .ico { transition: transform .25s; }
.hm-faq [open] summary .ico { transform: rotate(180deg); }
.hm-faq details p { padding: 0 1.3rem 1.3rem; color: var(--soft); }

/* Movement: only for people who haven't asked for less. Nothing is ever hidden while it waits to move. */
@media (prefers-reduced-motion: no-preference) {
    .hm-win-main { animation: hm-in .7s cubic-bezier(.2, .8, .2, 1) backwards; }
    .hm-win-rental { animation: hm-in .7s .12s cubic-bezier(.2, .8, .2, 1) backwards; }
    .hm-win-learn { animation: hm-in .7s .22s cubic-bezier(.2, .8, .2, 1) backwards; }
    .a-1 { animation: hm-in .7s cubic-bezier(.2, .8, .2, 1) backwards; }
    .a-2 { animation: hm-in .7s .12s cubic-bezier(.2, .8, .2, 1) backwards; }
    .a-3 { animation: hm-in .7s .24s cubic-bezier(.2, .8, .2, 1) backwards; }
    .hm-chip { animation: hm-in .7s .32s cubic-bezier(.2, .8, .2, 1) backwards; }
    .hm-win-main .scr-chart i { animation: hm-grow .8s .4s cubic-bezier(.2, .8, .2, 1) backwards; }
    [data-rise].is-low { transform: translateY(26px); }
    [data-rise] { transition: transform .6s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
}
@keyframes hm-in { from { transform: translateY(34px); } }
@keyframes hm-grow { from { transform: scaleY(.15); } }

/* ---------- Other pages (pg-) ---------- */
.page-head { overflow: hidden; background: var(--mist);
    background: radial-gradient(55% 90% at 90% 4%, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 70%),
        radial-gradient(50% 70% at 52% 108%, color-mix(in srgb, var(--sun) 30%, transparent), transparent 70%),
        linear-gradient(120deg, var(--mist), var(--green-100)); }
.pg-head { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(1.8rem, 4vw, 4rem); padding-block: clamp(2.4rem, 4vw, 4rem); }
.page-head h1 { max-width: 12em; font-size: clamp(2.35rem, 4.3vw, 3.9rem); line-height: 1.07; letter-spacing: -.03em; color: var(--green-900); overflow-wrap: anywhere; }
.page-head h1.pg-long { max-width: 18em; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.12; }
.page-head .lead { margin-top: 1.3rem; max-width: 34em; color: var(--green-800); }
.pg-back { margin-bottom: .6rem; }
.pg-back .ico { transform: rotate(180deg); }

/* Pictures uploaded in /manage/content, used instead of a drawing. Each one fills a 16:9 frame (cover), as the editor's preview shows:
   product pictures keep their top edge (object-position: top); the others keep their middle. */
.pg-photo { display: block; width: 100%; max-width: 620px; height: auto; aspect-ratio: 16 / 9; margin-inline: auto; border-radius: 34px; object-fit: cover; box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--green-900) 60%, transparent); }
.hm-shot-photo { padding: 0; background: var(--green-100); }
.hm-pic { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
/* Product pictures on Services: small ones on the card, all of them in a popup */
.gal-open { text-decoration: none; cursor: zoom-in; }
.gal-open:hover .hm-pic { transform: scale(1.03); }
.gal-open:focus-visible { outline-offset: -6px; outline-color: var(--sun); border-radius: 26px 26px 0 0; box-shadow: none; }
.gal-small { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.gal-small a { display: block; overflow: hidden; border: 2px solid var(--line); border-radius: 12px; cursor: zoom-in; transition: border-color .2s; }
.gal-small a:hover { border-color: var(--green-600); }
.gal-thumb { width: 80px; height: 45px; object-fit: cover; object-position: top; }
.gal { width: min(1080px, calc(100vw - 2rem)); }
.gal .modal-in { display: block; padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem; }
.gal .modal-in:focus-visible { outline-offset: -4px; box-shadow: none; }
.gal h2 { min-height: 46px; margin-bottom: .8rem; padding-right: 3.6rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; color: var(--green-900); overflow-wrap: anywhere; }
.gal figure { margin: 0 0 2rem; }
.gal figure:last-child { margin-bottom: 0; }
.gal-full { width: auto; max-width: 100%; height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 14px; }
.gal figcaption { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .7rem; color: var(--soft); overflow-wrap: anywhere; }
.gal figcaption strong { color: var(--ink); font-weight: 500; }
.draft-bar { position: relative; z-index: 2; padding: .7rem 1rem; background: var(--sun); color: #10261c; font-weight: 700; text-align: center; }

/* Page pictures (app/art.php) */
.pg-art { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.pg-art .a-card { filter: drop-shadow(0 16px 18px color-mix(in srgb, var(--green-900) 26%, transparent)); }
.a-white { fill: var(--white); }
.a-mist { fill: var(--mist); }
.a-tint { fill: var(--green-100); }
.a-line { fill: var(--line); }
.a-mid { fill: color-mix(in srgb, var(--green-800) 45%, white); }
.a-green { fill: var(--green-600); }
.a-deep { fill: var(--green-800); }
.a-dark { fill: var(--green-900); }
.a-soft-green { fill: color-mix(in srgb, var(--green-600) 45%, white); }
.a-indigo { fill: var(--indigo); }
.a-lilac { fill: color-mix(in srgb, var(--indigo) 28%, white); }
.a-sun { fill: var(--sun); }
.a-glow { fill: rgba(255, 255, 255, .1); }
.a-shade { fill: rgba(0, 0, 0, .13); }
.pg-art .a-field { fill: var(--white); stroke: var(--line); stroke-width: 2; }
.a-ink { color: var(--green-900); }
.a-deep-ink { color: var(--green-600); }
.a-on { color: var(--white); }
.a-stroke, .a-stroke-sun, .a-stroke-line, .a-road, .a-tick, .a-handle { fill: none; stroke: var(--green-900); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.a-stroke-sun { stroke: var(--sun); stroke-width: 11; }
.a-stroke-line { stroke: var(--line); stroke-width: 4; }
.a-road { stroke: var(--white); stroke-width: 9; }
.a-tick { stroke: var(--white); stroke-width: 15; }
.a-handle { stroke: var(--sun); stroke-width: 22; }
.a-lens { fill: color-mix(in srgb, var(--indigo) 16%, transparent); stroke: var(--sun); stroke-width: 15; }
.a-404 { fill: var(--indigo); font: 700 116px/1 var(--head); letter-spacing: -4px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-head .pg-chips { margin-top: 1.3rem; }
.pg-chips span { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .7rem; border-radius: 99px; background: var(--mist); color: var(--ink); font-size: .95rem; font-weight: 500; }
.page-head .pg-chips span { background: var(--white); }
.pg-chips .ico { color: var(--green-600); }

/* Cards whose heading link covers the whole card */
.pg-card { position: relative; border: 1px solid var(--line); border-radius: 24px; background: var(--white); transition: border-color .25s, box-shadow .25s; }
.pg-card:hover, .pg-card:focus-within { border-color: var(--green-600); box-shadow: 0 24px 44px -28px var(--green-900); }
.pg-card h2, .pg-card h3 { font-size: 1.5rem; color: var(--green-900); overflow-wrap: anywhere; }
.pg-card h2 a, .pg-card h3 a { text-decoration: none; }
.pg-card h2 a::after, .pg-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.pg-card h2 a:focus-visible, .pg-card h3 a:focus-visible { outline: 0; box-shadow: none; }
.pg-card h2 a:focus-visible::after, .pg-card h3 a:focus-visible::after { outline: 3px solid var(--green-900); outline-offset: 3px; }
.pg-card p { color: var(--soft); }

.hm-svc.pg-svc { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.pg-svc li { display: grid; grid-template-columns: 58px 1fr; align-content: start; gap: 0 1.3rem; scroll-margin-top: 90px; }
.pg-svc .hm-ico { grid-row: span 2; margin: 0; }
.pg-svc h3 { font-size: 1.45rem; }
.hm-card[id] { scroll-margin-top: 90px; }
.hm-other { --tone: var(--green-600); }
.scr-other { display: grid; place-items: center; }
.scr-other .ico { width: 5rem; height: 5rem; color: var(--green-600); }

.pg-story p { max-width: 38em; font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.5 var(--head); color: var(--green-900); }
.pg-story p + p { margin-top: 1.3rem; }
.pg-values { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 2.8rem 0 0; }
.pg-values div { flex: 1 1 300px; padding: 1.6rem; border-radius: 22px; background: var(--mist); }
.pg-values dt { color: var(--green-800); font: 600 1.35rem/1.3 var(--head); }
.pg-values dd { margin: .5rem 0 0; color: var(--soft); }
/* One or two people: the heading goes beside them, and each card stays as wide as in a row of four */
.team-few { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.team-few .team { grid-template-columns: 1fr 1fr; margin-top: 0; }

.pg-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.pg-posts .pg-card { overflow: hidden; }
.pg-posts img, .pg-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--green-600), var(--green-900)); color: var(--sun); font-size: 2.4rem; }
.pg-posts .pg-card > div { display: grid; gap: .6rem; padding: 1.5rem; }
.pg-posts + .actions { margin-top: 2.5rem; }
.pg-jobs { display: grid; gap: 1.1rem; margin-top: 2.5rem; }
.pg-jobs .pg-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 1.1rem 1.4rem; padding: clamp(1.3rem, 2.5vw, 2rem); }
.pg-jobs .hm-ico { margin: 0; }
.pg-jobs h3 { margin-bottom: .8rem; }
.pg-jobs .pg-card:hover .btn { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.pg-empty { display: grid; justify-items: center; gap: .8rem; padding: clamp(2.2rem, 6vw, 4.5rem) 1.4rem; border-radius: 26px; background: var(--mist); text-align: center; }
.pg-empty .hm-ico { width: 76px; height: 76px; margin: 0 0 .6rem; border-radius: 24px; font-size: 1.8rem; }
.pg-empty h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green-900); }
.pg-empty p { max-width: 34em; color: var(--soft); }
.pg-empty .btn { margin-top: .8rem; }

.pg-form { max-width: 860px; padding: clamp(1.6rem, 3.6vw, 3rem); border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: 0 34px 70px -50px var(--green-900); }
.pg-form .sec-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pg-contact { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; gap: 1.5rem; }
.pg-contact .contact-box { border-radius: 26px; background: radial-gradient(90% 70% at 100% 0, var(--green-800), transparent 75%), var(--green-900); color: var(--white); }
.pg-contact .reach .ico { color: var(--sun); }

.pg-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pg-door { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 1.1rem 1.3rem; padding: clamp(1.3rem, 2.4vw, 2rem); }
.pg-door.hm-school { --tone: var(--indigo); }
.pg-door-ico { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 30%; background: var(--tone); color: var(--white); font-size: 1.4rem; }
.pg-door h2 { margin-bottom: .2rem; }
.pg-door p { overflow-wrap: anywhere; }

/* Reading pages: the text, with a list of its headings beside it on Privacy and Terms */
.hm-wrap .reading { max-width: 760px; }
.hm-wrap .reading > :first-child { margin-top: 0; }
.pg-cols { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); justify-content: space-between; align-items: start; gap: clamp(1.8rem, 4vw, 4rem); }
.pg-side { position: sticky; top: 100px; padding: 1.5rem; border-radius: 22px; background: var(--mist); }
.pg-side h2 { margin-bottom: .6rem; font-size: 1.2rem; color: var(--green-900); }
.pg-side a { display: flex; align-items: center; min-height: 44px; line-height: 1.3; text-decoration: none; }
.pg-side a:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Bottom nav (phones and tablets) ---------- */
.tabs { display: none; }

/* Floating links: labels are always shown */
.floats { position: fixed; right: max(.75rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 40; display: grid; justify-items: end; gap: .6rem; }
.fl { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .55rem .95rem; border: 2px solid var(--white); border-radius: 99px; color: var(--white); font-weight: 700; font-size: .875rem; white-space: nowrap; line-height: 1.15; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(6, 48, 31, .6); }
.fl:hover { filter: brightness(1.15); }
.fl-school { background: var(--indigo); }
.fl-learn { background: var(--green-800); }
.fl-wa { background: #0f7a43; }

/* Laptops: the page leaves room beside its content for the floating links, so they cover no text */
@media (min-width: 1280px) and (max-width: 1559px) {
    :root { --max: calc(100vw - 28rem + 2 * var(--gutter)); }
    .ems-foot { --ems-max: var(--max); }
}

@media (max-width: 1279px) {
    body { background: var(--green-900); }
    main { background: var(--white); }

    /* As on computers, but smaller on smaller screens. The footer leaves room, so its last links are never covered. */
    :root { --stack: calc(150px + 3.6vw); }
    .ems-foot { --ems-foot-space: var(--stack); }
    html { scroll-padding-bottom: calc(var(--stack) + 24px); }
    .floats { gap: calc(.35rem + .3vw); pointer-events: none; }
    .pg-door { grid-template-columns: 72px minmax(0, 1fr); }
    .pg-door .btn { grid-column: 2; justify-self: start; }
    .fl { gap: calc(.3rem + .36vw); min-height: calc(35px + 1vw); padding: calc(.25rem + .35vw) calc(.6rem + .43vw); font-size: calc(.7rem + .22vw); pointer-events: auto; }
    .typing .floats { display: none; }
}
html.ems-menu-open .floats { display: none; }
@media (max-width: 999px) {
    :root { --tabs: calc(66px + env(safe-area-inset-bottom)); }
    html { scroll-padding-bottom: calc(var(--tabs) + var(--stack)); }
    body { padding-bottom: var(--tabs); }

    /* Bottom nav, with the labelled floating links stacked above it on the right */
    .tabs { position: fixed; right: 0; bottom: 0; left: 0; z-index: 41; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--tabs); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
    .tabs a, .tabs button { display: grid; align-content: center; justify-items: center; gap: .15rem; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--soft); font: 500 .8rem/1.15 var(--body); text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .tabs .ico { box-sizing: content-box; width: 22px; height: 22px; padding: .22rem 1rem; border-radius: 99px; transition: background-color .25s, color .25s; }
    .tabs span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tabs a:hover, .tabs button:hover { color: var(--green-900); }
    .tabs [aria-current] { color: var(--green-800); font-weight: 700; }
    .tabs [aria-current] .ico { background: var(--green-600); color: var(--white); }
    .tabs :focus-visible { outline-offset: -3px; outline-color: var(--green-900); box-shadow: none; }
    .typing .tabs, html.ems-menu-open .tabs { display: none; }
    .floats { bottom: calc(var(--tabs) + .75rem); }

    .end-in { grid-template-columns: 1fr; }
    .hm-hero-in, .hm-faq, .pg-contact, .pg-cols, .team-few { grid-template-columns: 1fr; }
    .pg-cols .pg-side { position: static; order: -1; }
    .pg-posts { grid-template-columns: 1fr 1fr; }
    .team-few .team { margin-top: 0; }
    .hm-stage { width: 100%; max-width: 620px; margin-inline: auto; }
    .hm-svc, .hm-steps { grid-template-columns: 1fr 1fr; }
    .hm-steps::before { display: none; }
    .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .lead { font-size: 1.075rem; }
    .form { grid-template-columns: 1fr; }
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .t-body { padding: .8rem .8rem .9rem; }
    .t-body h3 { font-size: 1.1rem; }
    .t-body .role { font-size: .9rem; }
    .modal-in { grid-template-columns: 1fr; }
    .modal .t-photo { width: 150px; margin: 1.25rem 1.25rem 0; }
    .modal-text { padding: 1.1rem 1.25rem 1.5rem; }
    .modal-text h2 { padding-right: 0; font-size: 1.6rem; }
    .hm-hero { background: radial-gradient(130% 45% at 80% 78%, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 75%), linear-gradient(160deg, var(--mist), var(--green-100)); }
    .hm-hero-in { padding-block: 2.2rem 3rem; gap: 2.2rem; }
    .hm-stage { aspect-ratio: 1 / 1.08; }
    .hm-win { border-radius: 14px; }
    .hm-win-top { min-height: 32px; padding: .3rem .7rem; font-size: .75rem; }
    .hm-win-main { top: 6%; left: 0; width: 100%; height: 56%; }
    .hm-win-main .scr { height: calc(100% - 32px); }
    .hm-win-learn, .hm-win-rental { width: 47%; bottom: 0; }
    .hm-win .scr { font-size: .75rem; }
    .hm-win .scr-main { gap: .6rem; padding: .7rem; }
    .hm-win .scr-tiles { gap: .4rem; }
    .hm-win .scr-chart { min-height: 40px; }
    .hm-win .scr-lesson { height: 60px; }
    .hm-win .scr-list, .hm-win .scr-rental { gap: .5rem; padding: .7rem; }
    .hm-win .scr-units i { padding: .35rem 0; }
    .hm-chip { padding: .5rem .8rem; font-size: .8rem; }
    .page-head { background: radial-gradient(130% 45% at 80% 78%, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 75%), linear-gradient(160deg, var(--mist), var(--green-100)); }
    .pg-head { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2rem 2.2rem; }
    .pg-art { max-width: 330px; }
    .hm-grid, .hm-svc, .hm-ba, .hm-svc.pg-svc, .pg-posts, .pg-doors { grid-template-columns: 1fr; }
    .pg-form { padding: 1.4rem 1.1rem; border-radius: 20px; }
    .pg-jobs .pg-card { grid-template-columns: 1fr; }
    .pg-jobs .btn { justify-self: start; }
    .pg-door { grid-template-columns: 58px 1fr; }
    .hm-shot:not(.hm-shot-photo) { padding: 1.2rem 1.2rem 0; min-height: 216px; } /* the drawings need a little more height */
    .pg-photo { border-radius: 24px; }
    .vm-card, .vm-mission { grid-template-columns: 1fr; gap: 1.4rem; min-height: 0; padding: 1.6rem 1.4rem; border-radius: 26px; }
    .vm-mission .vm-text { order: 0; }
    .vm-art { max-width: 270px; }
    .vm-photo { max-width: none; border-radius: 20px; }
    .vm-card::after { top: -86px; right: -86px; }
    .vm-mission::after { right: -86px; left: auto; }
    .hm-shot .scr-school .scr-main { padding: .7rem; }
    .scr-school { grid-template-columns: 11% 1fr; }
    .scr-side { padding: .9rem .45rem; }
    .hm-win .scr-tiles span, .hm-shot .scr-tiles span { padding: .5rem .35rem; font-size: .68rem; }
    .hm-svc li { display: grid; grid-template-columns: 58px 1fr; gap: 0 1.1rem; padding: 1.3rem; }
    .hm-svc .hm-ico { grid-row: span 2; margin: 0; }
    .hm-go { justify-self: center; margin-block: -18px; transform: rotate(90deg); }
    .hm-steps { grid-template-columns: 1fr; gap: 0; }
    .hm-steps li { display: grid; grid-template-columns: 60px 1fr; gap: 0 1.1rem; padding-bottom: 1.8rem; }
    .hm-steps li::before { grid-row: span 2; z-index: 1; margin: 0; }
    .hm-steps li:not(:last-child)::after { content: ""; position: absolute; top: 56px; bottom: 0; left: 28px; width: 4px; background: var(--green-600); }
    .tabs a, .tabs button { font-size: .75rem; letter-spacing: -.015em; }
    .tabs span { line-height: 1.05; white-space: normal; }
    .tabs .ico { padding-inline: .8rem; }
}
@media (max-width: 380px) {
    .tabs a, .tabs button { letter-spacing: -.03em; }
}
@media (max-width: 350px) {
    .tabs a, .tabs button { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
