:root {
  color-scheme:dark;
  --ink:#141411;
  --paper:#faf7ef;
  --orange:#ff6b39;
  --edge:clamp(20px,4.6vw,88px);
  --mono:Consolas,"Liberation Mono",monospace;
  color:var(--paper);
  background:var(--ink);
  font-family:"Avenir Next","Helvetica Neue",Arial,sans-serif;
}
* { box-sizing:border-box }
body,h1,h2,p,figure { margin:0 }
a { color:inherit; text-decoration:none }
button,select { color:inherit; font:inherit; cursor:pointer }
:focus-visible { outline:3px solid #ffa775; outline-offset:4px }
[hidden] { display:none!important }
body > header, nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-inline:var(--edge); z-index:8 }
body > header { height:76px; border-bottom:1px solid #ffffff30; background:#151513 }
.brand,.portfolio,.index,.arrows { display:flex; align-items:center }
.brand { gap:10px; font-weight:800; font-size:18px }
.brand span { color:#d0cdc6; font-size:14px; font-weight:500 }
.portfolio { gap:12px; font-size:14px; font-weight:600 }
.portfolio:hover { text-decoration:underline; text-underline-offset:4px }
.panel { --accent:var(--orange); position:relative; isolation:isolate; overflow:hidden; min-height:75vh; display:grid; align-items:center }
.panel.yellow { --accent:#e5f873 }
.panel.teal { --accent:#7ce4ce }
.panel.violet { --accent:#c4adf0 }
.scene { position:absolute; z-index:-1; inset:-2%; background:#252623 url('media/gallery.webp') center/cover }
.scene::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,9,9,.86),rgba(10,11,11,.47) 42%,transparent 79%),linear-gradient(0deg,#10100f77,transparent 29%) }
#entrance .scene { background-image:url('media/atrium.webp'); background-position:55% 52% }
#entrance .scene::after { background:linear-gradient(90deg,#080907aa,rgba(8,9,7,.5) 28%,transparent 62%),linear-gradient(0deg,#080909aa,transparent 32%) }
.exhibit { width:100%; max-width:2000px; margin:auto; padding:clamp(68px,9vh,130px) var(--edge); display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.35fr); gap:clamp(30px,4.5vw,86px); align-items:center }
#entrance .exhibit { display:block }
#entrance .copy { max-width:56% }
.stamp,figcaption,#counter,.track,.viewer-bar,.switch { font:600 .75rem/1.4 var(--mono) }
.stamp { display:flex; align-items:center; gap:12px; color:#e7e3da; letter-spacing:.12em; text-transform:uppercase; margin-bottom:clamp(16px,2.6vh,30px) }
.stamp::before { content:""; width:27px; height:3px; background:var(--accent) }
h1,h2 { font-weight:750; letter-spacing:-.075em; text-wrap:balance; line-height:.95 }
h1 { font-size:clamp(68px,min(9.5vw,15vh),177px); line-height:.86 }
h1 span { color:var(--orange) }
h2 { font-size:clamp(44px,min(6.5vw,11vh),112px) }
.intro { font-size:clamp(16px,1.22vw,22px); line-height:1.55; max-width:38ch; color:#e3e0d9; margin:clamp(18px,2.8vh,36px) 0 }
.action { display:inline-flex; align-items:center; gap:22px; min-height:44px; padding:10px 17px; background:var(--accent); color:#171713; font-size:15px; font-weight:750 }
.action span { font-size:1.25em }
.action:hover { filter:brightness(1.1) }
figure { min-width:0; transform:perspective(1300px) rotateY(-8deg); transform-origin:center }
.screen { display:block; padding:5px; position:relative; background:#424340; border:1px solid #a7aaa3; box-shadow:6px 10px 0 #171816,10px 26px 40px #0009; cursor:zoom-in }
.screen img { width:100%; max-height:51svh; object-fit:contain; display:block; background:#131412 }
.screen span { display:grid; place-items:center; position:absolute; right:12px; bottom:12px; border:1px solid #ffffff75; background:#151613ed; width:36px; height:36px; font-size:24px }
#galexora .screen { padding:clamp(8px,1.4vw,26px); background:#d2cbbd; border-color:#ded9ca; box-shadow:7px 8px 0 #57574e,10px 26px 40px #0008 }
#wordgym .screen { padding:12px; border:0; background:transparent; box-shadow:none }
.phones { display:flex; align-items:center; justify-content:center; gap:3%; }
.phones img { width:29%; height:auto; max-height:44svh; object-fit:contain; border:3px solid #555652; border-radius:13px; box-shadow:4px 8px 16px #0008 }
.phones img:first-child { transform:rotate(-7deg) translateY(6%); }
.phones img:last-child { transform:rotate(7deg) translateY(4%); }
#wordgym figure { transform:none }
figcaption { text-align:right; letter-spacing:.08em; color:#f1eee8; margin-top:17px; text-shadow:0 1px 4px #000 }
#galexora figure { transform:perspective(1300px) rotateY(7deg); }
#contact figure { justify-self:center; width:min(57%,320px); transform:rotate(3deg); background:#ebe6da; color:var(--ink); padding:10px 10px 15px; box-shadow:6px 8px 0 var(--orange) }
#contact figure img { display:block; width:100%; max-height:42svh; object-fit:cover; object-position:50% 34%; filter:grayscale(1) }
#contact figcaption { color:inherit; text-shadow:none; margin-top:10px; text-align:left }
#contact .scene::after { background:linear-gradient(105deg,#231713ee,#2e130db0 65%,#79352288) }
.tour > header { position:fixed; inset:0 0 auto; background:linear-gradient(#11120fbb,#11120f55) }
.tour nav { position:fixed; inset:auto 0 0 }
.tour main { height:var(--tour-height) }
.tour .viewport { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; background:#181917; isolation:isolate }
.tour .panel { position:absolute; inset:0; min-height:0; padding-top:76px; padding-bottom:72px }
.tour .exhibit { padding-block:0 }
nav { height:72px; background:#171816; border-top:1px solid #ffffff26 }
.index { gap:16px }
#counter { color:#ff9d78; font-variant-numeric:tabular-nums }
select { border:0; padding:8px 4px; background:var(--ink); font-size:14px; font-weight:650 }
.track { position:absolute; left:50%; transform:translateX(-50%); display:flex; gap:6px }
.track a { display:grid; align-items:center; width:clamp(18px,3vw,55px); height:38px }
.track a::before { content:""; height:3px; background:#595a53 }
.track a[aria-current]::before,.track a:hover::before { background:var(--orange) }
.arrows { gap:7px }
.arrows button,.close,.switch { border:1px solid #ffffff55; background:transparent; min-width:42px; min-height:39px; font-size:18px }
.arrows button:disabled { opacity:.3; cursor:default }
.arrows button:hover:enabled,.close:hover,.switch:hover { background:#383a34 }
dialog { width:min(94vw,1320px); border:1px solid #84847b; padding:0; background:#161715; color:var(--paper); box-shadow:0 24px 80px #0008 }
dialog::backdrop { background:#070808de }
.viewer-bar,dialog footer { padding:12px 18px; display:flex; gap:16px; align-items:center; justify-content:space-between }
.viewer-bar h2 { font:650 20px/1.1 Arial; letter-spacing:-.03em }
.close,.switch { padding:6px 13px; font:600 14px/1.2 Arial }
.viewer-stage { background:#090a09; display:grid; place-items:center }
.viewer-stage img { display:block; max-height:67svh; max-width:100%; object-fit:contain }
dialog footer p { font-size:14px; color:#dbdad1 }
body:has(dialog[open]) { overflow:hidden }
@media(max-width:760px) {
  body > header { height:58px }
  .brand { font-size:16px }
  .brand img { width:27px; height:27px }
  .brand span,.portfolio { font-size:12px }
  .exhibit { grid-template-columns:1fr; gap:22px; padding-block:42px }
  #entrance .copy { max-width:100% }
  #entrance { align-items:end; min-height:88svh }
  #entrance .exhibit { align-self:end; margin:0 auto; padding-bottom:clamp(20px,4.4svh,44px) }
  #entrance .scene { background-size:auto 62%; background-repeat:no-repeat; background-position:74% 2%; background-color:#151513 }
  #entrance .scene::after { background:linear-gradient(0deg,#151513 0%,#151513 37%,rgba(21,21,19,.76) 46%,transparent 65%) }
  h1 { font-size:clamp(60px,15.5vw,98px) }
  h2 { font-size:clamp(37px,10.6vw,60px) }
  .intro { font-size:15px; margin:12px 0 16px; max-width:38ch }
  .stamp { font-size:10px; margin-bottom:12px }
  figure { grid-row:1; width:min(100%,560px); margin-inline:auto }
  .screen img { max-height:29svh }
  .phones img { max-height:24svh; width:auto; max-width:28% }
  figcaption { margin-top:9px; font-size:10px }
  #contact figure { width:min(45%,190px) }
  #contact figure img { max-height:22svh }
  .tour .panel { padding-top:60px; padding-bottom:58px }
  .tour #entrance { min-height:0 }
  nav { height:58px }
  .index { gap:6px }
  .track { display:none }
}
@media(min-width:761px) and (max-height:610px) {
  .tour > header { height:52px }
  .tour .panel { padding:54px 0 }
  nav { height:50px }
  .stamp { margin-bottom:10px }
  .intro { margin:12px 0 }
}
@media(prefers-reduced-motion:reduce){ figure,#galexora figure,#contact figure { transform:none } }
