/* Wildlife K9 Academy: film look. Tokens here; the films and cut-outs are drawn by js/stage.js. */
:root {
  --night: #0c1210; --night-2: #151d1a; --bone: #efeae0; --bone-2: #c9c6bb; --ink: #11170f; --ink-2: #4a5148; --lead: #ff5a1f; --lead-ink: #180700; --rule: rgba(17, 23, 15, .2);
  --gut: clamp(18px, 4.4vw, 84px); --big: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; --text: Archivo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--bone); background: var(--night); font: 400 clamp(1.02rem, .95rem + .3vw, 1.2rem)/1.5 var(--text); }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lead); outline-offset: 4px; border-radius: 3px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 20; background: var(--lead); color: var(--lead-ink); padding: 12px 18px; }
.skip:focus { top: 12px; }
#stage { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: none; }
.motion-on #stage { display: block; }

/* header */
.top { position: fixed; z-index: 10; inset: 0 0 auto 0; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); padding: max(14px, env(safe-area-inset-top)) var(--gut) 14px; }
.top::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(rgba(12, 18, 16, .78), rgba(12, 18, 16, 0)); pointer-events: none; }
.brand { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; font: 800 1.5rem/1 var(--big); text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand b { font-weight: 800; color: var(--lead); margin-left: .28em; }
nav { display: flex; gap: clamp(14px, 1.8vw, 30px); font-size: .98rem; font-weight: 500; }
nav a { padding: 11px 0; text-decoration: none; background: linear-gradient(var(--lead), var(--lead)) 0 calc(100% - 8px) / 0 2px no-repeat; transition: background-size .25s; }
nav a:hover, nav a[aria-current] { background-size: 100% 2px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 100%; display: grid; gap: 0; min-width: 200px; padding: 10px 20px; background: var(--night-2); }
.menu nav a { font-size: 1.1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 3px; background: var(--lead); color: var(--lead-ink); font: 700 1rem/1.1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn:hover { background: #ff7a48; }
.btn:disabled { opacity: .55; cursor: default; }
.btn:active { transform: translateY(1px); }
.btn-big { min-height: 56px; padding: 14px 30px; font-size: 1.1rem; }
.link { font-weight: 600; text-decoration-color: var(--lead); text-decoration-thickness: 2px; text-underline-offset: 7px; padding: 12px 0; }
.link:hover { color: #ff8d62; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 1.5em; }

html:not(.motion-on) .top::before, .past .top::before { inset: 0; background: var(--night); }
.motion-on .scene { scroll-margin-top: -12vh; }
.day, .after { scroll-margin-top: 100px; }
#book, #list, .leave, form [role="status"] { scroll-margin-top: 110px; }

/* film scenes: plain photos first; the stage takes over with .motion-on */
main { position: relative; z-index: 1; }
.scene { position: relative; }
.panel { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.still { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: var(--at, 50%) 50%; filter: brightness(.55); }
.motion-on .still { display: none; }
.motion-on .scene { height: 230vh; }
.motion-on .scene.last { height: 260vh; }
.motion-on .panel { position: fixed; inset: 0; height: 100vh; height: 100svh; min-height: 0; background: none; pointer-events: none; }
.motion-on .copy { opacity: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; padding: 96px var(--gut) clamp(28px, 6vh, 72px); }
.big { position: absolute; left: var(--gut); right: var(--gut); top: var(--y, 16vh); font: 900 min(var(--fs, 13vw), var(--fh, 27vh))/.84 var(--big); text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.big span { display: block; width: max-content; }
.motion-on .big { color: transparent; }
.big.right span { margin-left: auto; }
.copy { max-width: 30em; text-wrap: pretty; will-change: opacity, transform; }
.copy > p + p:not(.acts) { margin-top: 1em; }
.side-r { justify-self: end; }
.copy.side-r { margin-left: auto; }
.lede { font-size: 1.12em; }
.note { color: var(--bone-2); font-size: .95em; }
.what { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }
.what li { border-top: 2px solid rgba(239, 234, 224, .5); padding-top: 10px; }
.what b, .copy h3 { display: block; font-weight: 700; font-size: 1.08em; line-height: 1.25; }
.what span { color: var(--bone-2); }
.two + .note { margin-top: 1.1em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.copy.wide { max-width: 52em; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(239, 234, 224, .38); }
.steps li::before { content: counter(s); font: 900 1.45em/1 var(--big); color: var(--lead); }

/* booking and questions: the light comes on */
.day { position: relative; z-index: 2; background: var(--bone); color: var(--ink); padding: clamp(72px, 12vh, 150px) var(--gut); }
.day-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(40px, 7vw, 130px); align-items: start; max-width: 1500px; margin: 0 auto; }
.h { font: 900 clamp(3rem, 7.2vw, 7.4rem)/.86 var(--big); text-transform: uppercase; text-wrap: balance; }
.day .intro { max-width: 30em; margin-top: 1.2em; }
.facts { margin-top: 2.2em; border-bottom: 1px solid var(--rule); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 700; text-align: right; }
.form { background: #fff; padding: clamp(22px, 3vw, 46px); border-radius: 4px; border-top: 6px solid var(--lead); }
.form h2 { font: 800 clamp(2rem, 3vw, 3rem)/.95 var(--big); text-transform: uppercase; }
.form .sub { margin-top: .5em; color: var(--ink-2); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
label { font-size: .95rem; font-weight: 600; min-width: 0; }
input, select { display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 10px 14px; border: 1.5px solid #8b9088; border-radius: 3px; background: #fff; color: var(--ink); font: 400 1rem/1.3 var(--text); }
input::placeholder { color: #666d64; }
.day :focus-visible { outline-color: var(--ink); }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.send p { flex: 1 1 14em; font-size: .95rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.checks { grid-column: 1 / -1; display: grid; gap: 4px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 8px 0; font-weight: 400; cursor: pointer; }
.check input { width: 24px; min-height: 24px; height: 24px; margin: 0; padding: 0; accent-color: var(--lead); }
.robot, .cf-turnstile { grid-column: 1 / -1; min-height: 65px; }
.leave { margin-top: 2em; border-block: 1px solid var(--rule); }
.leave summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.leave form { grid-template-columns: minmax(0, 1fr); margin: 4px 0 20px; }
.joined #list > :not(.send), .joined #list .btn { display: none; }
.joined #list-note { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.after { position: relative; z-index: 2; background: var(--night); padding: clamp(72px, 12vh, 150px) var(--gut) 40px; }
.after-in { max-width: 1500px; margin: 0 auto; }
.qs { columns: 2; column-gap: clamp(40px, 7vw, 130px); margin-top: 44px; }
.qs details { break-inside: avoid; border-top: 1px solid rgba(239, 234, 224, .3); }
.qs summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 600; position: relative; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--lead); }
.qs details[open] summary::after { content: "\2013"; }
.qs p { padding: 0 34px 20px 0; color: var(--bone-2); }
footer { margin-top: clamp(80px, 14vh, 170px); }
.sign { font: 900 min(13.4vw, 15rem)/.82 var(--big); text-transform: uppercase; white-space: nowrap; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; margin-top: 28px; font-size: .98rem; color: var(--bone-2); }
.foot p { max-width: 34em; }
.foot a { margin-right: 18px; display: inline-block; padding: 6px 0; color: var(--bone); }

@media (max-width: 1080px) { nav.wide { display: none; } .menu { display: block; } }
@media (max-width: 900px) { .day-in { grid-template-columns: 1fr; } .qs { columns: 1; } }
@media (orientation: portrait) {
  .panel { padding-bottom: clamp(70px, 10vh, 100px); }
  .big, .big.right { position: static; margin-bottom: 18px; font-size: min(var(--fsp, 18vw), 17vh); order: -1; }
  .big.right span { margin-left: 0; }
  .copy.side-r { justify-self: start; margin-left: 0; }
}
@media (max-width: 620px) {
  .brand { font-size: 1.22rem; }
  .brand b { display: none; }
  .top .btn { padding: 10px 14px; font-size: .95rem; }
  .what, .two { gap: 10px 18px; font-size: .95rem; }
  .two { grid-template-columns: 1fr; }
  form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 520px) and (orientation: landscape) { .motion-on .what span, .motion-on .panel .note { display: none; } .panel { padding-bottom: 20px; } .big { top: 60px; font-size: min(var(--fs, 13vw), 15.5vh); } #pulling .big { left: 40%; font-size: 12vh; } .steps li { padding-block: 4px; font-size: 15px; } .copy .lede { font-size: 15px; max-width: 22em; } }
@media (prefers-reduced-motion: reduce) { .big { position: static; margin-bottom: 24px; white-space: normal; } .btn, nav a { transition: none; } }
@media (max-width: 380px) { .robot { max-width: 100%; overflow: hidden; min-height: 52px; height: 52px; } .robot > * { transform: scale(.8); transform-origin: 0 0; } } /* the widget is 300px wide; scaled to 240px and clipped so a 320px phone does not scroll sideways */
@media (max-height: 620px) and (max-width: 500px) and (orientation: portrait) { .motion-on .panel { padding-bottom: 14px; } .motion-on .big { font-size: min(var(--fsp, 16vw), 9vh); margin-bottom: 8px; } .motion-on .copy { font-size: 14.5px; line-height: 1.4; } .motion-on .acts { margin-top: .8em; } .motion-on .steps li { padding-block: 4px; } }
@media (orientation: landscape) { #training .copy { max-width: 23em; } #find .copy { max-width: 19em; } #boarding .copy { max-width: 13em; } }
