/* DigiPlaza one-pager — scene, type, motion. Poppins self-hosted. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --scale: 1;
  --origin-x: 50%;
  --origin-y: 50%;
  --ink: #f6f3ec;
  --scrim: rgba(6, 8, 12, 0.55);
  --font: "Poppins", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  background: #0b1018;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0b1018;
}

.scene picture,
.scene img {
  display: block;
  width: 100%;
  height: 100%;
}

.scene img {
  max-width: none;
  object-fit: cover;
  object-position: var(--origin-x) var(--origin-y);
  transform-origin: var(--origin-x) var(--origin-y);
  transform: scale(var(--scale));
  will-change: transform;
  user-select: none;
}

.brand {
  position: fixed;
  z-index: 4;
  top: max(1.05rem, env(safe-area-inset-top));
  left: max(1.2rem, env(safe-area-inset-left));
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.admin-bar .brand {
  top: calc(max(1.05rem, env(safe-area-inset-top)) + var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
  .admin-bar .brand {
    top: calc(max(1.05rem, env(safe-area-inset-top)) + var(--wp-admin--admin-bar--height, 46px));
  }
}

main {
  position: relative;
  z-index: 2;
}

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel--hold {
  min-height: 160vh;
  min-height: 160dvh;
}

.copy {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(96vw, 64rem);
  margin: 0;
  padding: 2.6rem 1.4rem;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(2.4rem, 8.2vw, 5.8rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
}

.panel:first-child .copy {
  opacity: 1;
}

.copy::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    var(--scrim) 0%,
    rgba(6, 8, 12, 0.3) 44%,
    rgba(6, 8, 12, 0) 74%
  );
}

.copy h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.copy--contact {
  width: min(92vw, 36rem);
  padding: 1.6rem 1.2rem;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: 0.16em;
  line-height: 1.25;
}

.mail {
  margin: 0.85rem 0 0;
  text-transform: none;
  letter-spacing: 0.03em;
}

.mail a {
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.88rem, 2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.mail a:hover,
.mail a:focus-visible {
  opacity: 0.86;
}

.mail a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .copy {
    width: min(96vw, 40rem);
    padding: 1.8rem 0.85rem;
    font-size: clamp(2.05rem, 11vw, 3.4rem);
    letter-spacing: 0.04em;
  }

  .copy--contact {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene img {
    transform: none;
    will-change: auto;
  }
}
