/* Quasart Digital: one sheet of paper, ink and gold. Layout: a fixed canvas under the page, the header on top, and one section that splits the screen between a drawing and a few words. */
:root{
  --paper:#efe7d6; --ink:#201d19; --muted:#6f675b; --gilt:#9a6a1c; --hair:rgba(32,29,25,.2); --btn-ink:#17110a;
  --display:"Cormorant Garamond", "Garamond", Georgia, serif;
  --uncial:"Cormorant Unicase", "Cormorant Garamond", Georgia, serif;
  --body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:light;
}
*{box-sizing:border-box}
html{background:var(--paper); scrollbar-width:thin; scrollbar-color:var(--hair) var(--paper)}
body{margin:0; background:var(--paper); color:var(--ink); font-family:var(--body); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; transition:background-color .6s, color .6s}
::selection{background:var(--gilt); color:var(--btn-ink)}
canvas#c{position:fixed; inset:0; width:100%; height:100%; display:block; z-index:0}
header{position:fixed; inset:0 0 auto 0; z-index:6; display:flex; justify-content:space-between; align-items:center; padding:26px clamp(18px,4vw,56px)}
.mark{display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; font:500 15px/1 var(--uncial); letter-spacing:.16em}
.mark svg{width:22px; height:22px}
nav{display:flex; align-items:center; gap:26px}
nav a{color:var(--ink); text-decoration:none; font-size:13px; letter-spacing:.04em; border-bottom:1px solid var(--gilt); padding-bottom:3px}
.sheet{background:none; border:0; padding:8px 0; color:var(--muted); font:400 12px/1 var(--body); letter-spacing:.14em; text-transform:uppercase; cursor:pointer; display:flex; align-items:center; gap:9px}
.sheet b{width:9px; height:10px; border-left:2px solid currentColor; border-right:2px solid currentColor}
.sheet[aria-pressed="true"] b{width:0; height:0; border-style:solid; border-width:5px 0 5px 8px; border-color:transparent transparent transparent currentColor}
.sheet{min-height:40px}
.sheet:hover{color:var(--ink)}
a:focus-visible, button:focus-visible{outline:1px solid var(--gilt); outline-offset:6px}
h1,h2{margin:0; font-family:var(--display); font-weight:400; text-wrap:balance; letter-spacing:-.01em}
h1{font-size:clamp(2.4rem,4.4vw,4.4rem); line-height:1.03}
h2{font-style:italic; font-size:clamp(2.5rem,4.4vw,4.2rem); line-height:1.02}
.num{margin:0; font:500 15px/1 var(--uncial); letter-spacing:.3em; color:var(--gilt); display:flex; align-items:center; gap:14px}
.num::after{content:""; width:56px; height:1px; background:var(--gilt); opacity:.55}
.lede{margin:0; max-width:34ch; font-size:clamp(16px,1.25vw,19px); font-weight:300; letter-spacing:.01em}
.btn{display:inline-flex; align-items:center; gap:14px; min-height:52px; padding:0 26px; width:max-content; border-radius:1px; text-decoration:none; font:500 15px/1 var(--body); color:var(--btn-ink); background:linear-gradient(180deg,#e6c890,#c49a57); box-shadow:0 1px 0 rgba(255,240,210,.55) inset; transition:filter .4s}
.btn:hover{filter:brightness(1.07)}
.btn svg{width:16px; height:16px; transition:transform .6s var(--ease)}
.btn:hover svg{transform:translateX(4px)}
@media (max-width: 820px){
  h2{font-size:clamp(2.1rem,9.5vw,3rem)}
  .sheet span{display:none}
  nav a{font-size:12px}
}
header{flex-wrap:wrap; gap:14px}
.tiers{display:flex; align-items:center; gap:clamp(14px,2.6vw,36px); margin:0 auto}
.tiers a{display:flex; align-items:center; gap:9px; color:var(--muted); text-decoration:none; font:500 13px/1 var(--uncial); letter-spacing:.14em; padding:9px 2px; border:0; border-bottom:1px solid transparent; transition:color .4s var(--ease), border-color .4s var(--ease)}
.tiers a svg{width:19px; height:19px; flex:none}
.tiers .pips{display:flex; gap:4px; margin-left:2px}
.tiers .pips b{width:5px; height:5px; background:currentColor; transform:rotate(45deg); opacity:.5}
.tiers a:hover{color:var(--ink)}
.tiers a[aria-current="page"]{color:var(--ink); border-bottom-color:var(--gilt)}
.tiers a[aria-current="page"] .pips b{background:var(--gilt); opacity:1}
.lede strong{font-weight:500; color:var(--gilt)}
.client{display:inline-flex; align-items:center; gap:8px; color:var(--muted); border-bottom-color:transparent !important; transition:color .3s}
.client svg{width:17px; height:17px; flex:none}
.client:hover, .client[aria-current="page"]{color:var(--ink)}
.client[aria-current="page"]{border-bottom-color:var(--gilt) !important}
@media (max-width: 1180px){
  .client span{display:none}
  header nav[aria-label="Navigation principale"]{gap:18px}
}
@media (max-width: 820px){
  header nav[aria-label="Navigation principale"]{display:contents}
  header .mark{order:0; margin-right:auto; letter-spacing:.1em}
  header .callback{order:1; font-size:11.5px; letter-spacing:.02em; margin-left:6px}
  header .client{order:2; margin-left:12px; padding:8px 0 8px 4px; border-bottom:0}
  header .tiers{order:3; width:calc(100% - 34px)}
  header #pause{order:4; margin-left:auto}
}
@media (max-width: 370px){
  header .mark{font-size:13px; letter-spacing:.06em}
  header .mark svg{width:18px; height:18px}
  header .callback{font-size:11px}
}
.login{position:relative; height:100svh; min-height:560px; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,360px); gap:clamp(24px,5vw,80px); align-items:center; padding:clamp(96px,13vh,124px) clamp(18px,7vw,120px) clamp(24px,5vh,56px)}
.login .slot{height:min(70vh,620px)}
.gate{pointer-events:auto; display:grid; gap:20px; opacity:0; transform:translateY(10px); transition:opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s}
.login.on .gate{opacity:1; transform:none}
.gate h1{font-size:clamp(2.2rem,3.2vw,3rem); margin:0 0 6px}
.gate label{display:grid; gap:8px}
.gate label span{font:500 12px/1 var(--uncial); letter-spacing:.2em; color:var(--muted)}
.gate input{font:400 16px/1.2 var(--body); color:var(--ink); background:transparent; border:0; border-bottom:1px solid var(--ink); border-radius:0; padding:10px 0; outline:none; transition:border-color .3s}
.gate input:focus{border-bottom-color:var(--gilt); box-shadow:0 1px 0 var(--gilt)}
.gate input[aria-invalid="true"]{border-bottom-color:#a5432f}
.gate .btn{margin-top:8px; border:0; cursor:pointer}
.gate .msg{margin:0; min-height:1.4em; font-size:13px; color:var(--muted)}
@media (max-width: 820px){
  .login{grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; align-items:stretch; gap:8px; padding:112px 22px 26px}
  .login .slot{height:auto; min-height:0}
  .gate{gap:16px}
  .gate h1{font-size:2rem; margin:0}
}
.slot{display:block; min-height:0}
@media (max-width: 820px){
  .slot{height:100%}
}
@media (max-width: 820px){
  header{padding:14px 16px; gap:6px}
  .tiers{order:3; width:100%; justify-content:space-between; margin:4px 0 0}
  .tiers a{font-size:12px; letter-spacing:.1em; gap:6px}
  .tiers a svg{width:16px; height:16px}
}
/* the page: a drawing on one side, a few words on the other */
body{min-height:100svh; overflow-x:hidden}
.login{pointer-events:none; z-index:2}
.login a, .login button, .login input{pointer-events:auto}
.maint{grid-template-columns:minmax(0,1.1fr) minmax(300px,500px)}
.words{display:grid; gap:18px; opacity:0; transform:translateY(10px); transition:opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s}
.on .words{opacity:1; transform:none}
.words h1{font-size:clamp(2.4rem,4vw,3.7rem); margin:0}
.words .lede{margin:0; max-width:34ch}
.words .tierline{margin:0; min-height:1.5em; font:500 13px/1.5 var(--uncial); letter-spacing:.16em; color:var(--gilt); opacity:0; transition:opacity .5s var(--ease)}
.words .tierline.show{opacity:1}
.reach{margin:6px 0 0; font-size:14px; color:var(--muted)}
.reach a{color:var(--ink); text-decoration:none; border-bottom:1px solid var(--gilt); padding-bottom:2px; margin-left:6px; transition:background-color .6s}
.reach.flash a{background:rgba(154,106,28,.18)}
footer{position:fixed; left:0; right:0; bottom:0; z-index:6; display:flex; justify-content:center; gap:18px; padding:14px 18px; font-size:11.5px; letter-spacing:.04em; color:var(--muted)}
footer a{color:inherit; text-decoration:none; border-bottom:1px solid var(--hair)}
footer a:hover{color:var(--ink)}
.gate .msg[data-bad]{color:#a5432f}
.gate .hintline{margin:-6px 0 0; font-size:12.5px; color:var(--muted)}
/* plain pages: the client space, the legal notice */
.plain{position:relative; z-index:2; max-width:760px; margin:0 auto; padding:clamp(120px,18vh,170px) clamp(20px,5vw,40px) 90px; display:grid; gap:22px}
.plain h1{font-size:clamp(2.1rem,3.6vw,3rem); margin:0}
.plain h2{font:500 14px/1.3 var(--uncial); letter-spacing:.18em; color:var(--gilt); margin:22px 0 0}
.plain p, .plain li{margin:0; font-size:15px; line-height:1.65}
.plain a{color:var(--ink)}
.card{border:1px solid var(--hair); padding:22px clamp(16px,3vw,28px); display:grid; gap:14px; background:rgba(247,241,227,.6)}
.rows{list-style:none; margin:0; padding:0; display:grid}
.rows li{display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; padding:12px 0; border-top:1px solid var(--hair)}
.rows li:first-child{border-top:0}
.rows .who{font:italic 400 20px/1.2 var(--display); margin-right:auto}
.rows .meta{font-size:12.5px; color:var(--muted)}
.linkbtn{background:none; border:0; padding:6px 0; font:400 13px/1 var(--body); color:var(--ink); border-bottom:1px solid var(--gilt); cursor:pointer}
.linkbtn.danger{border-bottom-color:#a5432f; color:#a5432f}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.plain .gate{opacity:1; transform:none; gap:16px}
.pwrow{display:flex; gap:12px; align-items:end}
.pwrow label{flex:1}
@media (max-width: 820px){
  .maint{grid-template-columns:1fr}
  .words{gap:12px}
  .words h1{font-size:2.1rem}
  .grid2{grid-template-columns:1fr}
  footer{position:static; padding:8px 18px 18px}
  header{column-gap:0}
  header .mark{font-size:13.5px; gap:8px; letter-spacing:.07em}
  header .mark svg{width:19px; height:19px}
  header .callback{font-size:11px; margin-left:4px}
  header .client{margin-left:10px}
  .login{height:auto; min-height:100svh}
}
