/*
Theme Name: Of the Zero
Theme URI: https://ofthezero.com
Author: Of the Zero
Description: Public site for Of the Zero. Homepage, Journey Companion, and recruitment.
Version: 1.3.12
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: ofthezero
*/

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/Sora-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Roboto-Regular.woff2") format("woff2");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/Roboto-Light.woff2") format("woff2");
}

:root {
  --tz-charcoal: #2c2c2c;
  --tz-paper: #f7f4ee;
  --tz-ink: #212121;
  --tz-mist: #a9a9a9;
  --tz-night: #07070c;
  --tz-line: rgba(247, 244, 238, 0.82);
  --tz-gold: #d6b25e;
  --tz-turquoise: #5eead4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Sora, sans-serif;
  background: var(--tz-paper);
  color: var(--tz-ink);
}

a {
  color: inherit;
}

.tz-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--tz-paper);
  color: var(--tz-charcoal);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.tz-skip:focus {
  top: 0.8rem;
}

.tz-header,
.tz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.tz-wordmark {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.15rem;
}

.tz-wordmark span {
  color: var(--tz-mist);
  font-weight: 450;
}

.tz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
}

.tz-nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.tz-nav a:hover,
.tz-nav a:focus-visible {
  text-decoration: none;
}

.tz-front {
  background: #000;
  color: var(--tz-paper);
  min-height: 100vh;
}

.tz-front .tz-header,
.tz-front .tz-footer {
  color: var(--tz-paper);
}

.tz-front .wp-site-blocks {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.tz-front .wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.tz-hero {
  --mark: clamp(8rem, 14vmin, 9.5rem);
  /* Phone portrait already fills the screen; a little wider than the app disc. */
  --nebula: calc(var(--mark) * 3.4);
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  text-align: center;
  padding: 1.25rem;
  background: #000;
}

.tz-wait {
  position: absolute;
  left: 50%;
  bottom: 5.5rem;
  z-index: 2;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: -0.225rem;
  border-radius: 50%;
  background: var(--tz-gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .tz-hero:not(.is-ready) .tz-wait {
    animation: tz-wait 1.4s ease-in-out 0.5s infinite;
  }
}

@keyframes tz-wait {
  0%, 100% { opacity: 0.22; transform: scale(0.85); }
  50% { opacity: 0.95; transform: scale(1); }
}

.tz-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tz-starfield {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
}

@media (min-width: 720px) {
  .tz-hero {
    --nebula: min(100vw, 100vh);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tz-hero.is-ready .tz-starfield {
    animation:
      tz-starfield-in 2.2s cubic-bezier(0.2, 0.6, 0.2, 1) both,
      tz-drift 48s ease-in-out infinite alternate;
  }

  .tz-hero.is-ready .tz-nebula {
    animation:
      tz-disc-scale 900ms linear both,
      tz-nebula-fade 900ms cubic-bezier(0, 0, 0.2, 1) both;
  }

  .tz-hero.is-ready .tz-logo-scale {
    animation: tz-disc-scale 900ms linear backwards;
  }

  .tz-hero.is-ready .tz-logo img {
    animation: tz-logo-fade 900ms cubic-bezier(0, 0, 0.2, 1) both;
  }

  .tz-hero.is-ready .tz-lines {
    animation: tz-fade 0.45s ease 0.5s both;
  }
}

@keyframes tz-starfield-in {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

@keyframes tz-disc-scale {
  0% { transform: scale(0.01); }
  15% { transform: scale(0.22); }
  30% { transform: scale(0.51); }
  45% { transform: scale(0.74); }
  60% { transform: scale(0.9); }
  75% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes tz-nebula-fade {
  from { opacity: 0; }
  to { opacity: 0.35; }
}

@keyframes tz-logo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tz-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.tz-hero-center {
  position: relative;
  z-index: 1;
  width: var(--mark);
  height: var(--mark);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.tz-nebula {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: var(--nebula);
  height: var(--nebula);
  margin-left: calc(var(--nebula) / -2);
  margin-top: calc(var(--nebula) / -2);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 53%, transparent 100%);
  mask-image: radial-gradient(circle, #000 0%, #000 53%, transparent 100%);
}

.tz-nebula-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: translate(2.9%, 2.05%) scale(1.381);
}

@media (prefers-reduced-motion: no-preference) {
  .tz-hero:not(.is-ready) .tz-nebula,
  .tz-hero:not(.is-ready) .tz-logo-scale {
    opacity: 0;
    transform: scale(0.01);
  }

  .tz-hero:not(.is-ready) .tz-lines {
    opacity: 0;
  }
}

.tz-logo {
  position: relative;
  z-index: 2;
  width: var(--mark);
  height: var(--mark);
  flex-shrink: 0;
  overflow: visible;
}

.tz-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  overflow: visible;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.tz-mark:focus,
.tz-mark:focus-visible,
.tz-mark:active {
  outline: none;
  box-shadow: none;
}

.tz-logo-shadow {
  box-sizing: content-box;
  width: 100%;
  height: 100%;
  margin: -6rem;
  padding: 6rem;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.tz-logo-scale,
.tz-logo img {
  width: 100%;
  height: 100%;
}

.tz-logo img {
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .tz-logo:has(.tz-mark:hover) .tz-logo-shadow {
    filter:
      drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 10px rgba(94, 234, 212, 0.42))
      drop-shadow(0 0 26px rgba(64, 224, 208, 0.22));
  }
}

.tz-logo:has(.tz-mark:active) .tz-logo-shadow,
.tz-logo:has(.tz-mark.is-glow) .tz-logo-shadow {
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 10px rgba(94, 234, 212, 0.42))
    drop-shadow(0 0 26px rgba(64, 224, 208, 0.22));
}

@media (hover: hover) and (pointer: fine) {
  .tz-mark:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--tz-paper);
    pointer-events: none;
  }
}

.tz-lines {
  position: absolute;
  top: calc(100% + 1.65rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: calc(100vw - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
}

.tz-line {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.tz-wheel {
  position: static;
  width: min(18rem, 100%);
  height: auto;
  margin: 0 auto;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.tz-wheel[hidden] {
  display: none !important;
}

.tz-wheel a {
  position: static;
  width: max-content;
  max-width: 100%;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  text-decoration: none;
  background: rgba(7, 7, 12, 0.72);
  border: 1px solid rgba(247, 244, 238, 0.35);
  color: var(--tz-paper);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

@media (min-width: 1100px) {
  .tz-wheel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    display: block;
    margin: 0;
  }

  .tz-wheel a {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 7.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.6);
  }

  .is-open .tz-wheel a {
    opacity: 1;
    pointer-events: auto;
    transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-14.5rem) rotate(calc(var(--i) * -360deg / var(--n))) translate(-50%, -50%);
  }

  .is-open .tz-lines {
    top: calc(var(--mark) / 2 + 17rem);
  }
}

@media (max-width: 1099px) {
  .is-open .tz-hero-center {
    width: min(18rem, calc(100vw - 2.5rem));
    height: auto;
  }

  .is-open .tz-wheel {
    margin-top: 1.35rem;
  }

  .is-open .tz-lines {
    position: static;
    transform: none;
    width: fit-content;
    margin: 1.15rem auto 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tz-wheel a,
  .tz-lines {
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 400ms ease, top 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tz-starfield,
  .tz-nebula,
  .tz-logo,
  .tz-logo-scale,
  .tz-logo img,
  .tz-lines { animation: none; }
  .tz-starfield { opacity: 0.5; transform: none; inset: 0; }
  .tz-nebula { opacity: 0.35; transform: none; }
  .tz-logo,
  .tz-logo-scale,
  .tz-logo img { opacity: 1; transform: none; }
  .tz-hero-center { width: min(100%, 22rem); height: auto; }
  .tz-lines {
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
    width: fit-content;
  }
  .tz-wheel {
    position: static;
    width: auto;
    height: auto;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.6rem;
    justify-items: center;
  }
  .tz-wheel a,
  .is-open .tz-wheel a {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

.tz-page {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.tz-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 560;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.tz-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.tz-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.tz-form input,
.tz-form textarea,
.tz-form select {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #d9d3c8;
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
}

.tz-form textarea { min-height: 7rem; resize: vertical; }

.tz-checks { display: grid; gap: 0.4rem; }
.tz-checks label { display: flex; gap: 0.55rem; align-items: flex-start; }
.tz-consent { font-size: 0.92rem; }

.tz-form button,
.wp-block-button__link {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--tz-charcoal);
  color: var(--tz-paper);
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  display: inline-block;
}

.tz-note {
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
}

.tz-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.tz-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--tz-paper);
  pointer-events: none;
}

.tz-sheet-tab {
  pointer-events: auto;
  position: relative;
  width: 3.25rem;
  height: 2.85rem;
  margin: 0 0 0.85rem 0.9rem;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--tz-gold);
  border-radius: 0.8rem;
  background: rgba(7, 7, 12, 0.82);
  color: var(--tz-paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition:
    box-shadow 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-radius 0.28s ease,
    margin 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tz-sheet.is-open .tz-sheet-tab {
  z-index: 1;
  margin-bottom: -1px;
  border-radius: 0.8rem 0.8rem 0 0;
  border-bottom: 0;
  background: rgba(7, 7, 12, 0.82);
}

.tz-sheet-tab:focus,
.tz-sheet-tab:focus-visible,
.tz-sheet-tab:active {
  outline: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .tz-sheet-tab:hover .tz-burger {
    color: var(--tz-turquoise);
    filter:
      drop-shadow(0 0 2px rgba(125, 255, 240, 0.95))
      drop-shadow(0 0 7px rgba(64, 224, 208, 0.8));
  }
}

.tz-burger,
.tz-burger::before,
.tz-burger::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.tz-burger {
  position: relative;
  color: var(--tz-gold);
  transition: color 0.25s ease, filter 0.25s ease;
}

.tz-burger::before,
.tz-burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.tz-burger::before { top: -6px; }
.tz-burger::after { top: 6px; }

.tz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tz-sheet-grow {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tz-sheet.is-open .tz-sheet-grow {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

.tz-sheet-panel {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transition: opacity 220ms ease;
}

.tz-sheet-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.95rem 1.35rem 1.45rem;
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-top: 1px solid #000;
  border-top-right-radius: 1.15rem;
  background: rgba(7, 7, 12, 0.82);
}

.tz-sheet.is-open .tz-sheet-panel {
  opacity: 1;
  transition-delay: 70ms;
}

.tz-footer-links {
  width: fit-content;
  margin: 0;
  padding: 0;
  list-style: disc;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.45;
}

.tz-footer-links li {
  margin: 0.12rem 0 0.12rem 1rem;
}

.tz-footer-links li::marker {
  color: var(--tz-gold);
}

.tz-footer-links a {
  text-decoration: none;
}

.tz-footer a,
.tz-sheet a { text-decoration: none; text-transform: lowercase; }
.tz-sheet a {
  color: var(--tz-gold);
  font-weight: 300;
}
.tz-footer a:hover,
.tz-footer a:focus-visible,
.tz-sheet a:hover,
.tz-sheet a:focus-visible {
  color: var(--tz-turquoise);
  text-decoration: none;
}

@media (hover: none) {
  .tz-sheet a:hover {
    color: var(--tz-gold);
    text-decoration: none;
  }

  .tz-sheet a:active {
    color: var(--tz-turquoise);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tz-sheet-tab,
  .tz-sheet-grow,
  .tz-sheet-panel { transition: none; }
}

@media (max-width: 720px) {
  .tz-header, .tz-footer { align-items: flex-start; flex-direction: column; }
  .tz-nav { justify-content: flex-start; }
}

.tz-expr {
  width: min(52rem, calc(100vw - 2rem));
  margin: 1.5rem 0 2rem;
  margin-left: 50%;
  transform: translateX(-50%);
}

.tz-expr-stage {
  position: relative;
  background: var(--tz-night);
  border-radius: 1.25rem;
  min-height: 34rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tz-expr-sky {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  opacity: 0.55;
}

.tz-expr-rotor {
  position: relative;
  z-index: 1;
  width: min(24rem, 78%);
  aspect-ratio: 1;
  container-type: size;
}

.tz-expr-spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 16cqmin;
  margin-left: -0.5px;
  background: rgba(247, 244, 238, 0.45);
  transform-origin: top center;
  transform: rotate(var(--a)) translateY(18cqmin);
}

.tz-expr-seat {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tz-paper);
  cursor: pointer;
  font: inherit;
}

.tz-expr-seat img {
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.tz-expr-point {
  width: 5.4rem;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-38cqmin) rotate(calc(var(--a) * -1));
}

.tz-expr-point img {
  width: 2.35rem;
  height: 2.35rem;
}

.tz-expr-centre {
  width: 6.5rem;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.tz-expr-centre img {
  width: 4.6rem;
  height: 4.6rem;
}

.tz-expr-caption {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 5.4rem;
}

.tz-expr-seat:focus-visible {
  outline: 2px solid var(--tz-paper);
  outline-offset: 4px;
  border-radius: 0.4rem;
}

.tz-expr-panel {
  position: relative;
  margin-top: 1rem;
  background: #fff;
  color: var(--tz-charcoal);
  border-radius: 0.9rem;
  padding: 1rem 2.6rem 1.1rem 1.1rem;
}

.tz-expr-panel[hidden] {
  display: none;
}

.tz-expr-panel-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.tz-expr-panel-body {
  margin: 0;
}

.tz-expr-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.tz-expr-more {
  display: inline-block;
  margin-top: 0.75rem;
}

.tz-discussion {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .tz-expr-sky {
    animation: tz-drift 48s ease-in-out infinite alternate;
  }

  .tz-expr-centre {
    animation: tz-centre-in 900ms ease both;
  }

  .tz-expr-point {
    animation: tz-fade 612ms ease 288ms both;
  }

  .tz-expr-spoke {
    animation: tz-spoke-in 612ms ease 288ms both;
  }
}

@keyframes tz-centre-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes tz-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tz-spoke-in {
  from { transform: rotate(var(--a)) translateY(18cqmin) scaleY(0); }
  to { transform: rotate(var(--a)) translateY(18cqmin) scaleY(1); }
}

@media (max-width: 640px) {
  .tz-expr-stage { min-height: 26rem; }
  .tz-expr-caption { font-size: 0.65rem; }
}
