@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-Variable.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

/* Colors are registered so palette changes ease instead of snapping. Where
   @property is unsupported the page still renders, it just switches instantly. */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #6fb6ef; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #8fe0d0; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #a9b8ff; }
@property --base { syntax: "<color>"; inherits: true; initial-value: #10202e; }
@property --x1 { syntax: "<percentage>"; inherits: true; initial-value: 25%; }
@property --y1 { syntax: "<percentage>"; inherits: true; initial-value: 18%; }
@property --x2 { syntax: "<percentage>"; inherits: true; initial-value: 85%; }
@property --y2 { syntax: "<percentage>"; inherits: true; initial-value: 55%; }
@property --x3 { syntax: "<percentage>"; inherits: true; initial-value: 15%; }
@property --y3 { syntax: "<percentage>"; inherits: true; initial-value: 80%; }

:root {
  --c1: #6fb6ef; --c2: #8fe0d0; --c3: #a9b8ff; --base: #10202e;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --lime: #c6f01a;
  --lime-ink: #10140a;
  --max: 1080px;
  transition: --c1 2.6s ease, --c2 2.6s ease, --c3 2.6s ease, --base 2.6s ease;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  background: transparent; position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #fff; }

/* Atmosphere: slow-drifting gradient + film grain, fixed behind everything */
.bg {
  position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 42% at var(--x1) var(--y1), var(--c1), transparent 70%),
    radial-gradient(60% 48% at var(--x2) var(--y2), var(--c2), transparent 72%),
    radial-gradient(60% 50% at var(--x3) var(--y3), var(--c3), transparent 72%),
    radial-gradient(90% 55% at 40% 108%, #03050a 15%, transparent 75%),
    var(--base);
  animation: drift 70s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { --x1: 25%; --y1: 18%; --x2: 85%; --y2: 55%; --x3: 15%; --y3: 80%; }
  50%  { --x1: 45%; --y1: 30%; --x2: 70%; --y2: 35%; --x3: 30%; --y3: 70%; }
  100% { --x1: 30%; --y1: 12%; --x2: 90%; --y2: 65%; --x3: 20%; --y3: 90%; }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px rgba(0,0,0,.18);
}

header.site { padding: 22px 0 8px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 26px; letter-spacing: 0.2em;
  color: #fff; text-decoration: none; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); display: block; }
nav.site { display: flex; gap: 6px; }
nav.site a {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
nav.site a:hover { background: rgba(255,255,255,.22); color: #fff; }

h1, h2, h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; margin: 0 0 12px; line-height: 1.05; }
h1 { font-size: clamp(46px, 8vw, 92px); font-weight: 400; letter-spacing: 0.02em; }
h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 500; letter-spacing: 0.05em; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: 0.05em; }

.hero { padding: 44px 0 56px; }
.hero .grid2 { display: grid; gap: 44px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 560px; margin: 16px 0 26px; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.pill.lime { background: var(--lime); color: var(--lime-ink); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Example drop card with the time ring */
.example { border-radius: 30px; padding: 26px 22px 22px; text-align: center; }
.example .lab { font-size: 11px; letter-spacing: .26em; opacity: .8; text-transform: uppercase; margin-bottom: 14px; font-family: "IBM Plex Mono", monospace; }
.ringbox { position: relative; width: 210px; height: 210px; margin: 0 auto; display: grid; place-items: center; }
.ringbox svg { position: absolute; inset: 0; overflow: visible; }
.ringbox .clk { font-family: "Oswald", sans-serif; font-weight: 300; font-size: 44px; letter-spacing: .03em; line-height: 1; }
.ringbox .sm { font-size: 10px; letter-spacing: .24em; opacity: .75; text-transform: uppercase; font-family: "IBM Plex Mono", monospace; margin-top: 6px; }
.example .nm { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; margin-top: 16px; }
.example .btn { margin-top: 16px; display: block; background: var(--lime); color: var(--lime-ink); border-radius: 16px; padding: 14px; font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

section.block { padding: 52px 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.card { border-radius: 24px; padding: 22px; }
.card h3 { color: #fff; }
.card .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--lime); letter-spacing: .1em; display: block; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.shots { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 26px; align-items: start; }
.shot { border-radius: 28px; padding: 8px; }
.shot img { width: 100%; height: auto; border-radius: 22px; }
.shot figcaption { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 8px 4px; color: var(--muted); }
figure { margin: 0; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

.note { max-width: 760px; border-radius: 24px; padding: 22px 24px; color: #fff; }

footer.site { padding: 36px 0 54px; color: var(--muted); font-size: 14px; }
footer.site .links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
footer.site .links a {
  font-family: "IBM Plex Mono", monospace; text-transform: uppercase; font-size: 12px; letter-spacing: .06em;
  color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
footer.site p { max-width: 760px; margin: 0 0 10px; }

/* Long-form pages: a darker glass backing keeps paragraphs readable on any palette */
.doc { max-width: 780px; margin: 22px auto 10px; padding: 34px 32px 36px; border-radius: 30px; background: rgba(8, 10, 14, .52);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(255,255,255,.22); }
.doc h1 { font-size: clamp(38px, 6vw, 60px); }
.doc h2 { font-size: 24px; margin-top: 34px; color: var(--lime); letter-spacing: .08em; }
.doc p, .doc li { color: #fff; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.doc .meta { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.doc details { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 14px 18px; margin: 12px 0; }
.doc summary { cursor: pointer; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 19px; letter-spacing: .05em; }
.doc details p { margin: 10px 0 0; color: var(--muted); }

@media (max-width: 820px) {
  .hero .grid2 { grid-template-columns: 1fr; gap: 30px; }
  .doc { margin: 14px 14px 6px; padding: 26px 20px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  header.site .wrap { flex-wrap: wrap; }
  .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
  :root { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(20, 24, 30, .88); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
