/* fionnleonard.com temp landing — cosmic teaser */
* { box-sizing: border-box; }
:root {
  --bg: #06070d;
  --ink: #e8ebf7;
  --dim: #9aa3c0;
  --faint: #596080;
  --accent: #b7c4ff;
  --ember: #ffb38a;
  --card: rgba(13, 16, 31, 0.72);
  --line: rgba(183, 196, 255, 0.16);
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 300; line-height: 1.6;
  min-height: 100svh; overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
body.no-webgl #sky { display: none; }
body.no-webgl { background:
  radial-gradient(ellipse 120% 70% at 70% -10%, #141a38 0%, transparent 55%),
  radial-gradient(ellipse 90% 60% at 10% 110%, #1a1030 0%, transparent 60%),
  var(--bg); }
#grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)} 80%{transform:translate(3%,3%)} }

main { position: relative; z-index: 2; max-width: 680px; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px 48px; min-height: 100svh;
  display: flex; flex-direction: column; }
.top { display: flex; justify-content: center; padding: 18px 0 0; }
.mark { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  color: var(--accent); border: 1px solid var(--line); border-radius: 999px;
  width: 52px; height: 52px; display: grid; place-items: center;
  letter-spacing: .08em; user-select: none;
  box-shadow: 0 0 24px rgba(183,196,255,.12), inset 0 0 14px rgba(183,196,255,.06); }

.hero { text-align: center; padding: 11vh 0 7vh; }
h1 { font-weight: 300; letter-spacing: .34em; text-indent: .34em;
  font-size: clamp(1.25rem, 4.6vw, 2rem); margin: 0 0 22px; color: var(--ink);
  text-shadow: 0 0 32px rgba(183,196,255,.25); }
.serif { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }
.line { font-size: clamp(1.15rem, 3.6vw, 1.5rem); color: var(--accent);
  margin: 0 auto 14px; max-width: 32ch; line-height: 1.45; }
.hint { color: var(--dim); font-size: .95rem; max-width: 46ch; margin: 0 auto; }
.nowrap { white-space: nowrap; }

.contact { background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 22px 20px; margin-top: auto;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.contact h2 { font-weight: 400; letter-spacing: .12em; font-size: 1rem;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.sub { color: var(--dim); font-size: .92rem; margin: 0 0 18px; }
form label { display: block; font-size: .85rem; color: var(--dim); margin: 0 0 12px; }
.opt { color: var(--faint); }
input, textarea { display: block; width: 100%; margin-top: 6px;
  background: rgba(5,6,12,.6); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px and 14px; padding: 12px 14px; font: inherit; font-size: 16px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183,196,255,.12); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
button { cursor: pointer; font: inherit; }
button[type=submit] { width: 100%; margin-top: 6px; padding: 13px 16px;
  background: linear-gradient(135deg, #2a3570, #4a3a7e); color: var(--ink);
  border: 1px solid rgba(183,196,255,.35); border-radius: 12px;
  letter-spacing: .06em; font-weight: 400; transition: transform .15s, box-shadow .2s; }
button[type=submit]:hover { transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74,58,126,.5); }
button[disabled] { opacity: .55; pointer-events: none; }
.linklike { background: none; border: none; color: var(--faint);
  text-decoration: underline; font-size: .85rem; margin-top: 10px; }
.coderow { display: flex; gap: 10px; }
.coderow input { letter-spacing: .5em; text-align: center; font-size: 1.3rem; margin: 0; flex: 1; }
.coderow button { width: auto; margin: 0; white-space: nowrap; }
#status { min-height: 1.4em; font-size: .88rem; color: var(--ember); margin: 10px 0 0; }
.done .serif { color: var(--accent); font-size: 1.25rem; margin: 6px 0; }
.hidden { display: none !important; }

footer { display: flex; justify-content: space-between; align-items: center;
  padding: 26px 4px 0; color: var(--faint); font-size: .8rem; }
.found { color: var(--ember); letter-spacing: .04em; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.secret { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center;
  background: rgba(4,5,10,.88); backdrop-filter: blur(6px); padding: 24px; text-align: center;
  animation: fadein .8s ease; }
@keyframes fadein { from { opacity: 0; } }
.constellation { width: min(62vw, 300px); margin-bottom: 8px; }
.constellation polyline { fill: none; stroke: var(--accent); stroke-width: 1;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s ease forwards; opacity: .8; }
.constellation polyline:nth-child(2) { animation-delay: .5s; }
.constellation polyline:nth-child(3) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stars-svg circle { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.secret-line { color: var(--accent); font-size: clamp(1.2rem, 4vw, 1.6rem); max-width: 30ch; margin: 10px auto 4px; }

@media (prefers-reduced-motion: reduce) {
  #grain, .found { animation: none; }
  .constellation polyline { animation-duration: .01s; stroke-dashoffset: 0; }
}
