/* Clockwalker site: quiet and warm, like the game at dusk. The privacy and support pages use the plain rules; the home page adds body.home.
   No loud buttons, no bold shouting: soft cream type on a warm dark, much room, and things that arrive slowly. */
:root
{
    --dusk: #1c1512;
    --dusk-deep: #120e0c;
    --line: rgba(243, 220, 174, 0.12);
    --cream: #f3dcae;
    --text: #eadfcc;
    --text-soft: rgba(234, 223, 204, 0.76);
    --text-faint: rgba(234, 223, 204, 0.5);
    --amber: #e0b578;
}
*{box-sizing:border-box}
body
{
    margin:0;color:var(--text);
    background:var(--dusk-deep) linear-gradient(180deg, #2a1e18 0, var(--dusk) 900px, var(--dusk-deep) 100%) no-repeat;
    font:17px/1.7 "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;
}
main{max-width:640px;margin:0 auto;padding:40px 16px 60px}
img{width:88px;height:88px;border-radius:20px}
img.big{width:120px;height:120px;border-radius:27px}
h1{font-weight:500;font-size:30px;margin:16px 0 4px;letter-spacing:0}
h2{font-weight:500;font-size:19px;margin:30px 0 6px;color:var(--cream)}
p,li{color:var(--text-soft)}
a{color:var(--amber);text-decoration-color:rgba(224,181,120,0.4);text-underline-offset:3px}
.muted{color:var(--text-faint);font-size:14px}
hr{border:none;border-top:1px solid var(--line);margin:48px 0}

/* ---------- Home ---------- */
.home main{max-width:none;padding:0}
.home img{width:auto;height:auto;border-radius:0}

.hero{max-width:640px;margin:0 auto;padding:88px 16px 40px;text-align:center;position:relative}
.hero::before
{
    content:"";position:absolute;left:50%;top:0;width:900px;max-width:100vw;height:760px;transform:translateX(-50%);z-index:-1;pointer-events:none;
    background:radial-gradient(ellipse 55% 50% at 50% 42%, rgba(243,190,120,0.10), transparent 72%);
}

/* The name in capitals, widely spaced, with the clock-hand K, as in the game's opening. */
.wordmark
{
    position:relative;display:inline-block;margin:0 0 36px;padding-left:0.32em;
    font-size:clamp(24px, 6.4vw, 38px);font-weight:400;letter-spacing:0.32em;line-height:1;color:var(--cream);white-space:nowrap;
    text-shadow:0 0 24px rgba(255,200,120,0.22);
}
.wordmark span{display:inline-block}
.wordmark .k{color:var(--cream)}
/* Even gaps around the drawn Ks: the white between neighbours, row by row over the capital height (depth-limited, as in
   optical spacing), matched to the average of the plain pairs (0.516 em). Measured in Avenir Next; in em, so any size. */
.wordmark .k-clock{margin-left:0.151em;margin-right:0.424em}
.wordmark .k-walker{margin-left:0.168em;margin-right:0.356em}
.wordmark .k svg{display:block;height:0.708em;width:0.62em;overflow:visible;filter:drop-shadow(0 0 8px rgba(255,200,120,0.25))}
.wordmark .pin{fill:var(--dusk)}
/* A hairline under the name with a small pivot in the middle. */
.wordmark .hairline
{
    position:absolute;left:50%;bottom:-22px;width:120px;height:1px;transform:translateX(-50%);
    background:linear-gradient(90deg, transparent, rgba(243,220,174,0.45), transparent);
}
.wordmark .hairline::after
{
    content:"";position:absolute;left:50%;top:-2px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:rgba(243,220,174,0.6);
}
.tagline{margin:0 0 52px;font-size:17px;color:var(--text-faint);letter-spacing:0.02em}
.lead{font-size:19px;line-height:1.7;max-width:30em;margin:48px auto 18px;color:var(--text)}
.soon{color:var(--text-faint);font-size:14px;letter-spacing:0.04em;margin:0}

.phone
{
    position:relative;margin:0 auto;width:min(360px, 88vw);aspect-ratio:540 / 1168;
    border-radius:48px;padding:7px;background:#0b0807;
    box-shadow:0 0 0 1px rgba(243,220,174,0.10), 0 30px 70px rgba(0,0,0,0.45), 0 0 140px rgba(243,190,120,0.08);
}
.phone video{display:block;width:100%;height:100%;object-fit:cover;border-radius:41px;background:#2a1e18}
/* The first picture sits behind the video, so nothing goes dark while the film starts. */
.hero-phone video{background:#d8d2c4 url("media/hero-poster.jpg?v=2") center / cover}

.band{max-width:640px;margin:0 auto;padding:44px 16px}
.band.wide{max-width:900px}
.band h2{font-size:clamp(24px, 4.4vw, 30px);line-height:1.25;letter-spacing:0;margin:0 0 18px;color:var(--cream);font-weight:500}
.band p{margin:0 0 16px;max-width:34em}
.band.wide > p{max-width:34em}
/* A small clock-like mark between sections: a dot on a short line. */
.band + .band::before
{
    content:"";display:block;width:36px;height:1px;margin:0 0 56px;background:var(--line);
}

.moves{display:grid;grid-template-columns:repeat(2, 1fr);gap:18px 24px;margin:36px 0 0}
.moves div{margin:0}
.moves dt{color:var(--amber);font-size:16px;letter-spacing:0.02em}
.moves dd{margin:0;font-size:15px;color:var(--text-faint)}

.clocks{list-style:none;margin:36px 0 0;padding:0;display:grid;grid-template-columns:repeat(2, 1fr);gap:28px 18px}
.clocks li{margin:0;text-align:center}
.home .clocks img{display:block;width:100%;height:auto;aspect-ratio:640 / 673;object-fit:cover;border-radius:18px;margin-bottom:10px;opacity:0.94}
.clocks span{font-size:14px;letter-spacing:0.08em;text-transform:uppercase;color:var(--text-faint)}

.demo .demo-phone{width:min(360px, 88vw);margin-top:36px}

.closing{text-align:center}
.closing p{margin-left:auto;margin-right:auto}
.small{font-size:14px;color:var(--text-faint);letter-spacing:0.02em}
.closing .soon{margin-top:28px}

.home footer{max-width:640px;margin:0 auto;padding:40px 16px 56px;text-align:center}
.home footer p{margin:0;color:var(--text-faint);font-size:13px;letter-spacing:0.02em}
.home footer a{color:var(--text-faint)}

/* Arriving slowly, with no script (the server allows none): the name first, then the rest. Only a fade, long and soft;
   the words rise a hair, the phone does not move at all. */
.wordmark,.tagline,.hero .lead,.hero .soon,main{animation:arrive 2.4s cubic-bezier(.25,.1,.25,1) both}
.hero .phone{animation:appear 4s cubic-bezier(.45,0,.55,1) 0.5s both;will-change:opacity}
.tagline{animation-delay:0.4s}
.hero .lead{animation-delay:1.4s}
.hero .soon,main{animation-delay:1.8s}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes appear{from{opacity:0}to{opacity:1}}

@media (min-width: 760px)
{
    .moves{grid-template-columns:repeat(4, 1fr)}
    .clocks{grid-template-columns:repeat(4, 1fr)}
}

@media (prefers-reduced-motion: reduce)
{
    .wordmark,.tagline,.hero .phone,.hero .lead,.hero .soon,main{animation:none}
    .hero-phone video{display:none}
    .hero-phone{background:#0b0807 url("media/hero-poster.jpg?v=2") center / cover content-box}
}
.band.closing::before{margin-left:auto;margin-right:auto}
