/* ============================================================
   Ravenworks Ventures — shared styles
   Deep-ink ground, drifting fog, a single crystalline feather.
   Restraint is the brief: atmosphere, never spectacle.
   ============================================================ */

:root {
  --ink:       #0C0E13; /* raven-feather blue-black ground */
  --ink-deep:  #07080B; /* the dark the edges fall into */
  --bone:      #E9E6DF; /* restrained warm off-white */
  --bone-dim:  #C9C6BF; /* supporting line */
  --slate:     #94A1B2; /* desaturated slate-blue accent */
  --slate-dim: #7C8AA3; /* a colder slate */
  --muted:     #78828F; /* footer */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 1.5rem;
  position: relative;
  overflow-x: hidden;
  /* Deep ink ground: a faint iridescent lift toward centre, then a
     vignette letting the edges fall away into the dark. */
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 50% 38%, #141824 0%, #0C0E13 60%, #080A0E 100%),
    radial-gradient(100% 100% at 50% 46%, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Atmosphere: drifting fog + a breath of film grain ----
   Two fixed, non-interactive layers behind everything. The fog is a
   handful of very low-opacity slate glows that never quite resolve;
   the grain keeps the gradients from banding and adds a little haze. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25%;              /* overscan so the slow drift never shows an edge */
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(34% 30% at 22% 28%, rgba(124, 138, 163, 0.11), transparent 70%),
    radial-gradient(42% 38% at 80% 70%, rgba(86, 100, 128, 0.10), transparent 72%),
    radial-gradient(46% 42% at 62% 14%, rgba(66, 78, 104, 0.08), transparent 75%);
  mix-blend-mode: screen;
}

body::after {
  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");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   The split feather — organic vane + crystalline half
   ============================================================ */
.feather-wrap {
  position: relative;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  perspective: 620px; /* so the cursor-lean reads as depth, not a flat spin */
}

/* a soft luminous halo, as if the mark is catching light in the dark */
.feather-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: clamp(150px, 26vw, 200px);
  height: clamp(150px, 26vw, 200px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(148, 161, 178, 0.20), transparent 66%);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.feather {
  display: block;
  width: clamp(40px, 7vw, 54px);
  height: auto;
  opacity: 0.96;
  transform-origin: 50% 46%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.25, 1);
  will-change: transform;
}

/* Light glint travelling across the facets — hidden until animated */
.feather .glint { opacity: 0; }

/* ---- Eyebrow ---- */
.eyebrow {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.1rem);
  font-family: var(--sans);
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  text-indent: 0.36em;
  color: var(--slate);
}

/* ---- Wordmark ---- */
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 10.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: var(--bone);
}

.wordmark .v {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ---- Supporting + model lines ---- */
.supporting,
.model {
  margin: clamp(1.4rem, 3.4vw, 2rem) auto 0;
  max-width: 30rem;
  font-family: var(--sans);
  font-size: clamp(0.92rem, 2.2vw, 1.06rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--bone-dim);
}

.model {
  margin-top: clamp(1.1rem, 2.6vw, 1.5rem);
  max-width: 31rem;
}

/* ---- Capability row ---- */
.capabilities {
  margin: clamp(1.4rem, 3.2vw, 1.9rem) auto 0;
  padding: 0;
  max-width: 34rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5em 0;
  font-family: var(--sans);
  font-size: clamp(0.64rem, 1.5vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.capabilities li { list-style: none; white-space: nowrap; }

.capabilities li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.85em;
  vertical-align: middle;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ---- Invitation ---- */
.invite {
  margin: clamp(1.8rem, 4vw, 2.4rem) auto 0;
  max-width: 29rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.003em;
  color: var(--bone);
}

/* ---- Contact ---- */
.contact {
  margin: clamp(1.5rem, 3.5vw, 2rem) 0 0;
  font-family: var(--sans);
  font-size: clamp(0.9rem, 2.1vw, 1rem);
  letter-spacing: 0.02em;
}

.contact a {
  color: var(--bone);
  text-decoration: none;
  padding: 0.35em 0.1em;
  border-bottom: 1px solid rgba(148, 161, 178, 0.4);
  transition: border-color 0.35s ease, color 0.35s ease;
}

.contact a:hover { border-bottom-color: var(--slate); color: #FFFFFF; }

.contact a:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 4px;
  border-radius: 2px;
  border-bottom-color: transparent;
}

/* ---- Footer + the quiet way to the workshop ---- */
.footer {
  margin: clamp(2.2rem, 6vw, 3.6rem) 0 0;
  font-family: var(--sans);
  font-size: clamp(0.66rem, 1.7vw, 0.74rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95em;
}

/* half-hidden in the smoke; lifts when you find it */
.about-link {
  font-size: inherit;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.5s ease, color 0.5s ease, letter-spacing 0.5s ease;
}

.about-link:hover,
.about-link:focus-visible {
  opacity: 1;
  color: var(--bone-dim);
  letter-spacing: 0.22em;
}

.about-link:focus-visible {
  outline: 1px solid rgba(148, 161, 178, 0.5);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ============================================================
   About page
   ============================================================ */
.about-main { max-width: 40rem; }

.mark-home { display: inline-block; line-height: 0; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.feather--sm { width: 34px; }

.about-title {
  margin: 0.1rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--bone);
}

.about-lede {
  margin: clamp(1.2rem, 3vw, 1.6rem) auto 0;
  max-width: 32rem;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.62;
  color: var(--bone-dim);
}

.people {
  margin: clamp(2.4rem, 6vw, 3.6rem) 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 2.8rem);
}

.person-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--bone);
}

.person-role {
  margin: 0.5em 0 0;
  font-family: var(--sans);
  font-size: clamp(0.6rem, 1.5vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
}

.person-bio {
  margin: clamp(0.7rem, 2vw, 0.95rem) auto 0;
  max-width: 33rem;
  font-family: var(--sans);
  font-size: clamp(0.92rem, 2.1vw, 1.02rem);
  line-height: 1.62;
  color: var(--bone-dim);
}

.record {
  margin: clamp(2.4rem, 6vw, 3.4rem) auto 0;
  max-width: 32rem;
  padding-top: clamp(1.6rem, 4vw, 2.2rem);
  border-top: 1px solid rgba(148, 161, 178, 0.14);
}

.record-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--bone);
}

.about-footer {
  margin: clamp(2.6rem, 7vw, 4rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
}

.back {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 1.7vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.35s ease;
}

.back:hover,
.back:focus-visible { color: var(--bone); }

.about-copy {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.66rem, 1.7vw, 0.74rem);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============================================================
   Motion — all opt-in, all slow. Nothing here is load-blocking,
   and everything reads as complete with motion disabled.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* one orchestrated page-load moment */
  .settle {
    opacity: 0;
    transform: translateY(10px);
    animation: settle 1.1s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
  }

  /* home (hero) sequence */
  .feather-wrap.settle { animation-delay: 0.15s; transform: translateY(6px); }
  .eyebrow.settle      { animation-delay: 0.5s; }
  .wordmark.settle     { animation-delay: 0.66s; }
  .supporting.settle   { animation-delay: 1.05s; }
  .model.settle        { animation-delay: 1.22s; }
  .capabilities.settle { animation-delay: 1.4s; }
  .invite.settle       { animation-delay: 1.58s; }
  .contact.settle      { animation-delay: 1.76s; }
  .footer.settle       { animation-delay: 1.92s; }

  /* about sequence */
  .about-main .mark-home.settle { animation-delay: 0.1s; }
  .about-main .eyebrow.settle   { animation-delay: 0.28s; }
  .about-title.settle           { animation-delay: 0.42s; }
  .about-lede.settle            { animation-delay: 0.58s; }
  .people.settle                { animation-delay: 0.76s; }
  .record.settle                { animation-delay: 0.95s; }
  .about-footer.settle          { animation-delay: 1.12s; }

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

  /* the crystalline half resolves into being as the mark settles */
  .feather-wrap.settle .facet {
    opacity: 0;
    animation: facetIn 0.6s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  }
  .feather-wrap.settle .facet:nth-child(1) { animation-delay: 1.05s; }
  .feather-wrap.settle .facet:nth-child(2) { animation-delay: 1.13s; }
  .feather-wrap.settle .facet:nth-child(3) { animation-delay: 1.21s; }
  .feather-wrap.settle .facet:nth-child(4) { animation-delay: 1.29s; }
  .feather-wrap.settle .facet:nth-child(5) { animation-delay: 1.37s; }
  .feather-wrap.settle .facet:nth-child(6) { animation-delay: 1.45s; }
  .feather-wrap.settle .facet:nth-child(7) { animation-delay: 1.53s; }
  .feather-wrap.settle .facet:nth-child(8) { animation-delay: 1.61s; }

  @keyframes facetIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* a slow specular glint travelling across the facets */
  .feather-wrap.settle .glint {
    transform-box: fill-box;
    animation: glint 7s ease-in-out 2.4s infinite;
  }

  @keyframes glint {
    0%   { opacity: 0; transform: translateX(-120px); }
    14%  { opacity: 1; }
    50%  { opacity: 0.85; transform: translateX(120px); }
    60%, 100% { opacity: 0; transform: translateX(120px); }
  }

  /* the fog breathes and drifts — very slow, barely there */
  body::before {
    animation: drift 46s ease-in-out infinite alternate;
  }

  @keyframes drift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1.04); }
    100% { transform: translate3d(3%, 2%, 0) scale(1.12); }
  }

  /* the halo behind the mark breathes, as if the crystal is alive */
  .feather-wrap::before {
    animation: breathe 9s ease-in-out infinite;
  }

  @keyframes breathe {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
  }
}
