@import url("/assets/fonts.css");
/* Wardeo components. Every color, size and radius comes from the tokens (tokens.css). */

/* ---- Page frame: one column, 1160px max, 36px between sections. */
.wd-page { max-width: 1160px; margin: 0 auto; display: grid; gap: var(--space-36); padding-block: var(--space-48) var(--space-80);
  padding-left: max(var(--space-16), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-16), env(safe-area-inset-right, 0px));
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--ink); }
.wd-page p { margin: 0; max-width: 66ch; }

/* ---- Page header: kicker, display headline, one plain paragraph. */
.wd-header { display: grid; }
.wd-kicker { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wd-h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.1; margin: var(--space-8) 0 var(--space-12); text-wrap: balance; color: var(--ink); }
.wd-h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 0; text-wrap: balance; color: var(--ink); }
.wd-muted { color: var(--muted); }

/* ---- Button: a quiet pill. The accent fill is for the one main action on a page. */
.wd-button { font: 500 0.9rem/1.4 var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 16px; cursor: pointer; }
.wd-button:hover { border-color: var(--muted); }
.wd-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wd-button.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.wd-button.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.wd-controls { display: flex; gap: var(--space-12); align-items: center; flex-wrap: wrap; }

/* ---- Notes: short titled points under a 2px top rule, in a wrapping grid. */
.wd-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-12); }
.wd-note { border-top: 2px solid var(--line); padding-top: var(--space-10); display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.wd-note b { font-weight: 600; }
.wd-note span { color: var(--muted); font-size: 0.94rem; }

/* ---- Panel: a flat ground for showing the logo or one thing on its own. No shadow. */
.wd-panel { border-radius: var(--radius-card); padding: var(--space-36) var(--space-28); display: grid; gap: var(--space-24); min-width: 0; overflow: hidden; }
.wd-panel.dark { background: var(--stage); border: 1px solid var(--stage-edge); }
.wd-panel.light { background: var(--tint); border: 1px solid var(--line-fixed); }

/* ---- Status line: mono, one state at a time. Drift in vermilion, compliant in plain ink. */
.wd-status { font-family: var(--font-mono); font-weight: 500; font-size: 0.84rem; color: var(--muted); }
.wd-status .drift { color: var(--accent-text); }
.wd-status .ok b { color: var(--ink); font-weight: 500; }

/* ---- App tile: the W on the tile ground. */
.wd-tile { width: 60px; height: 60px; border-radius: var(--radius-tile); background: var(--tile); display: grid; place-items: center; font-size: 46px; }
.wd-tile .wglyph { margin: 0; }

/* ---- Wordmark: lit 3D letters on a deep edge. Rubik Black; the W is the font's own W as SVG. */
.wd-word { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; }
.wd-word .wglyph { height: 0.7em; width: auto; overflow: visible; margin-right: 0.03em; flex: none; }
.wd-mark .wglyph { margin-right: 0; }
.wd-word .txt { background: var(--sweepbg, linear-gradient(transparent, transparent)) no-repeat, var(--tfill); background-size: 22% 100%, 100% 100%; background-position: -60% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.wd-word .body, .wd-word .band use { fill: var(--wfill); }
.wd-word .streak { fill: var(--wverm); opacity: 0; }
.wd-word .sweep { transform: translateX(-300px); }
.wd-word[data-ground="dark"] { --wfill: url(#wd-gw); --wverm: #F0704F; --x0: #6B747E; --tfill: linear-gradient(180deg, #FFFFFF 0%, #E3E7EC 48%, #98A1AB 100%); }
.wd-word[data-ground="light"] { --wfill: url(#wd-gwl); --wverm: #C8401F; --x0: #C4CAD0; --tfill: linear-gradient(180deg, #46525A 0%, #2A3439 50%, #161C20 100%); }
/* "ardeo" is five stacked strips; two sit out of line by --o. That is the cut. */
.wd-word .ardeo { position: relative; display: inline-grid; }
.wd-word .ardeo > * { grid-area: 1 / 1; }
.wd-word .strip { display: grid; transform: translateX(var(--o)); }
.wd-word .strip > * { grid-area: 1 / 1; }
.wd-word .ext { color: var(--x0); text-shadow: var(--ts); }
.wd-word .bar { position: absolute; background: var(--wverm); }
/* cut: the still logo, 60% of the motion's first frame so it reads. */
.wd-word[data-state="cut"] .band { transform: translateX(42px); }
.wd-word[data-state="cut"] .streak { opacity: 0.9; }
.wd-word[data-state="cut"] .strip { transform: translateX(calc(var(--o) * 0.6)); }
/* whole: the name in line, no streaks. */
.wd-word[data-state="whole"] .strip { transform: none; }
.wd-word[data-state="whole"] .bar { opacity: 0; }
/* Small sizes drop the red streaks and keep the cut. */
.wd-word[data-streaks="off"] .streak, .wd-word[data-streaks="off"] .bar { opacity: 0; }

/* ---- Stage: the dark hero. Canvas behind (embers, smoke, lightning on the wires), the name on top. */
.wd-stage { position: relative; aspect-ratio: 2 / 1; max-width: 100%; background: var(--stage); border-radius: var(--radius-stage); overflow: hidden;
  border: 1px solid var(--stage-edge); display: grid; place-items: center; container-type: inline-size; }
.wd-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wd-stage .tag { position: absolute; left: 4%; top: 7%; font-family: var(--font-mono); font-weight: 500; font-size: clamp(0.6rem, 1.1cqi, 0.76rem); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stage-label); }
.wd-stage .status { position: absolute; left: 4%; bottom: 7%; font-family: var(--font-mono); font-weight: 500; font-size: clamp(0.62rem, 1.2cqi, 0.84rem); color: var(--stage-text); display: grid; }
.wd-stage .status span { grid-area: 1 / 1; }
.wd-stage .status .bad { color: var(--accent); opacity: 0; }
.wd-stage .lockup { position: relative; display: inline-grid; font-size: clamp(1.4rem, 9.1cqi, 6.4rem); }
.wd-stage .lockup > * { grid-area: 1 / 1; }
/* The mist: two smeared copies of the name drifting slowly behind it. */
.wd-stage .mistw { filter: url(#wd-smear); opacity: 0.22; animation: wd-sway 7s ease-in-out infinite alternate; pointer-events: none; }
.wd-stage .mistw .wglyph { filter: none !important; }
.wd-stage .mistw .ext, .wd-stage .mistw .bar { display: none; }
.wd-stage .mistw .txt { background: none; color: #E6E9ED; }
.wd-stage .mistw.b { opacity: 0.12; animation-duration: 9s; animation-direction: alternate-reverse; }

/* Motion: the name starts cut, eases a little further out, then snaps whole in a quarter second (at 1.75s to 2s).
   It settles with a small press, a narrow light crosses it, and the status changes. */
.wd-stage.play .main .band { animation: wd-lock 2s both; }
.wd-stage.play .main .streak, .wd-stage.play .main .bar { animation: wd-streak 2s both; }
.wd-stage.play .main .strip { animation: wd-settle 2s both; }
.wd-stage.play .main .sweep { animation: wd-sweepw 0.28s cubic-bezier(.5,0,.6,1) 2.05s both; }
.wd-stage.play .main .txt { --sweepbg: linear-gradient(100deg, transparent 0%, rgba(255,240,234,0.95) 50%, transparent 100%); animation: wd-sweept 0.42s cubic-bezier(.4,0,.7,1) 2.3s both; }
.wd-stage.play .main { animation: wd-seat 0.6s cubic-bezier(.2,.8,.2,1) 1.9s both; }
.wd-stage.play .status .bad { animation: wd-out 2.1s both; }
.wd-stage.play .status .ok { animation: wd-in 0.5s ease-out 1.9s both; }
@keyframes wd-lock {
  0%    { transform: translateX(70px); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  87.5% { transform: translateX(80px); animation-timing-function: cubic-bezier(.8,0,.2,1); }
  100%  { transform: translateX(0); }
}
@keyframes wd-settle {
  0%    { transform: translateX(var(--o)); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  87.5% { transform: translateX(calc(var(--o) * 1.15)); animation-timing-function: cubic-bezier(.8,0,.2,1); }
  100%  { transform: translateX(0); }
}
@keyframes wd-streak { 0%, 87.5% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes wd-sweepw { from { transform: translateX(-300px); } to { transform: translateX(1100px); } }
@keyframes wd-sweept { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }
@keyframes wd-seat { 0% { transform: scale(1); } 35% { transform: scale(1.012); } 100% { transform: scale(1); } }
@keyframes wd-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wd-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wd-sway { from { transform: translateX(-0.08em); } to { transform: translateX(0.1em); } }

/* The finished frame: for still images and for people who turn off motion. */
.wd-stage.still .main, .wd-stage.still .main *, .wd-stage.still .status span, .wd-stage.still .mistw { animation: none !important; }
.wd-stage.still .main .strip { transform: none; }
.wd-stage.still .main .bar { opacity: 0; }
.wd-stage.still .status .bad { opacity: 0; }
.wd-stage.still .status .ok { opacity: 1; }
