/* bouchey.dev — one column, set like a printed programme. Paper, ink, one rust accent. */
:root {
  --paper: #F6F3ED;
  --ink: #1F1D1A;
  --muted: #5B564E;
  --rule: #D8D2C6;
  --accent: #9A4527;       /* the pack's rust, darkened for text contrast on paper */
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);   /* 17px */
  text-rendering: optimizeLegibility;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }   /* 18px */

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgba(154, 69, 39, .45); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem .9rem; background: var(--ink); color: var(--paper); }
.skip:focus { top: 1rem; }

main, .site-foot { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 760px) { main, .site-foot { padding: 0 2.5rem; } }

p { margin: 0 0 1rem; max-width: var(--measure); }

/* the opening */
.intro { padding: 4.5rem 0 3rem; }
@media (min-width: 760px) { .intro { padding: 7.5rem 0 4rem; } }
h1 { font: 700 2.75rem/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 1.25rem; }
@media (min-width: 760px) { h1 { font-size: 4rem; } }
.lede { font-size: 1.3125rem; line-height: 1.45; max-width: 32rem; margin-bottom: 1.25rem; }
@media (min-width: 760px) { .lede { font-size: 1.5rem; max-width: 36rem; } }
.inline { display: flex; flex-wrap: wrap; column-gap: 1.5rem; margin-top: 1.75rem; }
.inline a { display: inline-flex; align-items: center; min-height: 44px; }

/* sections: a thin rule, a serif heading, then entries */
section { border-top: 1px solid var(--rule); padding: 2.5rem 0 1rem; }
@media (min-width: 760px) { section { padding: 3.5rem 0 1.5rem; } }
h2 { font: 700 1.875rem/1.15 var(--serif); margin: 0 0 .5rem; }
@media (min-width: 760px) { h2 { font-size: 2.25rem; } }
.sub, .lead-in { color: var(--muted); margin-bottom: 2rem; }
h3 { font: 700 1.375rem/1.25 var(--serif); margin: 0 0 .2rem; }
h3.minor { font: 600 .8125rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 2.25rem 0 .75rem; }

/* an entry in a list, not a card */
.entry { padding: 1.75rem 0 1rem; border-top: 1px solid var(--rule); }
.entry:first-of-type, h2 + .entry { border-top: 0; padding-top: .5rem; }
.sub + .entry { border-top: 0; padding-top: 0; }
.label { font: 600 .75rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.status { color: var(--muted); }
.status::before { content: "·"; margin: 0 .5em; }
.entry dl { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; row-gap: .35rem; margin: 0 0 1rem; max-width: var(--measure); }
.entry dt { font: 600 .8125rem/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .12em; white-space: nowrap; }
.entry dd { margin: 0; }
/* Colour means one thing: rust is what I did or still owe, ink is what AI and automation did. */
.entry dt.by-me { color: var(--accent); }
.entry dt.by-ai { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; margin: 0 0 .5rem; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }

/* a real screenshot in a plain frame; beside the text on wider screens */
.shot { margin: 0 0 1.25rem; max-width: 11rem; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
@media (min-width: 760px) {
  .entry.has-shot { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 2.75rem; align-items: start; }
  .entry.has-shot .shot { margin: .35rem 0 0; max-width: none; }
}

/* a drawn diagram: always fits the column. Where it is too small to read, the steps are also listed as text */
.diagram { margin: .25rem 0 1.5rem; }
.diagram svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.diagram .zoom { display: block; }
.diagram .zoom.can-zoom { cursor: zoom-in; }
.diagram .links { margin: .25rem 0 0; }

/* the diagram's larger view: a framed sheet in the centre of the screen */
.lightbox { border: 0; padding: 0; background: transparent; width: calc(100% - 1.5rem); max-width: 72rem; max-height: calc(100% - 1.5rem); overflow: auto; overscroll-behavior: contain; }
html:has(.lightbox[open]) { overflow: hidden; }   /* the page behind stays put */
.lightbox::backdrop { background: rgba(31, 29, 26, .72); }
.lightbox .frame { background: var(--paper); border: 1px solid var(--rule); padding: .75rem; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35); }
.lightbox .pan { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--rule); }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); object-fit: contain; }
.lightbox .hint { margin: 0 0 .5rem; font-size: .875rem; color: var(--muted); }
/* on a phone, fitting the width would make the labels unreadable: show it taller and let it scroll sideways */
@media (max-width: 759px) {
  .lightbox img { width: auto; max-width: none; height: min(32rem, calc(100vh - 8.5rem)); height: min(32rem, calc(100dvh - 8.5rem)); max-height: none; }
}
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; padding-top: .75rem; }
.lightbox .bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; font-weight: 600; color: var(--paper); background: var(--ink); border-radius: 2px; text-decoration: none; }
.lightbox .bar a:hover { background: var(--accent); }
.lightbox .close { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.lightbox .close:hover { background: none; color: var(--ink); }
.steps { margin: 0 0 1.5rem; padding-left: 1.5rem; max-width: var(--measure); }
.steps li { margin-bottom: .2rem; }
.steps strong { font-weight: 600; }
.steps .me strong { color: var(--accent); }
@media (min-width: 900px) { .steps { display: none; } }
.diagram .wf-serif { font-family: var(--serif); }

/* experience */
.strengths { list-style: none; margin: 0 0 1.75rem; padding: 0; max-width: var(--measure); }
.strengths li { padding: .55rem 0; border-top: 1px solid var(--rule); }
.strengths li:last-child { border-bottom: 1px solid var(--rule); }
.strengths strong { font-weight: 600; }
.history { display: grid; grid-template-columns: 1fr; margin: 0 0 1rem; max-width: 46rem; }
.history dt { font: 600 .875rem/1.5 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .9rem; }
.history dd { margin: 0; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.history .org { display: block; color: var(--muted); }
/* the practice figures: one ruled block of large figures with small labels, like a box score; rust marks a gap still open */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; margin: 0 0 1.5rem; max-width: 46rem; border-top: 1px solid var(--rule); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: .9rem 0 .8rem; border-bottom: 1px solid var(--rule); }
.stats dd { margin: 0; font: 700 1.75rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stats dt { margin-top: .3rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stats dd.gap { color: var(--accent); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; } .stats dd { font-size: 2rem; } }
@media (min-width: 760px) {
  .history { grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 1.5rem; }
  .history dt, .history dd { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .history dt { padding-top: .95rem; }
}

.yr { color: var(--muted); font-variant-numeric: tabular-nums; }

/* contact */
#contact { padding-bottom: 3rem; }
#contact h2 { margin-bottom: 1.5rem; }
.note { color: var(--muted); }
form { max-width: 32rem; }
.field { margin: 0 0 1.25rem; }
label { display: block; font: 600 .8125rem/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #FDFCF9;
  border: 1px solid #B9B2A5; border-radius: 2px; padding: .65rem .75rem; min-height: 44px;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
button {
  font: 600 1rem/1 var(--sans); color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px; padding: 0 1.5rem; min-height: 46px; cursor: pointer;
}
button:hover { background: var(--accent); border-color: var(--accent); }
button:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #8A2A12; }
.form-done { font: 700 1.25rem/1.4 var(--serif); }

.site-foot { padding-bottom: 3rem; color: var(--muted); font-size: .9375rem; }
.site-foot p { margin: 0; max-width: none; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.site-foot a { display: inline-block; padding: .7rem 0; }

/* wide screens: section headings hang in a margin column, like a printed programme */
@media (min-width: 1000px) {
  section { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 3rem; }
  section > * { grid-column: 2; }
  section > h2 { grid-column: 1; grid-row: 1 / span 30; font-size: 1.875rem; margin: 0; padding-top: .1rem; }
  #contact h2 { margin-bottom: 0; }
  .intro { padding-left: 14rem; }
  .sub + .entry, h2 + .entry, h2 + .sub, h2 + .lead-in, h2 + ul, h2 + p { margin-top: 0; }
}


/* ============================================================
   Park brochure look (preview branch). Flat inks, forest green and tan.
   Colour means one thing: rust is what I did or still owe. Links are green.
   ============================================================ */
:root {
  --paper: #F0E7CF;
  --ink: #22201B;
  --muted: #4F4A40;
  --rule: #B9AE8E;
  --green: #1E3324;
  --green-2: #2F4A36;
  --tan: #DDD0A4;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --serif: "Zilla Slab", Georgia, "Times New Roman", serif;
}
body { font-family: var(--serif); font-size: 1.125rem; line-height: 1.55; }
@media (min-width: 760px) { body { font-size: 1.1875rem; } }
a { color: var(--green); text-decoration-color: rgba(30, 51, 36, .5); font-weight: 600; }
:focus-visible { outline-color: var(--green); }

/* the poster and the name band run the full width of the window */
.hero { background: var(--green); position: relative; }
/* a light paper grain over the poster, like a screen print */
.grain { position: absolute; left: 0; right: 0; top: 0; height: clamp(15rem, 58vw, 38rem); background: url(/assets/noise.png); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.poster { display: block; width: 100%; max-width: 87.5rem; margin: 0 auto; height: clamp(15rem, 58vw, 38rem); }
.band { background: var(--green); color: var(--paper); }
.wrap { max-width: 60rem; margin: 0 auto; padding: 1.1rem 1.25rem 1.3rem; }
@media (min-width: 760px) { .wrap { padding: 1.5rem 2.5rem 1.75rem; } }
h1 { font: 400 3.6rem/.95 var(--display); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 .5rem; color: var(--paper); }
@media (min-width: 760px) { h1 { font-size: 6rem; } }
.band .lede { font: 600 1.375rem/1.25 var(--serif); margin: 0; max-width: none; color: var(--paper); }
@media (min-width: 760px) { .band .lede { font-size: 1.75rem; } }

.intro { padding: 2rem 0 2rem; }
@media (min-width: 760px) { .intro { padding: 2.75rem 0 1.5rem; } }
@media (min-width: 1000px) { .intro { padding-left: 0; } }
.intro .open { font-size: 1.3125rem; line-height: 1.4; font-weight: 600; }
@media (min-width: 760px) { .intro .open { font-size: 1.5rem; } }
.inline { margin-top: 1rem; }

/* sections: a heavy green rule and a poster heading */
section { border-top: 4px solid var(--green); }
h2 { font: 400 2.25rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--green); margin: 0 0 .6rem; }
@media (min-width: 760px) { h2 { font-size: 2.75rem; } }
@media (min-width: 1000px) { section > h2 { font-size: 2.25rem; } }
h3 { font: 600 1.5rem/1.2 var(--serif); }
h3.minor { font-family: var(--sans); }
.label { font-family: var(--sans); }
.entry dt, .history dt, .stats dt, label { font-family: var(--sans); }
.sub, .lead-in { color: var(--muted); }

/* pictures of the work: bigger, framed in green, never hidden behind a click */
.shot { max-width: 17rem; }
.shot img, .plate img { border: 2px solid var(--green); }
.plate { margin: 0 0 1.25rem; }
.plate img { display: block; width: 100%; height: auto; background: #fff; }
@media (min-width: 760px) {
  .entry.has-shot { grid-template-columns: 17rem minmax(0, 1fr); column-gap: 2.5rem; }
  .plate { max-width: 34rem; }
}

/* the practice figures sit on a tan band, like the fact panel of a brochure */
#practice { background: var(--tan); box-shadow: 0 0 0 100vmax var(--tan); clip-path: inset(0 -100vmax); border-top: 0; }
#practice + section { border-top: 0; }
.stats { border-top-color: var(--green); }
.stats > div { border-bottom-color: #A99C70; }
.stats dd { font: 400 2.25rem/1.05 var(--display); letter-spacing: .01em; color: var(--green); }
@media (min-width: 760px) { .stats dd { font-size: 2.75rem; } }
.stats dd.gap { color: var(--accent); }

/* say hello: a green band to close the page */
#contact { background: var(--green); color: var(--paper); box-shadow: 0 0 0 100vmax var(--green); clip-path: inset(0 -100vmax); border-top: 0; }
#contact h2, #contact .note, #contact label, #contact a { color: var(--paper); }
#contact a { text-decoration-color: rgba(240, 231, 207, .6); }
#contact input, #contact textarea { background: var(--paper); border-color: var(--paper); }
#contact :focus-visible { outline-color: var(--paper); }
#contact input:focus-visible, #contact textarea:focus-visible { outline: 3px solid #E4D3A0; outline-offset: 2px; border-color: var(--paper); }
#contact button { font: 400 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--green); background: var(--tan); border-color: var(--tan); min-height: 50px; padding: 0 1.75rem; }
#contact button:hover { background: var(--paper); border-color: var(--paper); }
#contact .form-error { color: #F3C3A8; }
.form-done { font: 600 1.375rem/1.4 var(--serif); }
button { font-family: var(--sans); }

.site-foot { background: var(--green); color: var(--paper); max-width: none; padding-top: 0; }
.site-foot p { max-width: 60rem; margin: 0 auto; border-top-color: rgba(240, 231, 207, .35); }
.site-foot a { color: var(--paper); }
.lightbox .bar a { background: var(--green); font-family: var(--sans); }
.lightbox .bar a:hover { background: var(--green-2); }

/* Small motion: flask bubbles beside "AI lab", and the dollar sign turning over. Off when the visitor asks for reduced motion. */
.flask { height: .82em; width: auto; margin-left: .25em; vertical-align: -.04em; overflow: visible; }
.flask .glass { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flask .liquid { fill: var(--green); }
.flask .in { fill: var(--paper); }
.flask .up { fill: none; stroke: var(--green); stroke-width: 1.6; }
.coin { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .flask .in { animation: bubble-in 2.6s ease-in infinite; }
  .flask .up { animation: bubble-up 3.9s ease-out infinite; }
  .flask .b2 { animation-delay: .9s; }
  .flask .b3 { animation-delay: 1.7s; }
  .flask .u2 { animation-delay: 1.9s; }
  .coin { animation: coin-turn 4.5s ease-in-out infinite; }
}
@keyframes bubble-in { 0% { transform: translateY(1px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-7px); opacity: 0; } }
@keyframes bubble-up { 0% { transform: translateY(9px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-5px); opacity: 0; } }
@keyframes coin-turn { 0%, 50% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }

/* Heading icons: signpost (Client projects), compass (Experience), raccoon (Say hello). */
.h-icon { height: .86em; width: auto; margin-left: .25em; vertical-align: -.06em; }
.h-icon * { transform-box: view-box; }
.signpost .post, .signpost .a1 { fill: var(--green); }
.signpost .a2 { fill: var(--green-2); }
.signpost .ground { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; }
.signpost .arm { transform-origin: 17px 11px; }
.signpost .a2 { transform-origin: 17px 23px; }
.compass .ring { fill: none; stroke: var(--green); stroke-width: 2.8; }
.compass .ticks { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.compass .north, .compass .pin { fill: var(--green); }
.compass .south { fill: var(--paper); stroke: var(--green); stroke-width: 1.4; stroke-linejoin: round; }
.compass .pin { fill: var(--paper); stroke: var(--green); stroke-width: 1.4; }
.compass .needle { transform-origin: 20px 20px; transform: rotate(24deg); }
.raccoon { height: 1.25em; vertical-align: -.1em; margin-left: .3em; }
.raccoon .fur { fill: #B9AE8E; }
.raccoon .light { fill: var(--paper); }
.raccoon .dark { fill: #14231A; }
.raccoon .arm-r { fill: none; stroke: #B9AE8E; stroke-width: 6; stroke-linecap: round; }
.raccoon .pad { fill: #B9AE8E; stroke: #14231A; stroke-width: 1.4; }
.raccoon .paw { transform-origin: 50px 47px; }
@media (prefers-reduced-motion: no-preference) {
  .signpost .a1 { animation: sign-sway 5s ease-in-out infinite; }
  .signpost .a2 { animation: sign-sway 5s ease-in-out -2.2s infinite reverse; }
  .compass .needle { animation: needle 7s ease-in-out infinite; }
  .io .raccoon .critter { transform: translateY(52px); transition: transform .8s cubic-bezier(.3, 1.35, .5, 1) .3s; }
  .io #contact.in .raccoon .critter { transform: none; }
  #contact.in .raccoon .paw, html:not(.io) .raccoon .paw { animation: paw-wave 5s ease-in-out 1.2s infinite; }
}
@keyframes sign-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes needle { 0%, 55%, 100% { transform: rotate(24deg); } 62% { transform: rotate(-22deg); } 72% { transform: rotate(46deg); } 82% { transform: rotate(10deg); } 91% { transform: rotate(30deg); } }
@keyframes paw-wave { 0%, 40%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(-16deg); } 16%, 32% { transform: rotate(12deg); } }
@media (min-width: 1000px) { .h-icon { display: block; height: 1.15em; margin: .35em 0 0; } .raccoon { height: 1.9em; } }

/* Poster life: ducks and a grazing bear by day, campfire at dusk, then moonrise, stars and an owl for a night minute. Two-minute loop.
   The sky, fire and moon run on the CSS timeline below. The ducks, bear and owl are moved by the script at the end of index.html, which reads the same timeline. Hidden for reduced motion. */
.poster .live { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .poster .live { display: inline; }
  .poster .night { mix-blend-mode: multiply; opacity: 0; animation: p-night 120s linear infinite; }
  .poster .stars { opacity: 0; animation: p-stars 120s linear infinite; }
  .poster .moon { animation: p-moon 120s linear infinite; }
  .poster .camp { opacity: 0; animation: p-camp 120s linear infinite; }
  .poster .glow { opacity: 0; animation: p-glow 120s linear infinite; }
  .poster .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: p-flick .55s ease-in-out infinite alternate; }
  .poster .f2 { animation-duration: .4s; }
  .poster .puff { transform-box: fill-box; transform-origin: center; opacity: 0; animation: p-puff 5.4s linear infinite; }
  .poster .p2 { animation-delay: 1.8s; }
  .poster .p3 { animation-delay: 3.6s; }
  .poster .owl-eyes { transform-box: fill-box; transform-origin: center; animation: p-blink 4.6s linear infinite; }
}
@keyframes p-night { 0%, 47% { opacity: 0; } 54%, 94% { opacity: .92; } 100% { opacity: 0; } }
@keyframes p-stars { 0%, 52% { opacity: 0; } 58%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes p-moon { 0%, 48% { transform: translateY(270px); opacity: 1; animation-timing-function: ease-out; } 66% { transform: translateY(14px); opacity: 1; } 93% { transform: translateY(0); opacity: 1; } 99%, 100% { transform: translateY(0); opacity: 0; } }
@keyframes p-camp { 0%, 36% { opacity: 0; } 40%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes p-glow { 0%, 47% { opacity: 0; } 55%, 93% { opacity: .26; } 99%, 100% { opacity: 0; } }
@keyframes p-flick { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.86, 1.14) skewX(4deg); } }
@keyframes p-puff { 0% { transform: translate(0, 0) scale(.6) rotate(0); opacity: 0; } 18% { opacity: .5; } 100% { transform: translate(14px, -50px) scale(2) rotate(60deg); opacity: 0; } }
@keyframes p-blink { 0%, 92%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(.1); } }

/* Signpost: the top arm shows NEW cut through to the background. */
.signpost { height: 1.3em; }
@media (min-width: 1000px) { .signpost { height: 1.6em; } }
.signpost .a1 { transform-origin: 22px 10.5px; }
.signpost .a2 { transform-origin: 22px 24.5px; }
.signpost .new-t { font-family: var(--display); fill: #000; }
@media (prefers-reduced-motion: no-preference) { .signpost .new-t { animation: sign-new 8s ease-in-out infinite; } }
@keyframes sign-new { 0%, 18% { fill: #fff; } 32%, 86% { fill: #000; } 100% { fill: #fff; } }

/* Sun and moon buttons at the lower right of the poster. */
.sky-switch { position: absolute; top: calc(clamp(15rem, 58vw, 38rem) - 3.5rem); right: max(.75rem, calc((100% - 87.5rem) / 2 + .75rem)); display: flex; gap: .375rem; }
.sky-switch[hidden] { display: none; }
.sky-switch { opacity: 0; transition: opacity 2.5s ease; }
.sky-switch.on { opacity: 1; }
.sky-switch button { width: 2.75rem; height: 2.75rem; padding: .6rem; border: 1px solid rgba(240, 231, 207, .55); border-radius: 2px; background: rgba(30, 51, 36, .82); color: var(--paper); cursor: pointer; }
.sky-switch button:hover { background: var(--green-2); }
.sky-switch button:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.sky-switch svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Raccoon: climbs up from behind SAY HELLO, sits on the letters, and his weight settles the words a little lower. */
#contact .hello { position: relative; display: inline-block; margin-top: 2.05em; }
#contact .raccoon { position: absolute; left: 50%; bottom: calc(100% - .17em); height: 2.05em; width: 2.61em; margin: 0 0 0 -1.3em; display: block; overflow: hidden; }
.raccoon .fur2 { fill: #A1946F; }
.raccoon .t-fur { stroke: #B9AE8E; }
.raccoon .t-ring, .raccoon .t-tip { stroke: #14231A; }
.raccoon .paw { transform-origin: 52px 48px; }
.raccoon .tail { transform-origin: 34px 59px; }
.raccoon .eyes { transform-origin: 40px 23.5px; }
.raccoon .critter { transform-origin: 40px 66px; }
@media (prefers-reduced-motion: no-preference) {
  .io .raccoon .critter { transform: translateY(70px); transition: none; }
  .io #contact.in .raccoon .critter { transform: none; animation: coon-up 1.7s ease-out .3s both; }
  .io #contact.in .hello { animation: hello-sink .8s ease-out 1.85s both; }
  #contact.in .raccoon .paw, html:not(.io) .raccoon .paw { animation: paw-wave 5s ease-in-out 2.6s infinite; }
  #contact.in .raccoon .tail, html:not(.io) .raccoon .tail { animation: tail-sway 2.8s ease-in-out infinite alternate; }
  #contact.in .raccoon .eyes, html:not(.io) .raccoon .eyes { animation: p-blink 5.2s linear infinite; }
}
@keyframes coon-up { 0% { transform: translateY(70px) rotate(0); } 25% { transform: translateY(50px) rotate(-7deg); } 50% { transform: translateY(30px) rotate(6deg); } 75% { transform: translateY(10px) rotate(-4deg); } 90% { transform: translateY(-2px) rotate(0); } 100% { transform: none; } }
@keyframes hello-sink { 0% { transform: translateY(0); } 50% { transform: translateY(.3em); } 100% { transform: translateY(.2em); } }
@keyframes tail-sway { from { transform: rotate(-9deg); } to { transform: rotate(7deg); } }

/* Raccoon head tilts toward the waving paw. */
.raccoon .coon-head { transform-origin: 40px 34px; }
@media (prefers-reduced-motion: no-preference) {
  #contact.in .raccoon .coon-head, html:not(.io) .raccoon .coon-head { animation: coon-tilt 5s ease-in-out 2.6s infinite; }
}
@keyframes coon-tilt { 0%, 42%, 100% { transform: rotate(0); } 8%, 32% { transform: rotate(6deg); } 62%, 70% { transform: rotate(-4deg); } }

/* Poster fills the full width at any window size; height is capped so the name band stays in reach. */
.hero { --poster-h: clamp(15rem, 58.34vw, 84vh); }
.poster { max-width: none; height: var(--poster-h); }
.grain { height: var(--poster-h); }
.sky-switch { top: calc(var(--poster-h) - 3.5rem); right: .75rem; }

/* Night sky: each star twinkles on its own beat, and two small shooting stars cross during the night. */
.poster .shoot { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .poster .stars circle { transform-box: fill-box; transform-origin: center; animation: p-twinkle 2.4s ease-in-out infinite alternate; }
  .poster .stars circle:nth-child(3n) { animation-duration: 3.1s; animation-delay: -1.2s; }
  .poster .stars circle:nth-child(3n + 1) { animation-duration: 1.9s; animation-delay: -.6s; }
  .poster .stars circle:nth-child(4n) { animation-duration: 3.7s; animation-delay: -2.3s; }
  .poster .stars circle:nth-child(5n) { animation-duration: 1.5s; animation-delay: -.3s; }
  .poster .s1 { animation: p-shoot1 120s linear infinite; }
  .poster .s2 { animation: p-shoot2 120s linear infinite; }
}
@keyframes p-twinkle { from { opacity: 1; transform: scale(1.15); } to { opacity: .3; transform: scale(.7); } }
@keyframes p-shoot1 { 0%, 68% { transform: translate(1010px, 18px); opacity: 0; } 68.15% { opacity: 1; } 69% { opacity: .9; } 69.4%, 100% { transform: translate(640px, 122px); opacity: 0; } }
@keyframes p-shoot2 { 0%, 84.5% { transform: translate(450px, 24px); opacity: 0; } 84.65% { opacity: .9; } 85.4% { opacity: .8; } 85.7%, 100% { transform: translate(190px, 106px); opacity: 0; } }

/* Firelight: a banded glow that sits behind the hikers, so after dark they read as silhouettes against it. */
@media (prefers-reduced-motion: no-preference) {
  .poster .glow2 { opacity: 0; animation: p-glow2 120s linear infinite; }
  .poster .glow-in { transform-box: fill-box; transform-origin: 50% 80%; animation: p-glow-beat .7s ease-in-out infinite alternate; }
}
@keyframes p-glow2 { 0%, 38% { opacity: 0; } 44% { opacity: .35; } 55%, 93% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes p-glow-beat { from { transform: scale(1); } to { transform: scale(1.09, 1.05); } }

/* Raccoon colours: grey coat, paler belly, near-black mask, paws and tail rings, off-white brow, muzzle and ear rims. */
.raccoon .fur { fill: #8F908C; }
.raccoon .fur2 { fill: #6F706D; }
.raccoon .belly { fill: #C6C5BD; }
.raccoon .light { fill: #EFECE2; }
.raccoon .dark { fill: #2A2B2D; }
.raccoon .t-fur { stroke: #8F908C; }
.raccoon .t-ring, .raccoon .t-tip { stroke: #2A2B2D; }

/* Sound button: crossed out while off, waves and a filled look while on. */
.sky-switch .snd-on { display: none; }
.sky-switch [aria-pressed="true"] .snd-on { display: inline; }
.sky-switch [aria-pressed="true"] .snd-off { display: none; }
.sky-switch [aria-pressed="true"] { background: var(--paper); color: var(--green); }
.sky-switch [hidden] { display: none; }

/* Phones: the scene buttons sit in the green band under the picture, so they do not cover the lake. */
@media (max-width: 640px) {
  .sky-switch { top: calc(var(--poster-h) + .5rem); }
  .band { padding-top: 2.5rem; }
}
