/* Atelier: inlaid wood (intarsia), gold leaf and one deep ultramarine. */
@font-face{font-family:"Garamond";src:url(../fonts/garamond.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Garamond";font-style:italic;src:url(../fonts/garamond-italic.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Garamond";font-weight:600;src:url(../fonts/garamond-600.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Courier Prime";src:url(../fonts/courier.woff2) format("woff2");font-display:swap}

:root{
  --oak:#1E140C; --walnut:#3A2416; --walnut-2:#4C301D; --pear:#C79F70; --maple:#E8D6AE; --vellum:#F1E6CC;
  --gold:#C9A24A; --gold-dk:#9C7A2E; --lapis:#2B4AA6; --lapis-lt:#6F8CE0; --ink:#1A120B; --text:#EADBBB; --muted:#BFA98A; --warn:#E0866A;
  --stringing:repeating-linear-gradient(90deg,#E8D6AE 0 6px,#2A1A0F 6px 12px);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--oak);scroll-behavior:smooth}
body{margin:0;min-height:100vh;color:var(--text);font-family:Garamond,Georgia,serif;font-size:19px;line-height:1.55;
  background:
    repeating-linear-gradient(92deg,rgba(255,220,170,.025) 0 2px,transparent 2px 9px,rgba(0,0,0,.05) 9px 11px,transparent 11px 23px),
    radial-gradient(ellipse at 50% -10%,#4A2E1B,transparent 60%),
    linear-gradient(#2A1A0F,#1E140C 70%)}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.22;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .22 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E")}
header,main,footer,section{position:relative;z-index:1}
a{color:var(--gold)} a:hover{color:var(--maple)}
:focus-visible{outline:2px solid var(--lapis-lt);outline-offset:3px;border-radius:4px}
h1,h2,h3,h4{font-weight:400;margin:0;line-height:1.05}
p{margin:0}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px}
.mono{font-family:"Courier Prime",ui-monospace,monospace}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* nav */
.nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:22px}
.brand{display:flex;align-items:center;gap:12px;color:var(--vellum);text-decoration:none}
.brand .mark{width:42px;height:42px}
.brand b{font-weight:400;font-size:30px;letter-spacing:.08em}
.links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 26px;font-size:18px}
.links a:not(.btn){color:var(--text);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .3s,color .3s}
.links a:not(.btn):hover,.links a[aria-current]{color:var(--gold);border-bottom-color:var(--gold)}

/* buttons: a brass plate */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px;border:0;border-radius:6px;cursor:pointer;
  font:inherit;font-size:19px;text-decoration:none;letter-spacing:.02em;transition:transform .25s,filter .25s,box-shadow .25s;overflow:hidden}
.btn-gold{color:var(--ink);background:linear-gradient(180deg,#E2C373,#C9A24A 45%,#A07E33);box-shadow:inset 0 1px 0 rgba(255,245,210,.6),inset 0 -2px 0 rgba(0,0,0,.25),0 8px 20px -10px rgba(0,0,0,.8)}
.btn-gold:hover{transform:translateY(-2px);filter:brightness(1.07);color:var(--ink)}
.btn-gold::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,250,225,.45) 50%,transparent 65%);transform:translateX(-130%);transition:transform .9s}
.btn-gold:hover::after{transform:translateX(130%)}
.btn-wood{color:var(--maple);background:linear-gradient(180deg,#5A3A22,#3E2717);box-shadow:inset 0 0 0 1px rgba(232,214,174,.35),0 8px 20px -12px rgba(0,0,0,.8)}
.btn-wood:hover{transform:translateY(-2px);color:var(--vellum);box-shadow:inset 0 0 0 1px var(--gold)}
.btn-lapis{color:#F3F0FF;background:linear-gradient(180deg,#3A5CC2,#2B4AA6 50%,#1F3680);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 8px 20px -10px rgba(0,0,0,.8)}
.btn-lapis:hover{transform:translateY(-2px);filter:brightness(1.1)}
.btn-warn{color:var(--warn);background:transparent;box-shadow:inset 0 0 0 1px rgba(224,134,106,.6)}
.btn-warn:hover{background:rgba(224,134,106,.12)}
.btn-small{min-height:40px;padding:0 16px;font-size:17px}
.btn[disabled]{opacity:.55;cursor:progress;transform:none}

/* an inlaid panel: wood with a stringing border */
.panel{position:relative;padding:28px;border-radius:10px;background:
  repeating-linear-gradient(88deg,rgba(255,220,170,.04) 0 1px,transparent 1px 6px),linear-gradient(160deg,#4E321E,#3A2416 60%,#33200F);
  box-shadow:inset 0 0 0 6px #2A1A0F,inset 0 0 0 7px rgba(232,214,174,.35),0 20px 40px -24px rgba(0,0,0,.9)}
.panel::before{content:"";position:absolute;inset:10px;border-radius:5px;pointer-events:none;border:2px solid transparent;
  border-image:repeating-linear-gradient(45deg,#E8D6AE 0 5px,#2A1A0F 5px 10px) 2}

/* hero */
.hero{display:flex;flex-wrap:wrap;align-items:center;gap:40px;padding:40px 0 30px}
.hero .copy{flex:1 1 440px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hero h1{font-size:clamp(50px,6vw,84px);color:var(--vellum);letter-spacing:-.01em}
.hero h1 .w{display:inline-block;opacity:0;transform:translateY(.3em);animation:rise .9s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes rise{to{opacity:1;transform:none}}
.lede{font-size:21px;max-width:32em;color:var(--text)}
.row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.note{font-size:16px;color:var(--muted);font-style:italic}

/* the cabinet */
.cabinet-wrap{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:14px;align-items:center}
.kinds{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.kind{border:0;font:inherit;font-size:17px;padding:8px 16px;min-height:44px;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;box-shadow:inset 0 0 0 1px rgba(232,214,174,.25);transition:all .25s}
.kind:hover{color:var(--vellum);box-shadow:inset 0 0 0 1px var(--gold)}
.kind[aria-pressed="true"]{background:var(--lapis);color:#fff;box-shadow:none}
.cabinet{position:relative;width:min(100%,560px);padding:22px;border-radius:12px;perspective:1200px;
  background:linear-gradient(160deg,#5A3A22,#3A2416);box-shadow:inset 0 0 0 8px #24170D,inset 0 0 0 9px rgba(232,214,174,.4),inset 0 0 0 16px #3A2416,inset 0 0 0 17px rgba(201,162,74,.5),0 40px 70px -40px #000}
.cabinet .crest{display:flex;justify-content:space-between;align-items:center;margin:0 6px 14px;font-size:15px;color:var(--maple);letter-spacing:.12em}
.cabinet .crest b{font-weight:400;color:var(--gold)}
.cubbies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cubby{position:relative;aspect-ratio:1/1.05;border-radius:4px;transform-style:preserve-3d;
  background:linear-gradient(180deg,#1C120A,#2A1A0F);box-shadow:inset 0 6px 14px rgba(0,0,0,.8),inset 0 0 0 1px rgba(232,214,174,.2)}
.cubby .shelf{position:absolute;left:8%;right:8%;height:5px;background:linear-gradient(#7A5634,#4C301D);box-shadow:0 3px 4px rgba(0,0,0,.6)}
.cubby .item{position:absolute;left:12%;right:12%;bottom:calc(var(--s,0) * 1%);display:flex;align-items:flex-end;gap:4px;opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s}
.cubby.full .item{opacity:1;transform:none}
.cubby .book{width:14%;border-radius:1px 1px 0 0;box-shadow:inset -2px 0 0 rgba(0,0,0,.25)}
.cubby .label{position:absolute;left:6%;right:6%;bottom:6%;text-align:center;font-family:"Courier Prime",monospace;font-size:12px;color:var(--maple);background:rgba(30,20,12,.85);border-radius:3px;padding:2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .5s .3s}
.cubby.full .label{opacity:1}
.cubby .door{position:absolute;inset:0;border-radius:4px;transform-origin:left center;transition:transform 1.1s cubic-bezier(.3,.7,.2,1);backface-visibility:hidden;
  background:repeating-linear-gradient(90deg,rgba(0,0,0,.07) 0 2px,transparent 2px 7px),linear-gradient(160deg,#C79F70,#A57E52);
  box-shadow:inset 0 0 0 5px #6B4527,inset 0 0 0 6px rgba(232,214,174,.6),inset 0 0 0 12px #B89064,inset 0 0 0 13px rgba(58,36,22,.55),2px 0 6px rgba(0,0,0,.5)}
/* an inlaid lozenge: dark walnut with pear and maple stringing */
.cubby .door::before{content:"";position:absolute;left:50%;top:50%;width:36%;height:36%;transform:translate(-50%,-50%) rotate(45deg);
  background:repeating-linear-gradient(45deg,rgba(255,220,170,.06) 0 2px,transparent 2px 5px),linear-gradient(135deg,#7A4E2C,#4C301D);
  box-shadow:inset 0 0 0 3px #E8D6AE,inset 0 0 0 5px #3A2416,inset 0 0 0 7px #C9A24A,0 0 0 2px rgba(58,36,22,.6)}
.cubby .door::after{content:"";position:absolute;right:10%;top:46%;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#F2D98A,#9C7A2E);box-shadow:0 1px 2px #000}
.cubby.open .door{transform:rotateY(-108deg)}
.cubby.locked .door{transform:none}
.lock{position:absolute;left:50%;top:50%;width:26px;height:30px;margin:-15px 0 0 -13px;opacity:0;transform:scale(.6);transition:all .4s}
.cubby.locked .lock{opacity:1;transform:none}
.cabinet .foot{display:flex;justify-content:space-between;gap:10px;margin:14px 6px 0;font-size:15px;color:var(--muted)}
.odometer{font-family:"Courier Prime",monospace;color:var(--gold);letter-spacing:.08em}

/* sections */
.sec{margin-top:110px}
.sec>h2,.sec .h2{font-size:clamp(38px,4.4vw,58px);color:var(--vellum);text-align:center}
.intro{margin:14px auto 0;max-width:34em;text-align:center;font-size:20px;color:var(--text)}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:40px}
.step{display:flex;flex-direction:column;gap:10px}
.step i{font-style:normal;font-size:44px;line-height:1;color:var(--gold)}
.step h3{font-size:30px;color:var(--vellum)}
.step p{font-size:18px}

.replay{display:flex;flex-wrap:wrap;gap:28px;margin-top:40px;align-items:stretch}
.ledger{flex:999 1 560px;min-width:0;min-height:420px;padding:28px 34px;border-radius:6px;color:#2A1A0F;
  background:repeating-linear-gradient(180deg,transparent 0 33px,rgba(120,80,40,.25) 33px 34px) 0 60px/100% 100% no-repeat,linear-gradient(#F3E8CE,#E9DABA);
  box-shadow:inset 0 0 40px rgba(120,80,40,.35),0 30px 60px -30px #000;font-family:"Courier Prime",monospace;font-size:16px;line-height:34px}
.ledger h3{font-family:Garamond,serif;font-style:italic;font-size:28px;line-height:1.2;margin-bottom:12px;color:#3A2416}
.ledger .ln{display:block;white-space:pre-wrap;word-break:break-word}
.ledger .ln.t{color:#2B4AA6}
.ledger .ln.r{color:#5A4030}
.ledger .ln.f{color:#1F5A2E}
.ledger .ln.e{color:#8A3B1E}
.ledger .caret{display:inline-block;width:9px;height:18px;background:#3A2416;vertical-align:-3px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.replay aside{flex:1 1 300px;display:flex;flex-direction:column;gap:14px}
.replay aside p{font-size:18px}

.compare{width:100%;max-width:900px;margin:36px auto 0;border-collapse:collapse;font-size:19px}
.compare th,.compare td{padding:14px 16px;text-align:left;border-bottom:1px solid rgba(232,214,174,.2)}
.compare thead th{font-weight:400;color:var(--gold);font-size:17px;letter-spacing:.06em}
.compare td:last-child{color:var(--vellum)}
.table-box{overflow-x:auto}

.prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;margin-top:40px}
.price b{display:block;font-weight:400;font-size:40px;color:var(--vellum);font-variant-numeric:lining-nums}
.price span{color:var(--muted);font-size:17px}

.faq{max-width:860px;margin:36px auto 0;display:flex;flex-direction:column;gap:10px}
.faq details{border-bottom:1px solid rgba(232,214,174,.2);padding:12px 4px}
.faq summary{cursor:pointer;font-size:22px;color:var(--vellum);list-style:none}
.faq summary::before{content:"+";display:inline-block;width:24px;color:var(--gold);transition:transform .3s}
.faq details[open] summary::before{transform:rotate(45deg)}
.faq p{margin-top:8px;padding-left:24px;font-size:18px}

.coda{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center}
footer.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin-top:100px;padding-top:24px;padding-bottom:40px;border-top:1px solid rgba(232,214,174,.2);font-size:16px;color:var(--muted)}
footer.foot a{color:var(--muted)}

.reveal{opacity:0;transform:translateY(20px);transition:opacity .9s,transform .9s}
.reveal.in{opacity:1;transform:none}

/* gold dust where you click */
.spark{position:fixed;width:4px;height:4px;border-radius:50%;background:var(--gold);pointer-events:none;z-index:60;animation:spark .7s ease-out forwards}
@keyframes spark{to{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}}

/* ───────── console */
.console{display:flex;flex-wrap:wrap;gap:26px;padding:26px 0 60px;align-items:flex-start}
.console aside{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:18px}
.console .work{flex:999 1 600px;min-width:0;display:flex;flex-direction:column;gap:18px}
.credit dl{display:grid;grid-template-columns:auto auto;gap:6px 16px;margin:10px 0 14px;font-size:17px}
.credit dt{color:var(--muted)} .credit dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.agent-list{display:flex;flex-direction:column;gap:8px}
.agent-btn{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;border:0;font:inherit;text-align:left;cursor:pointer;padding:12px 14px;border-radius:6px;color:var(--text);
  background:rgba(232,214,174,.05);box-shadow:inset 0 0 0 1px rgba(232,214,174,.15);transition:all .25s}
.agent-btn:hover{box-shadow:inset 0 0 0 1px var(--gold)}
.agent-btn[aria-current="true"]{background:rgba(43,74,166,.25);box-shadow:inset 0 0 0 1px var(--lapis-lt)}
.agent-btn small{color:var(--muted);font-size:15px}
.state{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);white-space:nowrap}
.state::before{content:"";width:8px;height:8px;border-radius:50%;background:#8C7A5E}
.state.working::before{background:#7FD08A;box-shadow:0 0 0 3px rgba(127,208,138,.2);animation:pulse 1.6s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(127,208,138,.05)}}
.field{display:flex;flex-direction:column;gap:6px}
.field>span{font-size:16px;color:var(--muted)}
.input,textarea.input,select.input{width:100%;font:inherit;font-size:18px;color:var(--ink);background:var(--vellum);border:0;border-radius:6px;padding:10px 12px;box-shadow:inset 0 2px 6px rgba(0,0,0,.25)}
textarea.input{min-height:110px;resize:vertical;font-family:Garamond,serif}
.tabs2{display:flex;gap:4px;border-bottom:1px solid rgba(232,214,174,.2)}
.tabs2 button{border:0;background:transparent;font:inherit;font-size:18px;color:var(--muted);padding:8px 14px;cursor:pointer;border-bottom:2px solid transparent}
.tabs2 button[aria-selected="true"]{color:var(--vellum);border-bottom-color:var(--gold)}
.files{display:flex;flex-wrap:wrap;gap:14px}
.files ul{flex:1 1 220px;margin:0;padding:0;list-style:none;max-height:420px;overflow:auto}
.files li button{width:100%;text-align:left;border:0;background:transparent;color:var(--text);font-family:"Courier Prime",monospace;font-size:15px;padding:6px 8px;cursor:pointer;border-radius:4px;transition:transform .2s,background .2s}
.files li button:hover{background:rgba(232,214,174,.08);transform:translateX(4px)}
.files li button[aria-current="true"]{background:rgba(43,74,166,.3)}
.files pre{flex:999 1 360px;min-width:0;margin:0;max-height:420px;overflow:auto;padding:16px;border-radius:6px;background:#F3E8CE;color:#2A1A0F;font-family:"Courier Prime",monospace;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.history{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.history li{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:6px;background:rgba(232,214,174,.05);font-size:16px}
.history li button{border:0;background:none;color:var(--gold);font:inherit;cursor:pointer;text-decoration:underline}
.gate{max-width:640px;margin:60px auto;text-align:center;display:flex;flex-direction:column;gap:16px;align-items:center}
.gate h2{font-size:44px;color:var(--vellum)}
.toasts{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:10px;z-index:70;max-width:min(420px,calc(100vw - 40px))}
.toast{background:#F3E8CE;color:#2A1A0F;padding:14px 18px;border-radius:8px;box-shadow:0 0 0 1px var(--gold),0 14px 30px -14px #000;font-size:17px;animation:tin .4s}
.toast.bad{box-shadow:0 0 0 1px var(--warn),0 14px 30px -14px #000;color:#6B2410}
.toast.good{box-shadow:0 0 0 1px #4E8C5A,0 14px 30px -14px #000}
@keyframes tin{from{opacity:0;transform:translateY(10px)}}
.toast a{color:#2B4AA6}
.dialog{max-width:560px;border:0;border-radius:10px;padding:0;background:transparent;color:var(--text)}
.dialog::backdrop{background:rgba(10,6,3,.7)}

/* deploy page */
.deploy{max-width:860px;margin:0 auto;padding:30px 32px 80px;display:flex;flex-direction:column;gap:26px}
.deploy section[aria-disabled="true"]{opacity:.45;pointer-events:none}

@media (max-width:760px){
  body{font-size:18px}
  .wrap{padding:0 18px}
  .steps{grid-template-columns:1fr}
  .cabinet{padding:14px}
  .cubbies{gap:8px}
  .sec{margin-top:80px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .hero h1 .w,.reveal{opacity:1;transform:none}
}
