/* Silicon Neuron — company site. Plain CSS, no build step, no scripts. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #07080b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eef0f4;
  --soft: #c9cfd9;
  --muted: #a9b1be;
  --dim: #7f8897;
  --green: #4ade80;
  --green-ink: #06140b;
  --gold: #e3b962;
  /* Guiding Neuron's own colours, for its card. */
  --paper: #f4ead6;
  --ink: #3b3327;
  --prose: #5c5240;
  --go: #2f7a4c;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { background: var(--bg); scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(74, 222, 128, 0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--green); color: var(--green-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

/* ── top bar ───────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.86), rgba(7, 8, 11, 0.6));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: 0.01em; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.72); flex: none; }
.brand-core { fill: var(--green); }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--text); white-space: nowrap; transition: border-color 0.15s, background 0.15s; }
.pill:hover { border-color: var(--green); background: rgba(74, 222, 128, 0.08); }

/* ── hero ──────────────────────────────────────────────── */
/* --px / --py run from -1 to 1 and say where the light is, relative to the
   Earth. space.js moves them with the pointer; these are the resting values. */
.hero {
  --px: -0.45; --py: -0.35;
  position: relative; overflow: hidden; min-height: min(100svh, 940px); display: flex; align-items: center;
  background: radial-gradient(70% 62% at 78% 46%, rgba(46, 86, 160, 0.17), transparent 70%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; }
.hero .stars::before { transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -6px), 0); }
.hero .stars::after { transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -14px), 0); }

.earth-wrap {
  position: absolute; top: 50%; right: clamp(20px, 4.5vw, 140px);
  width: clamp(280px, 35vw, 580px); aspect-ratio: 1;
  container-type: inline-size;
  transform: translate3d(calc(var(--px) * 10px), calc(-48% + var(--py) * 10px), 0);
}
/* The glow outside the disc leans toward the lit side. */
.earth {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate; background: #060a14;
  box-shadow: 0 0 60px rgba(64, 132, 255, 0.24);
  box-shadow: calc(var(--px) * 2.2cqw) calc(var(--py) * 2.2cqw) 9cqw rgba(64, 132, 255, 0.26), 0 0 2.2cqw rgba(150, 205, 255, 0.3);
}
/* Drawn a little larger than the disc so it can slide under it: the surface seems to turn. */
.earth-surface { position: absolute; left: -4%; top: -4%; width: 108%; height: 108%; max-width: none; transform: translate3d(calc(var(--px) * -2.4cqw), calc(var(--py) * -2.4cqw), 0); }
.earth-night {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 32% 36%, rgba(3, 6, 14, 0) 0 40%, rgba(3, 6, 14, 0.92) 100%);
  background: radial-gradient(circle 80cqw at calc(50% + var(--px) * 32%) calc(50% + var(--py) * 32%), rgba(3, 6, 14, 0) 0%, rgba(3, 6, 14, 0) 38%, rgba(3, 6, 14, 0.46) 60%, rgba(3, 6, 14, 0.9) 84%, rgba(3, 6, 14, 0.97) 100%);
}
.earth-glint {
  position: absolute; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at calc(50% + var(--px) * 30%) calc(50% + var(--py) * 30%), rgba(190, 225, 255, 0.2) 0%, rgba(190, 225, 255, 0) 34%);
}
.earth-air { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 24px rgba(110, 175, 255, 0.38); box-shadow: inset 0 0 5cqw rgba(110, 175, 255, 0.38), inset 0 0 1.4cqw rgba(170, 215, 255, 0.55); }

.hero-body { position: relative; z-index: 2; padding-block: 132px 96px; }

.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin: 0; font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); flex: none; }

h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.3rem, 6.4vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.022em;
  margin: 20px 0 24px; max-width: min(760px, 56vw);
  overflow-wrap: break-word;
}
h1 em {
  display: block; font-style: italic; padding-right: 0.08em;
  background: linear-gradient(100deg, #c6f7d6 0%, var(--green) 46%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { margin: 0; max-width: min(34rem, 52vw); font-size: clamp(1.08rem, 1.55vw, 1.3rem); line-height: 1.55; color: var(--soft); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn-primary { background: var(--green); color: var(--green-ink); box-shadow: 0 10px 34px -12px rgba(74, 222, 128, 0.6); }
.btn-primary:hover { background: #6ee7a0; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.06); }

/* ── sections ──────────────────────────────────────────── */
.section { padding-block: clamp(84px, 11vw, 150px); border-top: 1px solid var(--line); }
.label { margin: 0 0 20px; font-weight: 600; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.num { color: var(--green); margin-right: 10px; }

h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 28px; text-wrap: balance; }
h2.narrow { max-width: 20ch; }
h3 { margin: 0; }

.section p { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin: 0 0 18px; }
.section p.label { color: var(--dim); font-size: 12.5px; margin: 0 0 20px; }
.section p.goal { color: var(--text); border-left: 2px solid var(--green); padding-left: 18px; margin: 30px 0 0; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-art { margin: 0; }
/* No frame: the picture's own darkness fades into the page. */
.split-art img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 66% 66% at 46% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 66% 66% at 46% 46%, #000 52%, transparent 100%);
}

.rules { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rules li { border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 30px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); transition: border-color 0.2s, transform 0.2s; }
.rules li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rule-num { display: block; font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--gold); margin-bottom: 26px; }
.rules h3 { font: 600 1.18rem/1.3 var(--sans); color: var(--text); margin-bottom: 10px; }
.section .rules p { font-size: 1rem; margin: 0; }

/* ── products ──────────────────────────────────────────── */
/* Two wide cards, one under the other: words on the left, a picture on the right. */
.products { display: grid; gap: 22px; margin-top: 46px; }

.paper { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--paper); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95); }
.paper-text { padding: clamp(26px, 4vw, 46px); }
.paper-art { position: relative; margin: 0; min-height: 320px; }
.paper-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 38%; }
.paper-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gn-logo { height: 26px; width: auto; max-width: 68%; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--go); border: 1px solid rgba(47, 122, 76, 0.38); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--go); }
.paper-tag { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -0.01em; margin: 32px 0 12px; color: var(--ink); }
.section .paper p.paper-lede { color: var(--prose); font-size: 1.06rem; max-width: 38rem; margin: 0 0 22px; }
.paper-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.paper-list li { position: relative; padding-left: 22px; color: var(--prose); }
.paper-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--go); }
.paper-list strong { color: var(--ink); font-weight: 600; }
.btn-paper { background: var(--go); color: #fff; }
.btn-paper:hover { background: #276841; transform: translateY(-1px); }

/* The last card runs down close to the divider, so the section doesn't end on a
   band of empty space; the picture inside grows with the card. */
#products { padding-bottom: clamp(40px, 4.4vw, 60px); }
.next { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(340px, 34vw, 480px); border: 1px solid var(--line); border-radius: 22px; background: #050506; }
/* The whole picture at the card's height, never stretched across it (that
   blew the flower up and cut its petals off). Its edges fade into the card. */
.next-art {
  position: absolute; top: 0; bottom: 0; left: auto; right: clamp(16px, 6vw, 12%);
  height: 100%; width: auto; max-width: none;
  /* A pool of light around the flower, following the photo's own falloff. A
     straight left-to-right fade drew faint vertical stripes across the dark. */
  -webkit-mask-image: radial-gradient(ellipse 44% 92% at 56% 62%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 44% 92% at 56% 62%, #000 30%, transparent 100%);
}
/* Grain over the card: a fade through colours this dark has only a handful of
   steps to use, and they showed as faint vertical stripes beside the flower. */
.next::before { content: ""; position: absolute; inset: 0; z-index: 1; background: url("/img/grain.png"); pointer-events: none; }
.next-text { position: relative; z-index: 2; padding: clamp(26px, 4vw, 44px); max-width: min(31rem, 52%); }
.section .next p.next-label { margin: 0 0 16px; font-weight: 600; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.next h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; }
.section .next p { margin: 0; font-size: 1rem; }

/* ── contact ───────────────────────────────────────────── */
.contact {
  position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(96px, 13vw, 170px);
  background:
    radial-gradient(60% 90% at 84% 28%, rgba(46, 86, 160, 0.13), transparent 70%),
    radial-gradient(42% 60% at 10% 92%, rgba(74, 222, 128, 0.05), transparent 70%);
}
.contact .stars { opacity: 0.85; }
.contact-body { position: relative; }
.contact .label { color: var(--muted); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 14px; }
.contact-lede { margin: 0 0 20px; color: var(--soft); font-size: 1.1rem; }
.mail { font-family: var(--display); font-size: clamp(1.3rem, 3.4vw, 2.3rem); color: var(--text); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.22em; overflow-wrap: anywhere; transition: color 0.15s; }
.mail:hover { color: var(--green); }
address { font-style: normal; color: var(--muted); margin-top: 36px; font-size: 0.98rem; line-height: 1.6; }

/* ── footer ────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--dim); font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot p { margin: 0; }
.foot a { margin-left: auto; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── motion: the far stars breathe and the dot beats here; the light on the
   Earth is space.js. All of it stops under "reduce motion". ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .stars::after { animation: twinkle 7s ease-in-out infinite alternate; }
  .dot { animation: beat 2.8s ease-out infinite; }
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }

/* ── narrower screens ──────────────────────────────────── */
@media (max-width: 900px) {
  .split, .paper { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 14px; }
  .rule-num { margin-bottom: 16px; }
  /* Pictures move above the words. */
  .paper-art { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .paper-art img { object-position: 46% 30%; }
  /* The flower keeps the top of the card to itself; the words sit on plain dark below it. */
  .next { min-height: 440px; align-items: flex-end; }
  .next-art { inset: 0 0 auto 0; width: 100%; height: 60%; object-fit: cover; object-position: 62% 50%; -webkit-mask-image: none; mask-image: none; }
  .next::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #050506 0%, #050506 40%, rgba(5, 5, 6, 0) 60%); }
  .next-text { max-width: none; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 40px, 1180px); }
  .nav { display: none; }
  .pill { margin-left: auto; }
  .hero { align-items: flex-end; min-height: 100svh; background: radial-gradient(90% 46% at 50% 26%, rgba(46, 86, 160, 0.18), transparent 70%); }
  .earth-wrap { top: 96px; right: auto; left: 50%; width: min(74vw, 340px); transform: translate3d(calc(-50% + var(--px) * 6px), calc(var(--py) * 6px), 0); }
  .hero-body { padding-block: calc(min(74vw, 340px) + 132px) 60px; }
  h1, .lede { max-width: none; }
  .foot a { margin-left: 0; }
}
