/* Zeoria — site styles. Black and white only. */

@font-face {
  font-family: "Manrope";
  src: url("manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --muted: #BDBDBD;
  --soft: #CFCFCF;
  --rule: #3A3A3A;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html { background: var(--ink); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--paper); }
a:hover { color: var(--muted); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand span { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  font-family: var(--mono);
  font-size: 15px;
}
.nav a { padding: 12px 0; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 600px) {
  .nav { gap: 4px 18px; font-size: 14px; }
}

main { flex: 1; display: flex; flex-direction: column; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding-top: 24px;
  padding-bottom: 32px;
  font-family: var(--mono);
  font-size: 13px;
}
/* Rule lines up with the content edges, not the padded box. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 600px) {
  .site-footer::before { left: 20px; right: 20px; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Home */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 80px;
}
.home h1 {
  margin: 40px 0 0;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.home p { margin: 20px 0 0; font-family: var(--mono); font-size: 16px; line-height: 1.6; }

/* The bulb: hover pulls the screw down; leaving (or a click/tap) fires it into the coin. */
.zeoria-bulb {
  width: 300px;
  max-width: 70%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zeoria-bulb:focus-visible { outline-offset: 12px; }
.zeoria-coin { display: block; width: 100%; perspective: 1000px; }
.zeoria-glass, .zeoria-base { display: block; width: 100%; height: auto; }
.zeoria-base { transition: transform .9s cubic-bezier(.2, .7, .3, 1); }
.zeoria-bulb.is-pull .zeoria-base { transform: translateY(24%); }
.zeoria-bulb.is-launch .zeoria-base { animation: zeoria-screw-launch 1.5s both; }
.zeoria-bulb.is-launch .zeoria-coin { animation: zeoria-coin-fly 1.5s both; }
.zeoria-bulb.is-launch .zeoria-glass { animation: zeoria-coin-spin 1.5s linear both; }

@keyframes zeoria-screw-launch {
  0%   { transform: translateY(24%);    animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  9%   { transform: translateY(-22.7%); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  30%  { transform: translateY(-32%);   animation-timing-function: linear; }
  70%  { transform: translateY(-35%);   animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  76%  { transform: translateY(4.5%);   animation-timing-function: ease-in-out; }
  86%  { transform: translateY(-1.5%);  animation-timing-function: ease-in-out; }
  100% { transform: translateY(0); }
}
@keyframes zeoria-coin-fly {
  0%, 9% { transform: translateY(0);     animation-timing-function: cubic-bezier(.15, .6, .35, 1); }
  40%    { transform: translateY(-34%);  animation-timing-function: cubic-bezier(.65, 0, .85, .35); }
  70%    { transform: translateY(-3.4%); animation-timing-function: ease-out; }
  78%    { transform: translateY(.85%);  animation-timing-function: ease-in-out; }
  88%    { transform: translateY(-.4%);  animation-timing-function: ease-in-out; }
  100%   { transform: translateY(0); }
}
@keyframes zeoria-coin-spin {
  0%, 9%    { transform: rotateY(0deg); }
  70%, 100% { transform: rotateY(720deg); }
}

/* Projects */
.projects { padding-top: 56px; padding-bottom: 96px; }
.page-title {
  margin: 0;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.project-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 32px;
}
.project { border: 2px solid var(--paper); display: flex; flex-direction: column; }
.project-art {
  height: 240px;
  padding: 16px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-art svg { max-width: 100%; height: auto; }
.project-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tag {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1.5px solid var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project h2 { margin: 6px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.project p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--soft); }

/* Events */
.events {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.events h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.soon { font-family: var(--mono); font-size: 18px; }
.cursor { animation: zeoria-blink 1.1s steps(1) infinite; }
@keyframes zeoria-blink { 50% { opacity: 0; } }
.button {
  margin-top: 24px;
  display: inline-block;
  padding: 15px 26px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.button:hover { background: #E6E6E6; color: var(--ink); }
.note { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Contact */
.button-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper);
  padding: 13.5px 24.5px;
}
.button-outline:hover { background: var(--paper); color: var(--ink); }
.contact { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.contact .button, .cta .button { margin-top: 0; }
.cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.cta p { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) {
  .zeoria-base { transition: none; }
  .zeoria-bulb.is-pull .zeoria-base { transform: none; }
  .zeoria-bulb.is-launch .zeoria-base,
  .zeoria-bulb.is-launch .zeoria-coin,
  .zeoria-bulb.is-launch .zeoria-glass,
  .cursor { animation: none; }
}
