@font-face{
  font-family:"Gill Sans";
  src:url("../fonts/GillSans-Light.otf") format("opentype");
  font-style:normal;
  font-weight:300;
  font-display:swap;
}

@font-face{
  font-family:"Gill Sans";
  src:url("../fonts/GillSans-Regular.otf") format("opentype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

@font-face{
  font-family:"Gill Sans";
  src:url("../fonts/GillSans-Medium.otf") format("opentype");
  font-style:normal;
  font-weight:500;
  font-display:swap;
}

:root{
  color-scheme:light;
  --paper:#fbfbf8;
  --ink:#272920;
  --muted:#737568;
  --olive:#6a712a;
  --olive-dark:#4f561e;
}

*{box-sizing:border-box}

html,body{width:100%;min-height:100%;margin:0}

body{
  overflow:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:"Gill Sans",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.waiting-page{
  position:relative;
  display:grid;
  width:100%;
  min-height:100vh;
  min-height:100svh;
  place-items:center;
  overflow:hidden;
  isolation:isolate;
  padding:max(28px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(26px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 37%,rgba(255,255,255,.96) 0,rgba(255,255,255,.8) 15%,rgba(251,251,248,.1) 39%,transparent 64%),
    var(--paper);
}

.particle-logo{
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  touch-action:none;
  cursor:crosshair;
}

.isotype-fallback{
  position:absolute;
  z-index:0;
  top:var(--symbol-center-y,40%);
  left:50%;
  width:var(--symbol-size,min(50vw,56vh,620px));
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  background:url("../img/origo-isologo.png") center/contain no-repeat;
  opacity:0;
  pointer-events:none;
}

.floating-brand{
  position:absolute;
  z-index:3;
  top:max(26px,env(safe-area-inset-top));
  left:max(clamp(24px,3.6vw,56px),env(safe-area-inset-left));
  display:flex;
  align-items:center;
  gap:12px;
  filter:drop-shadow(0 10px 16px rgba(58,61,35,.08));
  animation:brandFloat 5.4s ease-in-out infinite;
  pointer-events:none;
}

.floating-brand-symbol{
  display:block;
  width:clamp(32px,3vw,42px);
  height:clamp(32px,3vw,42px);
  object-fit:contain;
}

.floating-brand-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}

.floating-brand-copy img{
  display:block;
  width:clamp(112px,9.4vw,146px);
  height:auto;
}

.floating-brand-copy small{
  color:#747667;
  font-size:7px;
  font-weight:500;
  letter-spacing:.2em;
  white-space:nowrap;
}

.waiting-content{
  position:absolute;
  z-index:2;
  top:calc(var(--symbol-bottom,62vh) + clamp(24px,3.2vh,42px));
  left:50%;
  display:flex;
  width:min(780px,92vw);
  flex-direction:column;
  align-items:center;
  text-align:center;
  opacity:0;
  transform:translate(-50%,18px);
  transition:opacity 1.1s ease .35s,transform 1.1s cubic-bezier(.2,.8,.2,1) .35s;
  pointer-events:none;
}

.is-ready .waiting-content{
  opacity:1;
  transform:translate(-50%,0);
}

.status{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 18px;
  color:var(--olive-dark);
  font-size:10px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
}

.status span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--olive);
  box-shadow:0 0 0 5px rgba(106,113,42,.1);
  animation:statusPulse 2.4s ease-in-out infinite;
}

h1{
  margin:0;
  color:var(--ink);
  font-size:clamp(1.95rem,2.75vw,3.35rem);
  font-weight:300;
  letter-spacing:-.035em;
  line-height:.98;
}

h1 em{
  color:var(--olive);
  font-style:normal;
  font-weight:300;
}

.supporting-copy{
  max-width:460px;
  margin:17px auto 0;
  color:var(--muted);
  font-size:clamp(.82rem,1.15vw,.98rem);
  font-weight:300;
  line-height:1.55;
}

.site-footer{
  position:absolute;
  z-index:3;
  right:clamp(22px,3vw,48px);
  bottom:max(24px,env(safe-area-inset-bottom));
  left:clamp(22px,3vw,48px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  color:#797b71;
  font-size:8px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  pointer-events:none;
}

.footer-claim{text-align:center}
.footer-coordinates{text-align:right}

.site-footer::before{
  position:absolute;
  right:0;
  bottom:calc(100% + 14px);
  left:0;
  height:1px;
  content:"";
  background:linear-gradient(90deg,transparent,rgba(106,113,42,.18),transparent);
}

@keyframes brandFloat{
  0%,100%{transform:translate3d(0,0,0) rotate(-.25deg)}
  50%{transform:translate3d(0,-10px,0) rotate(.25deg)}
}

@keyframes statusPulse{
  0%,100%{transform:scale(.88);opacity:.75}
  50%{transform:scale(1.12);opacity:1}
}

@media(max-width:640px){
  .waiting-page{padding-inline:20px}
  .floating-brand{top:max(22px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));gap:9px}
  .floating-brand-symbol{width:31px;height:31px}
  .floating-brand-copy img{width:104px}
  .floating-brand-copy small{font-size:6px;letter-spacing:.16em}
  .waiting-content{width:min(92vw,520px);top:calc(var(--symbol-bottom,58vh) + 22px)}
  h1{font-size:clamp(1.8rem,8.2vw,2.75rem);line-height:1.02}
  .supporting-copy{max-width:330px;margin-top:18px;font-size:.8rem}
  .site-footer{right:20px;left:20px;grid-template-columns:1fr auto;font-size:6px;letter-spacing:.12em;gap:7px 14px}
  .footer-claim{grid-column:1/-1;grid-row:1;margin-bottom:2px}
  .footer-location{grid-column:1;grid-row:2}
  .footer-coordinates{grid-column:2;grid-row:2}
}

@media(max-width:390px), (max-height:680px){
  .status{margin-bottom:13px;font-size:8px}
  h1{font-size:clamp(1.65rem,7.7vw,2.3rem)}
  .supporting-copy{margin-top:12px;font-size:.74rem}
  .site-footer{bottom:max(16px,env(safe-area-inset-bottom))}
}

@media(prefers-reduced-motion:reduce){
  .waiting-content{transition:none}
  .floating-brand,.status span{animation:none}
}
