/* ============================================================
   THE CROSSING · DxVida's own visual system.
   Not bands with eyebrows and cards. Full-height statements,
   the ground floods colour between them, and one continuous
   line crosses each screen from the problem side to the
   resolved side. The line is the mark: two loops meeting.
   No serif anywhere. The personal site owns Playfair; this
   one is one sans and the drawings carry the personality.
   ============================================================ */

/* ---- corner navigation, always present, never a bar ---- */
.corners{position:fixed;inset:0;z-index:60;pointer-events:none;
  padding:clamp(1rem,2.4vw,1.75rem) clamp(1.15rem,3vw,2.5rem);
  padding-top:max(clamp(1rem,2.4vw,1.75rem),env(safe-area-inset-top));
  display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto 1fr auto;
  font-size:clamp(.82rem,1vw,.95rem);font-weight:500;letter-spacing:.005em}
.corners a,.corners button{pointer-events:auto;text-decoration:none;color:var(--nav-ink,#F5F1E8);
  background:none;border:0;font:inherit;cursor:pointer;
  transition:opacity .25s var(--ease)}
.corners a:hover,.corners button:hover{opacity:.62}
.c-tl{grid-area:1/1}.c-tc{grid-area:1/2;justify-self:center}.c-tr{grid-area:1/3;justify-self:end}
.c-bl{grid-area:3/1;align-self:end}.c-bc{grid-area:3/2;justify-self:center;align-self:end}
.c-br{grid-area:3/3;justify-self:end;align-self:end}
.c-set{display:flex;gap:clamp(.8rem,1.6vw,1.4rem)}
.c-mark{font-weight:600;letter-spacing:.04em}
.c-mark i{font-style:normal;color:var(--nav-accent,#F1C94F)}
@media(max-width:44rem){
  /* On a phone the offer links move into the page itself, but the legal
     links must stay reachable: German law wants them within two clicks
     of every page, and this page has no footer. */
  .c-tr .c-set{display:none}
  .c-bl .c-set a:not([href="/impressum/"]):not([href="/datenschutz/"]){display:none}
  .corners{font-size:.8rem}
  .c-br .c-set{gap:.55rem}
}

/* ---- a statement: one idea, one screen ---- */
.st{min-height:100svh;display:grid;place-items:center;position:relative;
  padding:6rem clamp(1.15rem,5vw,3rem);scroll-snap-align:start;
  background:var(--flood);color:var(--on-flood);
  transition:background .6s var(--ease)}
.st-in{width:100%;max-width:60rem;text-align:center}
.st-label{display:block;font-size:clamp(.85rem,1.1vw,1rem);font-weight:400;
  opacity:.72;margin-bottom:clamp(.6rem,1.4vw,1.1rem)}
.st-big{font-size:clamp(1.9rem,5.4vw,4.1rem);line-height:1.08;font-weight:600;
  letter-spacing:-.025em;margin:0 auto;max-width:18ch}
.st-big .lit{color:var(--flood-accent)}
.st-say{font-size:clamp(1.25rem,2.9vw,2.15rem);line-height:1.3;font-weight:400;
  letter-spacing:-.015em;max-width:24ch;margin:0 auto}
.st-say b{font-weight:600}
.st-note{margin-top:clamp(1.4rem,3vw,2.4rem);font-size:clamp(.95rem,1.3vw,1.1rem);
  line-height:1.55;max-width:44ch;margin-inline:auto;opacity:.82}
.st-cta{margin-top:clamp(1.8rem,3.5vw,2.8rem);display:flex;gap:.8rem;
  justify-content:center;flex-wrap:wrap}

/* ---- the crossing line ---- */
.cross{display:block;width:min(100%,46rem);margin:clamp(2rem,4.5vw,3.4rem) auto 0;height:auto}
.cross path{fill:none;stroke:var(--on-flood);stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.cross .accent{stroke:var(--flood-accent)}
.cross.draw path{stroke-dasharray:var(--len,2600);stroke-dashoffset:var(--len,2600)}
.reveal.seen .cross.draw path{animation:draw 2.4s var(--ease) forwards}
.reveal.seen .cross.draw path:nth-child(2){animation-delay:.35s}
@keyframes draw{to{stroke-dashoffset:0}}

/* ---- word by word ---- */
.w{display:inline-block;opacity:0;transform:translateY(.4em);
  transition:opacity .5s var(--ease),transform .5s var(--ease)}
.seen .w{opacity:1;transform:none}

/* ---- entry: the two halves of the mark, as one screen ---- */
.gate{min-height:100svh;display:grid;grid-template-rows:1fr auto;position:relative;
  background:var(--deep);color:var(--on-dark);padding:7rem clamp(1.15rem,5vw,3rem) 5rem}
.gate-in{align-self:center;width:100%;max-width:64rem;margin-inline:auto}
.gate h1{font-size:clamp(2.3rem,7.2vw,5.6rem);line-height:1;font-weight:600;
  letter-spacing:-.035em;max-width:14ch}
.gate h1 em{font-style:normal;color:var(--gold)}
.gate-say{margin-top:clamp(1.2rem,2.6vw,2rem);font-size:clamp(1rem,1.7vw,1.35rem);
  line-height:1.5;max-width:46ch;color:var(--on-dark-soft)}
.gate-rail{display:grid;gap:0;border-top:1px solid var(--on-dark-line);margin-top:clamp(2.5rem,5vw,4rem)}
@media(min-width:48rem){.gate-rail{grid-template-columns:repeat(3,1fr)}}
.rail{display:grid;gap:.35rem;padding:clamp(1.1rem,2vw,1.6rem) 0;text-decoration:none;
  color:var(--on-dark);position:relative}
.gate-rail .rail+.rail{border-top:1px solid var(--on-dark-line)}
@media(min-width:48rem){
  .gate-rail .rail+.rail{border-top:0;border-left:1px solid var(--on-dark-line);
    padding-left:clamp(1.1rem,2vw,1.6rem)}
}
.rail::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:var(--rail);transform:scaleX(0);transform-origin:left;
  transition:transform .35s var(--ease)}
.rail:hover::after,.rail:focus-visible::after{transform:scaleX(1)}
.rail b{font-size:clamp(1.05rem,1.5vw,1.25rem);font-weight:600;letter-spacing:-.01em}
.rail span{font-size:.92rem;color:var(--on-dark-faint);line-height:1.45}
.rail u{text-decoration:none;color:var(--rail);font-size:.92rem;font-weight:500}

/* ---- buttons on a flooded screen. They take the statement's own
        ink, so one rule serves all three floods. ---- */
.st .btn,.gate .btn{box-shadow:none;border-width:1.5px;border-radius:999px;
  padding:.85rem 1.6rem;font-weight:600;transition:background .25s var(--ease),color .25s var(--ease)}
.st .btn-line{background:transparent;color:var(--on-flood);border-color:var(--on-flood)}
.st .btn-line:hover{background:var(--on-flood);color:var(--flood)}
.st .btn-ink{background:var(--on-flood);color:var(--flood);border-color:var(--on-flood)}
.st .btn-ink:hover{background:transparent;color:var(--on-flood)}
.st .btn:not(.btn-line):not(.btn-ink){background:var(--on-flood);color:var(--flood);border-color:var(--on-flood)}
.st .btn:not(.btn-line):not(.btn-ink):hover{background:transparent;color:var(--on-flood)}
.gate .btn-line{background:transparent;color:var(--on-dark);border-color:var(--on-dark)}

@media(prefers-reduced-motion:reduce){
  .w{opacity:1;transform:none}
  .cross.draw path,.reveal.seen .cross.draw path{stroke-dasharray:none;stroke-dashoffset:0;animation:none}
  .st{transition:none}
}
