:root {
  --bg: #050806;
  --panel: rgba(10, 20, 14, .88);
  --green: #9cffb7;
  --green-bright: #c6ffd3;
  --muted: #718277;
  --line: rgba(156, 255, 183, .18);
  --red: #e34c4c;
  --cream: #e8eadf;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, rgba(25, 68, 40, .23), transparent 35%),
    linear-gradient(135deg, #030504 0%, #07100b 52%, #020403 100%);
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    #fff 4px
  );
  z-index: 5;
}

.noise {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise .25s steps(2) infinite;
  z-index: 4;
}

@keyframes noise {
  0% { transform: translate(0,0); }
  25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-2%, -1%); }
}

.shell {
  width: min(1100px, calc(100% - 36px));
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

.status { color: var(--green); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  50% { opacity: .25; }
}

.hero, .success-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 70px;
  max-width: 850px;
  margin: auto;
  width: 100%;
  position: relative;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .25em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cream);
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 span { color: var(--green); }

.intro {
  max-width: 650px;
  margin: 28px 0 42px;
  color: #aab5ad;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.stamp {
  position: absolute;
  right: 0;
  top: 90px;
  transform: rotate(9deg);
  border: 3px solid var(--red);
  color: var(--red);
  padding: 10px 14px;
  text-align: center;
  font-size: 19px;
  line-height: .9;
  font-weight: bold;
  letter-spacing: .08em;
  opacity: .8;
}

.classified-card, .dossier {
  background: linear-gradient(145deg, rgba(16, 31, 21, .95), rgba(5, 12, 8, .92));
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.025);
}

.classified-card {
  padding: 30px;
  position: relative;
}

.card-label, .dossier-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.card-label span { color: var(--green); }

.cipher {
  padding: 30px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: clamp(25px, 5vw, 43px);
  letter-spacing: .06em;
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(156,255,183,.18);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 28px;
}

form label {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  color: #b7c3ba;
  margin-bottom: 9px;
}

.answer-row {
  display: flex;
  gap: 10px;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(156,255,183,.28);
  background: #030705;
  color: var(--green-bright);
  padding: 16px 17px;
  font: inherit;
  letter-spacing: .1em;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(156,255,183,.08);
}

button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #061009;
  padding: 0 22px;
  font: inherit;
  font-weight: bold;
  letter-spacing: .08em;
  cursor: pointer;
  transition: .2s ease;
}

button:hover {
  background: var(--green-bright);
  box-shadow: 0 0 28px rgba(156,255,183,.2);
  transform: translateY(-1px);
}

button span { font-size: 18px; margin-left: 6px; }

.feedback {
  min-height: 18px;
  margin: 13px 0 0;
  font-size: 11px;
  color: var(--red);
  letter-spacing: .04em;
}

.feedback.success { color: var(--green); }

.microcopy {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: #46544b;
  font-size: 9px;
  letter-spacing: .14em;
}

footer {
  border-top: 1px solid var(--line);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #435047;
  font-size: 9px;
  letter-spacing: .13em;
}

body.accessing .shell {
  animation: shutdown .8s forwards;
}

@keyframes shutdown {
  0% { opacity: 1; filter: none; }
  70% { opacity: .2; filter: brightness(2); }
  100% { opacity: 0; transform: scaleY(.01); filter: brightness(4); }
}

/* Success page */
.success-hero {
  text-align: center;
  align-items: center;
  max-width: 850px;
}

.access-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  margin-bottom: 22px;
  box-shadow: 0 0 30px rgba(156,255,183,.12);
  animation: appear .7s ease both;
}

@keyframes appear {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: scale(1); }
}

.success-hero .intro {
  margin: 25px auto 40px;
}

.dossier {
  width: 100%;
  text-align: left;
  padding: 28px;
  position: relative;
  overflow: hidden;
  color: #d9ddd8;
}

.dossier-top {
  color: #69756d;
}

.redacted-line {
  height: 7px;
  width: 46%;
  background: #101611;
  margin: 26px 0;
}

.small-title {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .15em;
}

.small-title strong { color: var(--red); }

.dossier h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(30px, 5vw, 48px);
  margin: 16px 0 32px;
}

.joke {
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1.9;
  color: #b7c0b9;
}

.joke .pause {
  display: inline-block;
  margin-top: 8px;
  color: var(--cream);
  font-weight: bold;
}

.reveal {
  border-left: 2px solid var(--red);
  margin-top: 30px;
  padding: 4px 0 5px 22px;
}

.reveal > span {
  color: var(--red);
  font-size: 10px;
  letter-spacing: .2em;
}

.reveal p {
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  margin: 10px 0;
}

.reveal strong { color: var(--green); }

.reveal .punchline {
  font-size: 23px;
  color: var(--cream);
  margin-top: 18px;
}

.reveal .serious {
  color: var(--muted);
  font-size: 12px;
  font-family: "Courier New", monospace;
  letter-spacing: .05em;
  margin-top: 24px;
}

.dossier-stamp {
  position: absolute;
  right: 25px;
  bottom: 20px;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 8px 12px;
  transform: rotate(-8deg);
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .75;
}

.back-link {
  margin-top: 30px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .16em;
  transition: color .2s;
}

.back-link:hover { color: var(--green); }

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1100px); }
  .topbar { min-height: 60px; }
  .classification { display: none; }
  .hero, .success-hero { padding: 65px 0 45px; }
  .stamp { position: relative; top: auto; right: auto; align-self: flex-end; margin-bottom: 25px; }
  .intro { font-size: 15px; }
  .classified-card, .dossier { padding: 21px; }
  .answer-row { flex-direction: column; }
  button { min-height: 52px; }
  footer { padding: 16px 0; align-items: flex-start; flex-direction: column; gap: 7px; }
  .microcopy { flex-direction: column; gap: 6px; }
  .dossier-stamp { position: relative; display: inline-block; right: auto; bottom: auto; margin-top: 25px; }
}

.shake { animation: shake .3s ease; }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}


/* Contact form */
.contact-panel {
  width: 100%;
  margin: 28px 0 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(156, 255, 183, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 29, 19, .98), rgba(5, 12, 8, .96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.035);
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--green);
  opacity: .8;
}
.contact-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.contact-panel .eyebrow { margin-bottom: 12px; }
.contact-panel h2 {
  margin: 0;
  color: var(--cream);
  font: 400 clamp(27px, 4vw, 39px)/1.12 Georgia, "Times New Roman", serif;
}
.contact-intro {
  max-width: 620px;
  margin: 12px 0 0;
  color: #aab5ad;
  font: 15px/1.65 Arial, sans-serif;
}
.contact-seal {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(156,255,183,.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .13em;
  transform: rotate(8deg);
}
.contact-seal strong { color: var(--green); font-size: 30px; line-height: 1; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 26px;
}
.contact-field { min-width: 0; }
.contact-form label {
  display: block;
  margin: 0 0 8px;
  color: #c1cec4;
  font-size: 10px;
  letter-spacing: .16em;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border: 1px solid rgba(156,255,183,.23);
  border-radius: 4px;
  background: rgba(2, 7, 4, .82);
  color: var(--green-bright);
  font: 16px/1.5 Arial, sans-serif;
  letter-spacing: normal;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #65766a; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: none;
  background: #030906;
  box-shadow: 0 0 0 3px rgba(156,255,183,.1);
}
.contact-field-message { grid-column: 1 / -1; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}
.contact-note {
  margin: 0;
  color: #829187;
  font: 12px/1.5 Arial, sans-serif;
}
.contact-lock { color: var(--green); margin-right: 7px; }
.contact-form button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 4px;
  white-space: nowrap;
}
.contact-form button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.noise {
  animation: none;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 600px) {
  .contact-heading-row { align-items: flex-start; }
  .contact-seal { display: none; }
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-field-message, .contact-submit-row { grid-column: auto; }
  .contact-submit-row { align-items: stretch; flex-direction: column; }
  .contact-form button { width: 100%; }
}
