/* kestrelmedia.app/retold: the site of the channel Retold. Ivan 2026-11-17: the site must LOOK like an investigation
   (not be the case file of one film), move like skipperwow.com, and open with the new kestrel mark coming alive.
   The look: a dark desk seen from above, prints and typed cards pinned to it, amber thread from pin to pin, paper with
   black redaction bars, one red stamp. Motion: the mark assembles feather by feather on load; the board is pinned as you
   scroll (retold.js writes --p on each piece); the fact sheet is typed and marked once when it comes into view.
   No cookies, no third-party requests: fonts are local files. */
@font-face { font-family: Archivo; src: url(/assets/Archivo.ttf) format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/IBMPlexMono-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --desk: #0c0d0e; --desk-2: #131516; --rule: #272a2d;
  --ink: #f0efea; --soft: #a9adb0; --faint: #70757a;
  --paper: #e9e3d3; --paper-2: #d8d1be; --type: #1c1b18;
  --amber: #e2b04a; --stamp: #d2452f;
  --wide: 1120px; --gutter: 40px;
  --head: Archivo, "Helvetica Neue", Arial, sans-serif; --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 18px/1.6 var(--head); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* header: clear over the scene at the top, gathers into a floating pill once the page moves */
.top { position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%); width: min(var(--wide), calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px 9px 16px; border: 1px solid transparent; border-radius: 999px;
  transition: background .35s, border-color .35s, width .45s cubic-bezier(.22,1,.36,1); }
.scrolled .top { background: rgba(16,17,18,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--rule); width: min(720px, calc(100% - 28px)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 15px var(--head); font-stretch: 118%; letter-spacing: .24em; }
.brand img { width: 34px; height: 25px; }
.top nav { display: flex; gap: 6px; }
.top nav a { font: 500 14px var(--head); color: var(--soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--ink); background: rgba(240,239,234,.07); }

/* ---------- the opening scene: mark, then the board ---------- */
.intro { position: relative; }
.stage { position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(226,176,74,.07), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(240,239,234,.07) 1px, transparent 1.6px) 0 0 / 28px 28px,
    var(--desk); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.6)); }
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px var(--gutter) 70px; }
.bird { width: min(44vh, 74vw); height: auto; overflow: visible; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.word { margin-top: 3vh; font: 900 clamp(46px, 9.4vw, 128px)/1 var(--head); font-stretch: 125%; letter-spacing: .16em; padding-left: .16em; }
.word span { display: inline-block; }
.line { margin-top: 2.2vh; font: 500 clamp(15px, 1.5vw, 19px)/1.5 var(--mono); color: var(--soft); max-width: 34em; }
.hint { position: absolute; left: 0; right: 0; bottom: 26px; font: 500 13px var(--mono); color: var(--faint); }
.hint i { display: block; width: 1px; height: 26px; margin: 10px auto 0; background: linear-gradient(var(--amber), transparent); }

.board { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; opacity: .85; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); }
.piece { --p: 1; position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0;
  transform: translate(-50%, -50%) rotate(var(--r)) translateY(calc((1 - var(--p)) * -46px)) scale(calc(1.3 - .3 * var(--p)));
  opacity: var(--p); box-shadow: 0 calc(6px + (1 - var(--p)) * 40px) calc(18px + (1 - var(--p)) * 50px) rgba(0,0,0,.6); will-change: transform, opacity; }
.piece::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -5px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6d98e, var(--amber) 45%, #7d5a1c); box-shadow: 0 3px 4px rgba(0,0,0,.6); }
.print { background: var(--paper); padding: 7px 7px 0; }
.print img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.print figcaption { font: 500 11.5px/1.35 var(--mono); color: var(--type); padding: 7px 2px 8px; }
.card { background: var(--paper); color: var(--type); padding: 22px 18px 16px; font: 500 15px/1.45 var(--mono);
  background-image: repeating-linear-gradient(transparent 0 25px, rgba(28,27,24,.13) 25px 26px); }
.card small { display: block; margin-top: 8px; font-size: 11.5px; color: #6b6557; }
.sheet { background: var(--paper); padding: 18px 16px 20px; }
.sheet b { display: block; height: 7px; margin: 9px 0; background: rgba(28,27,24,.28); border-radius: 1px; }
.sheet b.k { background: #111; }
.sheet b.h { background: var(--amber); }
.sheet small { display: block; font: 500 11px var(--mono); color: #6b6557; margin-bottom: 12px; }

.say { --p: 1; position: absolute; left: 50%; top: 50%; width: min(560px, 44vw); transform: translate(-50%, calc(-50% + (1 - var(--p)) * 22px)); opacity: var(--p); text-align: center; z-index: 3; }
.say h1 { font: 800 clamp(30px, 3.7vw, 54px)/1.06 var(--head); font-stretch: 108%; letter-spacing: -.012em; text-wrap: balance; }
.say p { margin-top: 18px; color: var(--soft); font-size: clamp(16px, 1.25vw, 18px); text-wrap: pretty; }
.stamp { display: inline-block; font: 800 15px/1 var(--head); font-stretch: 118%; letter-spacing: .2em; text-transform: uppercase; color: var(--stamp);
  border: 3px solid var(--stamp); border-radius: 4px; padding: 9px 12px 8px 14px; }
.say .stamp { --p: 1; margin-top: 26px; transform: rotate(-7deg) scale(calc(2.4 - 1.4 * var(--p))); opacity: var(--p); }

/* the scene is driven by the scroll only when scripts run and motion is allowed (class on <html> from retold.js) */
.scrub .intro { height: 420vh; }
.scrub .stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.scrub .hero { --out: 0; position: absolute; inset: 0; min-height: 0;
  transform: translateY(calc(var(--out) * -16vh)) scale(calc(1 - var(--out) * .3)); opacity: calc(1 - var(--out)); }
.scrub .hero.gone { visibility: hidden; }
.scrub .board { position: absolute; inset: 0; min-height: 0; }

.flat .hero, .flat .board { min-height: 0; height: 900px; }
.flat * { animation: none !important; transition: none !important; }

/* the mark comes alive: body first, feathers unfold from the shoulders, the tail fans, then it hangs in the wind */
.bird polygon { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .js .bird .body polygon { transform-origin: 100px 92px; animation: grow .5s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(.15s + var(--i) * 50ms); }
  .js .bird .wing polygon { transform-origin: 90px 86px; animation: unfold .7s cubic-bezier(.2,1,.3,1) both; animation-delay: calc(.45s + var(--i) * 48ms); }
  .js .bird .tail polygon { transform-origin: 100px 108px; animation: fan .6s cubic-bezier(.2,1,.3,1) both; animation-delay: calc(.6s + var(--i) * 40ms); }
  .js .bird .wing { transform-box: view-box; transform-origin: 90px 86px; animation: beat .95s ease-in-out 1.9s infinite alternate; }
  .js .bird .tail { transform-box: view-box; transform-origin: 100px 108px; animation: steer 2.6s ease-in-out 1.9s infinite alternate; }
  .js .bird { animation: hang 3.4s ease-in-out 1.9s infinite alternate; }
  .js .word span { animation: strike .34s cubic-bezier(.2,1,.3,1) both; animation-delay: calc(1.45s + var(--i) * 85ms); }
  .js .line { animation: rise .7s ease-out 2.15s both; }
  .js .hint { animation: rise .7s ease-out 2.8s both; }
  .js .hint i { animation: drip 1.8s ease-in-out 3.2s infinite; }
}
@keyframes grow { from { transform: scale(0); opacity: 0; } }
@keyframes unfold { from { transform: rotate(48deg) scale(.15); opacity: 0; } }
@keyframes fan { from { transform: scale(.2, .05); opacity: 0; } }
@keyframes beat { from { transform: rotate(-3.5deg); } to { transform: rotate(4deg); } }
@keyframes steer { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes hang { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes strike { from { transform: scale(1.9); opacity: 0; filter: blur(6px); } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes drip { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }

/* ---------- sections ---------- */
.sec { padding: 120px 0; border-top: 1px solid var(--rule); }
.sec h2 { font: 800 clamp(30px, 3.6vw, 50px)/1.08 var(--head); font-stretch: 108%; letter-spacing: -.012em; text-wrap: balance; max-width: 16em; }
.sec .lead { margin-top: 18px; color: var(--soft); max-width: 36em; text-wrap: pretty; }

/* method: the steps beside a fact sheet that is typed and marked while you look */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: start; margin-top: 56px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 30px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font: 500 15px/34px var(--mono); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 6px; width: 1px; background: var(--rule); }
.steps h3 { font: 700 20px/1.3 var(--head); }
.steps p { margin-top: 5px; color: var(--soft); font-size: 16.5px; max-width: 30em; }

.facts { position: sticky; top: 100px; background: var(--paper); color: var(--type); padding: 30px 28px 64px; transform: rotate(1.2deg); box-shadow: 0 30px 60px rgba(0,0,0,.55); font: 500 14.5px/1.5 var(--mono); }
.facts::before { content: ""; position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d98e, var(--amber) 45%, #7d5a1c); box-shadow: 0 3px 4px rgba(0,0,0,.5); }
.facts header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--type); font-size: 12.5px; }
.facts ol { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 13px 0; border-bottom: 1px dashed rgba(28,27,24,.3); }
.facts .claim { display: block; position: relative; width: fit-content; }
.facts .mark { display: inline-block; margin-top: 6px; font-size: 12px; padding: 2px 7px; border: 1.5px solid currentColor; border-radius: 3px; }
.facts .ok { color: #2f6b3c; }
.facts .no { color: var(--stamp); }
.facts .cut .claim::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--stamp); transform-origin: left; }
.facts .hl .claim { background: linear-gradient(rgba(226,176,74,.75), rgba(226,176,74,.75)) no-repeat 0 0 / 100% 100%; }
.facts .stamp { position: absolute; right: 22px; bottom: 20px; transform: rotate(-9deg); background: rgba(233,227,211,.6); }
@media (prefers-reduced-motion: no-preference) {
  .js .facts li { opacity: 0; }
  .js .facts .claim { clip-path: inset(0 100% 0 0); }
  .js .facts .mark { opacity: 0; transform: scale(1.6); }
  .js .facts .cut .claim::after { transform: scaleX(0); }
  .js .facts .hl .claim { background-size: 0 100%; }
  .js .facts .stamp { opacity: 0; transform: rotate(-9deg) scale(2.4); }
  .js .facts.on li { opacity: 1; transition: opacity .2s; transition-delay: calc(var(--i) * 1.15s + .2s); }
  .js .facts.on .claim { clip-path: inset(0 0 0 0); transition: clip-path .75s steps(26); transition-delay: calc(var(--i) * 1.15s + .2s); }
  .js .facts.on .mark { opacity: 1; transform: none; transition: opacity .15s, transform .25s cubic-bezier(.2,1.4,.4,1); transition-delay: calc(var(--i) * 1.15s + 1.05s); }
  .js .facts.on .cut .claim::after { transform: none; transition: transform .3s ease-out; transition-delay: calc(var(--i) * 1.15s + .95s); }
  .js .facts.on .hl .claim { background-size: 100% 100%; transition: background-size .45s ease-out; transition-delay: calc(var(--i) * 1.15s + .95s); }
  .js .facts.on .stamp { opacity: 1; transform: rotate(-9deg); transition: opacity .12s, transform .28s cubic-bezier(.3,1.5,.5,1); transition-delay: 6.4s; }
}

/* rules: typed strips with the black bars pulled off as they come into view */
.rules { display: grid; gap: 22px; margin-top: 56px; }
.strip { position: relative; width: fit-content; max-width: 100%; background: var(--paper); color: var(--type); padding: 18px 26px; font: 500 clamp(17px, 2.1vw, 27px)/1.35 var(--mono); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.strip:nth-child(1) { transform: rotate(-.7deg); }
.strip:nth-child(2) { transform: rotate(.5deg); margin-left: 6%; }
.strip:nth-child(3) { transform: rotate(-.3deg); margin-left: 2%; }
.strip span { position: relative; }
.strip span::after { content: ""; position: absolute; left: -4px; right: -4px; top: 4%; bottom: 4%; background: #0d0d0d; transform: scaleX(0); transform-origin: right; }
@media (prefers-reduced-motion: no-preference) {
  .js .strip span::after { transform: scaleX(1); transition: transform .7s cubic-bezier(.7,0,.2,1); transition-delay: calc(.25s + var(--i) * .22s); }
  .js .strip.on span::after { transform: scaleX(0); }
}

/* files: folders on the desk */
.files { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; margin-top: 64px; align-items: end; }
.folder { position: relative; background: #c9a25a; color: var(--type); border-radius: 0 10px 6px 6px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.folder::before { content: attr(data-tab); position: absolute; left: 0; bottom: 100%; height: 34px; padding: 0 22px 0 18px; background: inherit; border-radius: 10px 14px 0 0; font: 500 13px/36px var(--mono); }
.folder .in { background: var(--paper); padding: 24px 24px 26px; position: relative; }
.folder h3 { font: 800 clamp(24px, 2.6vw, 34px)/1.1 var(--head); font-stretch: 108%; }
.folder p { margin-top: 10px; font-size: 16.5px; max-width: 32em; }
.folder .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.folder .shots img { aspect-ratio: 16 / 9; object-fit: cover; border: 5px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.folder .shots img:nth-child(1) { transform: rotate(-2deg); }
.folder .shots img:nth-child(2) { transform: rotate(1.2deg) translateY(4px); }
.folder .shots img:nth-child(3) { transform: rotate(-.8deg); }
.folder .state { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; font: 500 13.5px var(--mono); }
.folder .stamp { font-size: 13px; transform: rotate(-4deg); }
.folder.shut { background: #6d5a36; color: #1f1a10; min-height: 190px; display: flex; align-items: flex-end; font: 500 14px/1.5 var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .js .folder .in { transform: translateY(26px) rotate(-1deg); opacity: 0; transition: transform .8s cubic-bezier(.2,1,.3,1) .15s, opacity .4s .15s; }
  .js .folder.on .in { transform: none; opacity: 1; }
  .js .folder .stamp { opacity: 0; transform: rotate(-4deg) scale(2.2); transition: opacity .12s 1s, transform .28s cubic-bezier(.3,1.5,.5,1) 1s; }
  .js .folder.on .stamp { opacity: 1; transform: rotate(-4deg); }
}

footer { border-top: 1px solid var(--rule); padding: 44px 0 60px; color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
footer .made { display: flex; align-items: center; gap: 12px; color: var(--ink); }
footer .made img { width: 26px; height: 23px; }
footer .made b { font-weight: 800; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--soft); }
footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .top nav a { padding: 6px 9px; font-size: 13.5px; }
  .piece { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--mw, var(--w)); }
  .piece.wide-only { display: none; }
  .print figcaption { font-size: 10px; padding: 5px 1px 6px; }
  .card { font-size: 12.5px; padding: 14px 11px 11px; }
  .say { width: calc(100% - 28px); padding: 22px 12px 26px; background: rgba(12,13,14,.94); border-radius: 14px; }   /* the thread runs behind it */
  .sec { padding: 84px 0; }
  .method { grid-template-columns: 1fr; gap: 44px; }
  .facts { position: relative; top: 0; padding: 26px 20px 62px; font-size: 13.5px; }
  .files { grid-template-columns: 1fr; gap: 60px; }
  .folder { padding: 16px; }
  .folder .in { padding: 18px 16px 20px; }
  .strip:nth-child(n) { margin-left: 0; padding: 14px 16px; }
}
@media (max-width: 520px) {
  .top nav a:last-child { display: none; }
}
