/* ============================================================
   Silent Machines — "Sunrise over the Monolith"
   Cinematic dark theme after 2001: A Space Odyssey.
   Bodoni Moda (title cards) / IBM Plex Mono (machine voice) /
   Hanken Grotesk (body). Slab proportion 1 : 4 : 9.
   ============================================================ */

:root {
  --void:      #040507;
  --void-2:    #07090e;
  --panel:     #0a0d13;
  --ink:       #e9e7dd;
  --ink-soft:  #9c9b92;
  --ink-faint: #5c5e67;
  --rim:       #f6f1e6;
  --sun-core:  #fff8ee;
  --sun-warm:  #ffd9a0;
  --gold:      #d6b074;
  --line:      rgba(233, 231, 221, 0.10);
  --line-2:    rgba(233, 231, 221, 0.16);
  --maxw:      1040px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* starfield — individually animated stars (see .starfield markup in the hero) */
/* lives inside .cosmos: sits behind the sun/slab, and the opaque ground masks
   anything at or below the horizon, so no stars appear on the lunar surface */
.starfield {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 124vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  opacity: 0.2;
  animation: starTwinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.2); }
}
/* a supernova: one brilliant warm flare, then the star dies and vanishes for good */
.star.dying {
  animation: supernova 3.8s ease-in-out forwards;
}
@keyframes supernova {
  0%   { opacity: 0.9; transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6); }
  28%  { opacity: 1; transform: scale(4.2);
    box-shadow: 0 0 30px 8px rgba(255, 243, 222, 0.95), 0 0 74px 24px rgba(255, 206, 146, 0.42); }
  50%  { opacity: 0.75; transform: scale(2.6);
    box-shadow: 0 0 18px 5px rgba(255, 224, 180, 0.55); }
  100% { opacity: 0; transform: scale(0.12);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

a { color: inherit; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400;
}

/* ---------------- header ---------------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand .mark {
  width: 12px;
  height: 27px;            /* 4 : 9-ish slab */
  background: linear-gradient(95deg, #22252d 0%, #0c0e13 45%, #050608 100%);
  box-shadow:
    inset 1.5px 0 0 rgba(246, 241, 230, 0.9),   /* left specular edge */
    inset 0 1.5px 0 rgba(255, 248, 238, 0.75),  /* top rim light */
    0 0 12px rgba(255, 225, 170, 0.22);         /* faint warm glow */
  display: inline-block;
}
.brand .word {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { white-space: nowrap; }
.nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--rim); }

/* mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 50;
  width: 36px; height: 36px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle .bar {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.32s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle .bar:nth-child(1) { top: 14px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 40px 0 90px;
}

/* the cosmic stage */
.cosmos {
  position: relative;
  width: 100%;
  height: 420px;
  margin-bottom: 56px;
}

/* the sun cresting the slab */
.sun {
  position: absolute;
  bottom: 185px;           /* core crests just above the slab's top edge */
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%,
      var(--sun-core) 0%,
      var(--sun-core) 7%,
      var(--sun-warm) 13%,
      rgba(255, 200, 130, 0.42) 24%,
      rgba(255, 170, 90, 0.16) 40%,
      rgba(255, 150, 70, 0.05) 58%,
      transparent 72%);
  filter: blur(0.4px);
  animation: dawn 2.4s var(--ease) both, breathe 11s ease-in-out 2.4s infinite;
}

/* the lunar surface — smooth terminator (option A) */
.horizon-ground {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 124vw;
  height: 175px;
  z-index: 4;              /* in front of the slab so its base plants into the surface */
  background: linear-gradient(180deg, #20232b 0%, #0d0f14 34%, var(--void) 100%);
  border-radius: 50% 50% 0 0 / 92px 92px 0 0;
  box-shadow:
    inset 0 2px 0 rgba(246, 241, 230, 0.5),   /* sun-lit upper edge */
    0 -14px 40px rgba(255, 225, 170, 0.06);   /* faint warm bounce */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  animation: groundRise 1.7s var(--ease) 0.5s both;
}

/* the monolith */
.slab {
  position: absolute;
  left: 50%;
  bottom: 156px;           /* base plants ~19px into the horizon crest */
  transform: translateX(-50%);
  z-index: 3;
  width: 84px;
  height: 189px;           /* exactly 4 : 9 */
  background: linear-gradient(95deg, #16181e 0%, #090b10 8%, #030406 70%, #000 100%);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0,0,0,0.6);
  animation: riseSlab 1.6s var(--ease) 0.3s both;
}
/* top rim light — sun wrapping the edge */
.slab::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rim) 18%, #fff 50%, var(--rim) 82%, transparent);
  box-shadow: 0 -2px 16px rgba(255, 248, 238, 0.6);
}
/* left vertical specular edge */
.slab::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1.5px; height: 100%;
  background: linear-gradient(180deg, rgba(246,241,230,0.8), rgba(246,241,230,0.15));
}

@keyframes riseSlab { from { opacity: 0; transform: translate(-50%, 26px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes groundRise { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes dawn { from { opacity: 0; transform: translateX(-50%) scale(0.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes breathe {
  0%, 100% { filter: blur(0.3px) brightness(1);    transform: translateX(-50%) scale(1); }
  50%      { filter: blur(0.3px) brightness(1.18); transform: translateX(-50%) scale(1.035); }
}

/* hero copy */
.hero-copy { max-width: 720px; width: 100%; margin: 0 auto; animation: fadeUp 1.1s var(--ease) 0.9s both; }
.hero h1 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(36px, 6.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 100%;
  margin: 0 auto;
}
.hero h1 em { font-style: italic; font-weight: 500; }
.hero .lede {
  font-family: var(--sans);
  margin: 30px auto 0;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.scroll-arrow {
  margin-top: 52px;
  display: inline-flex;
  color: var(--ink-faint);
  transition: color 0.25s var(--ease);
  animation: fadeUp 1.1s var(--ease) 1.4s both, bob 2.8s ease-in-out 2.8s infinite;
}
.scroll-arrow:hover { color: var(--ink); }
.scroll-arrow svg { width: 26px; height: 26px; display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------------- sections ---------------- */
section.block {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  background: var(--void);
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); opacity: 0.7; }

.block h2 {
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 30px;
  max-width: 18ch;
}

/* two-column editorial split: statement on the left, body on the (wider) right */
.split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}
.split h2 { margin-bottom: 0; max-width: 14ch; }

.prose p { max-width: 62ch; color: var(--ink-soft); margin-bottom: 22px; font-size: 18px; line-height: 1.72; text-align: justify; -webkit-hyphens: none; hyphens: none; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .pull { color: var(--ink); }

/* ---------------- product card ---------------- */
.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px 56px;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  padding: 44px 42px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.product-body p { margin: 0; }
.product::after {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 217, 160, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.product:hover { transform: translateY(-4px); border-color: rgba(214,176,116,0.4); }
.product:hover::after { opacity: 1; }
.product .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.product h3 {
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.product h3 .arrow { font-family: var(--sans); font-size: 24px; color: var(--gold); transition: transform 0.35s var(--ease); }
.product:hover h3 .arrow { transform: translateX(6px); }
.product p { color: var(--ink-soft); max-width: 60ch; font-size: 17px; text-align: justify; -webkit-hyphens: none; hyphens: none; }
.product .url { margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--gold); letter-spacing: 0.04em; }

/* collapse the two-column splits before the columns get cramped */
@media (max-width: 820px) {
  .split, .product { grid-template-columns: 1fr; gap: 26px; }
  .split h2 { max-width: 18ch; margin-bottom: 4px; }
}

/* ---------------- about ---------------- */
.about-hero { padding: 86px 0 64px; }
.about-hero h1 {
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -0.01em;
  line-height: 1.06;
  max-width: 20ch;
}
.about-hero h1 em { font-style: italic; }
.founder-name { font-family: "Bodoni Moda", serif; font-weight: 500; font-size: 26px; margin-bottom: 4px; }
.founder-role {
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.contact-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease);
}
.contact-link:hover { color: var(--gold); }

/* social icon links */
.socials { display: inline-flex; align-items: center; gap: 20px; }
.socials a {
  display: inline-flex;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover { color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 21px; height: 21px; display: block; fill: currentColor; }
.contact-row { margin-top: 6px; }
.site-foot .socials { margin-top: 12px; gap: 16px; }
.site-foot .socials svg { width: 17px; height: 17px; }

/* ---------------- footer ---------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 58px 0 70px;
  color: var(--ink-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  background: var(--void);
}
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.foot-brand {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-size: 12.5px;
  margin-bottom: 8px;
}
.site-foot address { font-style: normal; }
.site-foot a { color: var(--ink-faint); text-decoration: none; transition: color 0.2s var(--ease); }
.site-foot a:hover { color: var(--gold); }
.ratio { letter-spacing: 0.4em; opacity: 0.55; align-self: flex-end; }

/* ---------------- responsive ---------------- */
@media (max-width: 680px) {
  .hero { min-height: 70vh; padding: 24px 0 70px; }
  .cosmos { height: 330px; margin-bottom: 44px; }
  .sun { width: 240px; height: 240px; bottom: 138px; }
  .slab { width: 64px; height: 144px; bottom: 114px; }
  .horizon-ground { height: 132px; border-radius: 50% 50% 0 0 / 70px 70px 0 0; }
  .wrap { padding: 0 22px; }
  .site-head { padding: 22px 0; }
  .brand .word { font-size: 12px; letter-spacing: 0.2em; }
  section.block { padding: 64px 0; }

  /* hamburger + full-screen overlay nav */
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    background: rgba(4, 5, 7, 0.975);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
  }
  .nav a {
    font-size: 19px;
    letter-spacing: 0.1em;
    color: var(--ink);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav-toggle .bar { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .star, .sun, .slab, .horizon-ground, .hero-copy, .scroll-arrow { animation: none !important; }
  .star { opacity: 0.5; }
}
