:root {
  --bg: #030305;
  --panel: rgba(12, 13, 16, 0.76);
  --text: #f1f3f7;
  --muted: #9ca3af;
  --dim: #69707d;
  --steel: #c8ced8;
  --ember: #ff6a28;
  --gold: #f4b860;
  --blue: #7a8cff;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 36px 140px rgba(0, 0, 0, 0.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 106, 40, 0.13), transparent 26rem),
    radial-gradient(circle at 84% 0%, rgba(122, 140, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #020203 0%, #07080b 52%, #030305 100%);
  overflow-x: hidden;
}

a { color: inherit; }

#smoke-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -5;
  background: transparent;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.ember {
  position: fixed;
  width: 42rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -4;
}
.ember-a { left: -18rem; top: 4rem; background: #ff6a28; animation: drift-a 24s ease-in-out infinite alternate; }
.ember-b { right: -18rem; bottom: -12rem; background: #7a8cff; animation: drift-b 28s ease-in-out infinite alternate; }

.shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 44px; }
.glass {
  background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #0b0b0d;
  background: linear-gradient(135deg, var(--steel), var(--ember));
  box-shadow: 0 0 28px rgba(255, 106, 40, 0.25);
}
.nav-links { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.nav-links a { position: relative; padding: 9px 10px; border-radius: 999px; text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.075); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: 760px;
  margin-top: 28px;
  padding: clamp(28px, 7vw, 76px);
  border-radius: 42px;
  overflow: hidden;
}
.hero::before, .projects::before, .support::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent, rgba(255,255,255,0.08), transparent 42%),
    radial-gradient(circle at 78% 36%, rgba(255, 106, 40, 0.15), transparent 28rem);
}
.hero-copy, .forge-panel, .support > *, .projects > * { position: relative; z-index: 2; }

.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.76rem; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}
h1, h2 {
  background: linear-gradient(90deg, #ffffff, #aeb7c8, #ff8a3d, #f4b860, #ffffff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  color: transparent;
  animation: steel-flow 11s linear infinite;
}
.hero-text { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.8; }
.hero-actions, .project-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  touch-action: manipulation;
}
.primary { color: #08090c; background: linear-gradient(90deg, #e8edf5, #f4b860, #ff6a28); background-size: 220% 100%; animation: steel-flow 7s linear infinite; }
.ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,0.055); }
.coffee { color: #08090c; background: linear-gradient(90deg, #f4b860, #ff6a28, #e8edf5); background-size: 220% 100%; animation: steel-flow 6s linear infinite; }

.forge-panel {
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 28px;
  min-height: 500px;
  border-radius: 34px;
  background:
    radial-gradient(circle at center, rgba(255,106,40,0.18), transparent 16rem),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.12);
}
.forge-core { position: relative; display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1; }
.core-ring { position: absolute; inset: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); }
.ring-a { animation: spin 18s linear infinite; border-top-color: var(--ember); }
.ring-b { inset: 14%; animation: spin-rev 13s linear infinite; border-right-color: var(--gold); }
.ring-c { inset: 28%; animation: spin 9s linear infinite; border-bottom-color: var(--steel); }
.core-letter {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  color: #08090c;
  font-size: 4rem;
  font-weight: 1000;
  background: linear-gradient(135deg, #f6f7fa, #f4b860, #ff6a28);
  box-shadow: 0 0 80px rgba(255,106,40,0.3);
}
.forge-readout {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  text-align: center;
}
.forge-readout strong { color: var(--text); font-size: 0.9rem; }

.section { margin-top: 24px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2, .manifesto h2, .support h2 { margin-bottom: 12px; font-size: clamp(2.3rem, 6vw, 5rem); line-height: 0.92; letter-spacing: -0.07em; text-transform: uppercase; }
.split { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.card-grid { display: grid; gap: 18px; }
.three { grid-template-columns: repeat(3, 1fr); }
.smoke-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  overflow: hidden;
}
.smoke-card::after { content: ""; position: absolute; inset: auto -20% -42% -20%; height: 120px; background: linear-gradient(90deg, transparent, rgba(255,106,40,0.35), rgba(244,184,96,0.18), transparent); filter: blur(34px); }
.number, .status-pill { display: inline-flex; margin-bottom: 20px; color: var(--gold); font-family: ui-monospace, "SFMono-Regular", monospace; font-weight: 950; }
.smoke-card h3 { font-size: 1.55rem; }
.smoke-card p, .project-feature p, .manifesto p, .support p { color: var(--muted); line-height: 1.75; }

.projects, .support, .manifesto { position: relative; padding: clamp(26px, 5vw, 54px); border-radius: 38px; overflow: hidden; }
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}
.project-feature h3 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 4rem); line-height: 0.95; letter-spacing: -0.06em; }
.project-feature img { width: min(100%, 320px); filter: grayscale(0.3) contrast(1.05) drop-shadow(0 0 32px rgba(255,106,40,0.16)); mix-blend-mode: screen; }
.small-link { color: var(--gold); text-decoration: none; font-weight: 900; }
.manifesto { background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)), radial-gradient(circle at 20% 0%, rgba(255,106,40,0.09), transparent 22rem); border: 1px solid var(--line); }
.support { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: center; }
.coffee-card { position: relative; z-index: 2; display: grid; place-items: center; gap: 6px; min-height: 180px; padding: 24px; border-radius: 28px; text-decoration: none; color: #08090c; background: linear-gradient(135deg, #f4b860, #ff6a28, #f6f7fa); background-size: 220% 100%; animation: steel-flow 7s linear infinite; }
.coffee-card span { font-size: 2.1rem; }
.coffee-card strong { font-size: 1.25rem; }
.coffee-card small { color: rgba(0,0,0,0.62); font-weight: 800; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 28px 4px 0; color: var(--dim); }

@keyframes steel-flow { to { background-position: 220% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes drift-a { to { transform: translate3d(12vw, 8vh, 0); } }
@keyframes drift-b { to { transform: translate3d(-10vw, -8vh, 0); } }

@media (max-width: 920px) {
  .shell { width: min(100% - 20px, 720px); padding-top: 10px; }
  .nav { position: relative; top: 0; align-items: flex-start; flex-direction: column; }
  .nav-links { flex-wrap: wrap; }
  .hero, .project-feature, .support { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 28px; border-radius: 32px; }
  .forge-panel { min-height: 360px; }
  .three { grid-template-columns: 1fr; }
  .split { align-items: flex-start; flex-direction: column; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
