:root{
  --ink:#23291f; --muted:#5c6452; --green:#3f5a3d; --accent:#51714F;
  --display:"EB Garamond",serif;
  --ease:cubic-bezier(0.22,0.68,0.18,1);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink); font-family:"Spline Sans Mono",ui-monospace,monospace;
  background:#eef0e6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  display:flex; flex-direction:column; min-height:100vh; overflow:hidden;
}

/* ---- full-bleed sunlit-stream film ---- */
.bg{position:fixed;inset:0;z-index:0;overflow:hidden;background:#dfe3d4}
/* poster (first frame) paints instantly under the film — the bg is never empty;
   the film fades in over its own frame zero, so the handoff is invisible */
.bg video,.bg .poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(1.04) brightness(1.06) contrast(.98);
  animation:drift 52s ease-in-out infinite alternate}
.bg video{opacity:0;transition:opacity 1.4s ease}
.bg video.on{opacity:1}
.bg video.top{z-index:1}  /* incoming copy rides above during the loop dissolve */
/* barely-there Ken Burns so the frame breathes even when the footage is calm */
@keyframes drift{from{transform:scale(1)} to{transform:scale(1.07)}}

.scrim{position:fixed;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg, rgba(246,240,229,.5) 0%, rgba(246,240,229,0) 26%, rgba(225,228,214,.55) 100%)}
.grain{position:fixed;inset:0;z-index:2;pointer-events:none;opacity:.5;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");}
/* light band so the header always sits on a clean ground, whatever the film is doing behind it */
.topfade{position:fixed;left:0;right:0;top:0;height:22vh;z-index:2;pointer-events:none;
  background:linear-gradient(180deg, rgba(246,240,229,.94) 0%, rgba(246,240,229,.7) 38%, rgba(246,240,229,0) 100%)}

header,main,footer{position:relative;z-index:3}
header{display:flex;align-items:center;justify-content:space-between;padding:32px clamp(24px,6vw,68px)}
.logo{height:34px;width:auto;display:block;filter:drop-shadow(0 1px 2px rgba(255,255,255,.9)) drop-shadow(0 2px 10px rgba(255,255,255,.6))}
nav{display:flex;gap:30px}
nav a{position:relative;font-size:11px;font-weight:500;letter-spacing:0.2em;text-transform:uppercase;color:var(--ink);text-decoration:none;
  transition:color .25s var(--ease);text-shadow:0 1px 8px rgba(246,240,229,.95)}
nav a::after{content:"";position:absolute;left:0;right:.2em;bottom:-5px;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:0 50%;transition:transform .35s var(--ease)}
nav a:hover::after,nav a:focus-visible::after{transform:scaleX(1)}
nav a:focus-visible{outline:none}  /* the drawn underline IS the focus indicator — no double ring */
nav a:hover{color:var(--green)}
::selection{background:var(--accent);color:#f4f1ea}
:focus-visible{outline:1px solid currentColor;outline-offset:5px}
/* Forced-colors (Windows High Contrast) recolors the drawn nav underline to the
   system Canvas, hiding it — restore a real outline ring for keyboard focus. */
@media (forced-colors:active){ nav a:focus-visible{outline:2px solid ButtonText;outline-offset:4px} }

main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:clamp(28px,5vh,64px) clamp(24px,6vw,68px) 16vh}
.creed{display:flex;flex-direction:column;align-items:center;gap:32px;max-width:min(92vw,620px)}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:11px;font-weight:500;
  letter-spacing:.34em;text-transform:uppercase;color:var(--muted);margin:0 0 2px}
.eyebrow::before,.eyebrow::after{content:"";width:26px;height:1px;background:currentColor;opacity:.45}
.statement{font-family:var(--display);font-weight:400;font-size:clamp(28px,3.6vw,43px);
  line-height:1.32;letter-spacing:-0.01em;margin:0;max-width:21ch;text-wrap:balance}
/* "soulless" loses its emphasis — upright, body-coloured, it just blends in.
   "enduring" keeps the italic + sage-green lift and adds weight, so it stands out. */
.statement em{font-style:normal;color:inherit}
.statement em.endure{font-style:italic;font-weight:600}
.divider{width:44px;height:1px;background:var(--accent);transform-origin:50% 50%}
.rule-draw{opacity:0;transform:scaleX(0);animation:draw .9s var(--ease) forwards;animation-delay:.9s}
@keyframes draw{to{opacity:var(--div-o,.6);transform:scaleX(1)}}

/* ---- dim legibility treatment: darkened footage, cream type ---- */
body.lg-dim .bg video,body.lg-dim .bg .poster{filter:saturate(.96) brightness(.58) contrast(1.05)}
/* a faint warm halo behind the words — light through the canopy — over a central +
   edge darkening that holds cream type legible even where the stream catches sun */
body.lg-dim .scrim{background:
  radial-gradient(42% 32% at 50% 45%, rgba(255,228,180,.10) 0%, rgba(255,228,180,0) 72%),
  radial-gradient(115% 86% at 50% 46%, rgba(8,10,6,0) 0%, rgba(8,10,6,.42) 60%, rgba(8,10,6,.68) 100%),
  linear-gradient(180deg, rgba(8,10,6,.5) 0%, rgba(8,10,6,.06) 34%, rgba(8,10,6,.66) 100%)}
body.lg-dim .topfade{background:linear-gradient(180deg, rgba(8,10,6,.7) 0%, rgba(8,10,6,.3) 42%, rgba(8,10,6,0) 100%)}
/* tight contact shadow + a soft spread so the serif stays crisp over moving water */
body.lg-dim .statement{color:#f6f2e9;text-shadow:0 1px 2px rgba(0,0,0,.62),0 2px 14px rgba(0,0,0,.45)}
body.lg-dim .statement em.endure{color:#cfe0c4}
body.lg-dim .eyebrow{color:#cabf9f;text-shadow:0 1px 10px rgba(0,0,0,.55)}
body.lg-dim .divider{background:#cfe0c4;--div-o:.95;width:52px;box-shadow:0 1px 6px rgba(0,0,0,.4)}
body.lg-dim nav a{color:#e9e6dd;text-shadow:0 1px 8px rgba(0,0,0,.6)}
body.lg-dim nav a:hover{color:#fff}
body.lg-dim footer{color:#cabf9f}
body.lg-dim .logo{filter:drop-shadow(0 1px 8px rgba(0,0,0,.5))}

footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;
  padding:26px clamp(24px,6vw,68px);font-size:10.5px;letter-spacing:0.18em;text-transform:uppercase;color:var(--muted)}

.reveal{opacity:0;transform:translateY(14px);filter:blur(5px);animation:rise 1.1s var(--ease) forwards}
@keyframes rise{to{opacity:1;transform:none;filter:blur(0)}}
.d1{animation-delay:.05s}.d2{animation-delay:.2s}.d3{animation-delay:.45s}.d4{animation-delay:.62s}.d5{animation-delay:1.05s}.d6{animation-delay:1.3s}
@media (prefers-reduced-motion:reduce){
  .reveal{animation:none;opacity:1;transform:none;filter:none}
  .rule-draw{animation:none;opacity:var(--div-o,.6);transform:none}
  .bg video,.bg .poster{animation:none}
}
@media (max-width:560px){
  nav{gap:18px} footer{flex-direction:column;align-items:flex-start;gap:8px}
}
