/* =========================================================================
   SynamicD — temporary holding page
   Direction: editorial, warm-charcoal canvas, single crimson accent drawn
   from the logo's ring. The X emblem reads as a surveyor's mark — something
   is being built on this spot.
   ========================================================================= */

:root {
  /* Near-black with the faintest warm tint — never pure #000. */
  --ink-900: oklch(0.09 0.008 30);   /* page base            */
  --ink-850: oklch(0.13 0.010 30);   /* lifted base          */
  --ink-700: oklch(0.26 0.012 30);   /* hairlines            */
  --paper:   oklch(0.94 0.012 70);   /* primary text         */
  --paper-dim: oklch(0.74 0.012 50); /* secondary text       */
  --paper-faint: oklch(0.52 0.012 40);/* tertiary text        */

  /* Crimson pulled from the brushed ring in the mark. */
  --crimson: oklch(0.58 0.205 25);
  --crimson-bright: oklch(0.66 0.21 28);

  --measure: min(92vw, 60rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

/* ---- Ambient layers ----------------------------------------------------- */

/* Slow off-center glow, like a worklight over the build site. */
.aura {
  position: fixed;
  inset: -20% -10% auto -25%;
  height: 75vh;
  z-index: -2;
  background:
    radial-gradient(72% 64% at 32% 12%,
      oklch(0.23 0.07 28 / 0.025) 0%,
      transparent 72%);
  filter: blur(18px);
  animation: drift 26s var(--ease-out-expo) infinite alternate;
}

/* Fine film grain so the flat dark never looks like a default canvas. */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Faint blueprint baseline that anchors the type to a "drawing". */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--ink-700) 12%, var(--ink-700) 88%, transparent);
}

/* ---- Layout ------------------------------------------------------------- */

.stage {
  width: var(--measure);
  margin-inline: auto;
  min-height: 100svh;
  padding-block: clamp(2.5rem, 6vh, 5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2.5rem, 7vh, 5rem);
}

/* ---- Brand -------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  width: clamp(2.4rem, 2rem + 1.6vw, 3.1rem);
  height: auto;
  /* the faintest lift so the white arrows read crisply — no red halo */
  filter: drop-shadow(0 1px 3px oklch(0.58 0.205 25 / 0.12));
}

.brand__lockup {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand__word {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--paper);
}

.brand__tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.brand__word em {
  font-style: normal;
  color: inherit;
}

/* ---- Lede --------------------------------------------------------------- */

.lede {
  align-self: center;
  max-width: none;
}

.headline {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 1.5rem + 4.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

.headline__line {
  display: block;
}

.headline__line--accent {
  font-weight: 600;
  color: var(--crimson);
}

/* ---- Meta / footer ------------------------------------------------------ */

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--paper-faint);
}

.copyright {
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---- Animation ---------------------------------------------------------- */

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}

/* Orchestrated page load: staggered, downward settle. */
[data-reveal] {
  opacity: 0;
  transform: translateY(0.9rem);
  animation: reveal 0.9s var(--ease-out-expo) forwards;
}

.brand[data-reveal]                 { animation-delay: 0.05s; }
.headline__line[data-reveal]:nth-of-type(1) { animation-delay: 0.22s; }
.headline__line[data-reveal]:nth-of-type(2) { animation-delay: 0.34s; }
.meta[data-reveal]                  { animation-delay: 0.5s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 32rem) {
  .stage { gap: clamp(2rem, 6vh, 3rem); }
  .lede { max-width: none; }
  .meta { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* ---- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .aura { animation: none; }
  [data-reveal] { opacity: 1; transform: none; animation: none; }
}
