/* crypto frogs — pond field guide */

:root {
  --night: #0c100d;
  --bank: #1a1612;
  --mud: #3d2e22;
  --mud-wet: #2a2118;
  --algae: #3f5c44;
  --algae-bright: #5a7d5e;
  --lily: #4a6b4a;
  --water: #152820;
  --water-surface: #1e3830;
  --cream: #e6ddd0;
  --cream-dark: #cfc4b4;
  --ink: #141210;
  --text: #c8c0b4;
  --text-bright: #ebe4d8;
  --accent: #8fbc8f;
  --rust: #a67c52;

  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
  --pixel: 'Silkscreen', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

a:hover { color: var(--text-bright); }

.pixel,
.pixel-text {
  font-family: var(--pixel);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

/* film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── header ── */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  mix-blend-mode: difference;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-bright);
  text-decoration: none;
}

.mark img { border: 1px solid rgba(255,255,255,0.2); }

.mark-name {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.top-nav {
  display: flex;
  gap: 2rem;
}

.top-nav a {
  color: var(--text-bright);
  text-decoration: none;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

.top-nav a:hover { opacity: 0.6; }

.top-x { font-weight: 500; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-bright);
}

/* ── hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 7rem 2rem 0;
  background:
    radial-gradient(ellipse 70% 45% at 75% 15%, rgba(90, 125, 94, 0.12) 0%, transparent 55%),
    linear-gradient(175deg, var(--bank) 0%, var(--night) 35%, var(--water) 100%);
  overflow: hidden;
}

.hero-bg-num {
  position: absolute;
  top: 12%;
  right: -2%;
  font-family: var(--pixel);
  font-size: clamp(8rem, 22vw, 18rem);
  color: rgba(79, 107, 74, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.hero-stage {
  position: relative;
  height: 55vh;
  min-height: 320px;
}

.hero-specimen {
  position: absolute;
  margin: 0;
}

.hero-specimen .pad {
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(ellipse 55% 45% at 50% 55%, var(--lily) 0%, var(--algae) 55%, transparent 72%);
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}

.hero-specimen img {
  position: relative;
  z-index: 1;
}

.hero-specimen-a {
  bottom: 18%;
  left: 8%;
  transform: rotate(-4deg);
  animation: drift-a 7s ease-in-out infinite;
}

.hero-specimen-b {
  bottom: 42%;
  left: 38%;
  transform: rotate(3deg);
  animation: drift-b 8s ease-in-out infinite;
}

.hero-specimen-c {
  bottom: 8%;
  right: 5%;
  transform: rotate(6deg);
  animation: drift-c 6s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

@keyframes drift-b {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-8px); }
}

@keyframes drift-c {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-12px); }
}

.hero-copy {
  padding-bottom: 5rem;
  max-width: 480px;
  justify-self: end;
  padding-right: clamp(0rem, 4vw, 3rem);
}

.hero-kicker {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.hero-copy h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  line-height: 1.35;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.h1-line { display: block; }

.h1-accent {
  color: var(--accent);
}

.hero-lede {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 38ch;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.meta-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.meta-val {
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--text-bright);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.meta-val.pixel {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: border-color 0.15s, padding-left 0.2s;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.hero-cta:hover {
  border-color: var(--text-bright);
  padding-left: 6px;
  color: var(--text-bright);
}

.waterline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background:
    linear-gradient(180deg, transparent 0%, var(--water-surface) 40%, var(--water) 100%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,90 300,30 450,55 C600,80 750,40 900,65 C1050,90 1150,50 1200,70 L1200,120 L0,120Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
}

/* ── story ── */

.story {
  background: var(--water);
  padding: 6rem 2rem;
  border-top: 1px solid rgba(90, 125, 94, 0.15);
}

.story-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.pinned-frog {
  position: sticky;
  top: 6rem;
  text-align: center;
}

.pinned-frog img {
  margin: 0 auto;
  background: var(--mud);
  padding: 1rem;
  border: 1px solid var(--mud-wet);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.spec-label {
  margin-top: 0.75rem;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.story-body h2 {
  font-family: var(--pixel);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.story-body p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

.story-body em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}

.story-facts {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid rgba(143, 188, 143, 0.15);
  padding-top: 1.5rem;
}

.story-facts li {
  padding: 0.5rem 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.fact-key {
  display: inline-block;
  width: 4rem;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

/* ── gallery ── */

.gallery-block {
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(74, 107, 74, 0.08) 0%, transparent 50%),
    var(--mud-wet);
  padding: 5rem 2rem 6rem;
}

.gallery-head {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.gallery-head h2 {
  font-family: var(--pixel);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.gallery-head p {
  font-size: 13px;
  color: var(--text);
}

.gallery-pond {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-end;
}

.frog-tile {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.frog-tile .tile-pad {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--lily) 30%, var(--algae) 70%);
  border-radius: 50%;
  opacity: 0.45;
  z-index: 0;
}

.frog-tile img {
  position: relative;
  z-index: 1;
  background: transparent;
}

.frog-tile .tile-id {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--rust);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  z-index: 2;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.frog-tile:hover {
  z-index: 5;
}

.frog-tile:hover .tile-id { opacity: 1; }

/* ── apply ── */

.apply-block {
  background: var(--bank);
  padding: 6rem 2rem;
  border-top: 1px solid rgba(166, 124, 82, 0.2);
}

.apply-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.apply-intro h2 {
  font-family: var(--pixel);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.apply-intro > p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32ch;
}

.apply-ritual {
  list-style: none;
  counter-reset: none;
}

.apply-ritual li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ritual-n {
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--accent);
  min-width: 1.2rem;
}

.apply-mascot {
  margin-top: 2.5rem;
  opacity: 0.7;
  transform: rotate(-6deg);
}

.apply-paper {
  background: var(--cream);
  color: var(--ink);
  padding: 2rem 2rem 2.25rem;
  transform: rotate(1deg);
  box-shadow: 6px 8px 24px rgba(0,0,0,0.35);
  position: relative;
}

.apply-paper::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mud);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.paper-title {
  font-family: var(--pixel);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 0.75rem;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--mud);
}

.field span small {
  text-transform: lowercase;
  letter-spacing: 0;
  opacity: 0.6;
}

.field input {
  width: 100%;
  padding: 0.6rem 0.5rem;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  outline: none;
}

.field input:focus {
  border-bottom-color: var(--algae-bright);
}

.field input.err {
  border-bottom-color: #b54a4a;
}

.field-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 11px;
  font-style: normal;
  color: #b54a4a;
  min-height: 1em;
}

.checks {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12px;
  cursor: pointer;
  color: var(--mud);
}

.check input { display: none; }

.check i {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  position: relative;
}

.check input:checked + i::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--algae);
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.submit-btn:hover { background: var(--mud); }

.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.paper-done {
  text-align: center;
  padding: 1rem 0;
}

.paper-done img {
  margin: 0 auto 1rem;
}

.done-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.paper-done p { font-size: 12px; color: var(--mud); }

.paper-done a { color: var(--algae); }

/* ── footer ── */

.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(200, 192, 180, 0.4);
  background: var(--night);
  border-top: 1px solid rgba(255,255,255,0.04);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.foot a {
  color: rgba(200, 192, 180, 0.5);
  text-decoration: none;
}

.foot a:hover { color: var(--text-bright); }

/* ── viewer ── */

.viewer {
  border: none;
  padding: 0;
  max-width: none;
  max-height: none;
  background: rgba(12, 16, 13, 0.94);
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.viewer::backdrop {
  background: rgba(0,0,0,0.6);
}

.viewer[open] { display: flex; }

.viewer:not([open]) { display: none; }

.viewer img {
  max-width: min(85vw, 420px);
  max-height: 70vh;
  background: var(--mud);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.viewer-tag {
  margin-top: 1.25rem;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--rust);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.viewer-x {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.viewer-x:hover {
  border-color: var(--text-bright);
  color: var(--text-bright);
}

/* ── responsive ── */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
    min-height: auto;
  }

  .hero-stage {
    height: 280px;
    min-height: 0;
    order: -1;
  }

  .hero-copy {
    justify-self: start;
    padding: 2rem 0 4rem;
    max-width: none;
    padding-right: 0;
  }

  .hero-bg-num {
    top: 18%;
    right: -5%;
    font-size: 6rem;
  }

  .story-wrap,
  .apply-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pinned-frog {
    position: static;
    margin-bottom: 1rem;
  }

  .pinned-frog img {
    max-width: 140px;
  }

  .apply-paper {
    transform: none;
  }
}

@media (max-width: 600px) {
  .top-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 2rem 1.5rem;
    background: var(--night);
    mix-blend-mode: normal;
  }

  .top-nav.open { display: flex; }

  .menu-btn { display: flex; }

  .top { mix-blend-mode: normal; background: rgba(12,16,13,0.9); }

  .hero-specimen-a img { width: 110px; height: 110px; }
  .hero-specimen-b img { width: 90px; height: 90px; }
  .hero-specimen-c img { width: 80px; height: 80px; }

  .foot { flex-direction: column; gap: 0.75rem; }
}
