/* The holding page (WEB-CERT). A translation of the design
   "Placeholder.dc.html" + "Logo.dc.html"; values copied from it. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html { background: #1C1A17; }
body { margin: 0; background: #1C1A17; overflow: hidden; }

@keyframes ph-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ph-spin { to { transform: rotate(360deg); } }
@keyframes ph-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.in1 { animation: ph-in 0.8s cubic-bezier(.2,.7,.2,1) both; }
.in2 { animation: ph-in 0.8s 0.15s cubic-bezier(.2,.7,.2,1) both; }
.in3 { animation: ph-in 0.8s 0.3s cubic-bezier(.2,.7,.2,1) both; }
.spin { animation: ph-spin 18s linear infinite; transform-origin: 50% 50%; }
.dot { animation: ph-pulse 2.4s ease-in-out infinite; }

/* The logo's symbols live in one hidden SVG at the top of the page. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* The dark outer frame. */
.frame {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  color: #1E1B17;
  background: #1C1A17;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  padding: 5px;
  box-sizing: border-box;
}

/* The cream window with the dot grid. */
.window {
  position: relative;
  height: 100%;
  background: #F1E9DC;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(#D8CAB3 1px, transparent 1px);
  background-size: 24px 24px;
}

/* The four corner marks. */
.mk {
  position: absolute; width: 12px; height: 12px;
  border-color: #8C7D69; border-style: solid; border-width: 0;
  pointer-events: none; z-index: 5;
}
.mk-tl { top: 8px; left: 8px; border-top-width: 1.2px; border-left-width: 1.2px; }
.mk-tr { top: 8px; right: 8px; border-top-width: 1.2px; border-right-width: 1.2px; }
.mk-bl { bottom: 8px; left: 8px; border-bottom-width: 1.2px; border-left-width: 1.2px; }
.mk-br { bottom: 8px; right: 8px; border-bottom-width: 1.2px; border-right-width: 1.2px; }

.body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 150px;
  box-sizing: border-box;
}
.stack { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }

/* The lockup (Logo.dc.html, kind lockup, tone onLight):
   icon = round(h * 1.55), gap = round(h * 0.45), word = h * 4349 / 800. */
.lockup { display: flex; align-items: center; }
.lockup svg { display: block; flex: 0 0 auto; }
.lockup-big { gap: 29px; }                                  /* h = 64 */
.lockup-big .lg-icon { width: 99px; height: 99px; }
.lockup-big .lg-word { width: 347.9px; height: 64px; }
.lockup-small { display: none; gap: 15px; }                 /* h = 34 */
.lockup-small .lg-icon { width: 53px; height: 53px; }
.lockup-small .lg-word { width: 184.8px; height: 34px; }

.sub { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 500; color: #4A4239; }

.soon {
  margin: 0;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8A3A15;
}
.soon-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF7A1A; }

/* The turning ring (decorative). */
.ring { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 104px; height: 104px; }
.ring-text { position: absolute; inset: 0; }
.ring-hub {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #1E1B17;
  display: flex; align-items: center; justify-content: center;
}
.ring-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF7A1A; }

.foot {
  position: relative;
  padding: 0 32px 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.04em;
  color: #4A4239;
}

@media (max-width: 640px) {
  .lockup-big { display: none; }
  .lockup-small { display: flex; }
  .sub { font-size: 20px; }
}
@media (max-width: 820px) {
  .ring { display: none; }
  .body { padding-bottom: 24px; }
}
/* Below the frame's 480 px minimum (a phone in landscape) the page scrolls,
   so the footer stays reachable; above it nothing changes. */
@media (max-height: 479.98px) {
  body { overflow-x: hidden; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .in1, .in2, .in3, .spin, .dot { animation: none; }
}
