/* ============================================================
   VEEDA — shared foundation (every page loads this first)
   ============================================================ */

:root {
  --charcoal: #0a0705;
  --espresso: #1a0f08;
  --burnt: #d9660f;
  --amber: #ff9d3d;
  --violet: #a58bc0;
  --cream: #efe6dd;
  --glow-color: rgba(255, 140, 26, 0.42);
}

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

html { background: #000; }

body {
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--cream);
  background: #050302;
  position: relative;
}

img { max-width: 100%; }

::selection { background: rgba(217, 102, 15, 0.55); color: #fff6ec; }

/* Lotus cursor — pointer-driven devices only; touch is left alone */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("/assets/cursor-lotus.svg") 13 13, auto; }
  a, button, [role="button"], summary {
    cursor: url("/assets/cursor-lotus-active.svg") 13 13, pointer;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Keyboard navigation stays fully visible */
:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 5px;
  border-radius: 1px;
}

/* ---------- film overlays ---------- */

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 2;
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 2%); }
  50% { transform: translate(2%, -2%); }
  75% { transform: translate(-1%, -1%); }
}

/* ---------- navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.6rem) 2.2rem;
  background: linear-gradient(180deg, rgba(2, 1, 0, 0.72), transparent);
  pointer-events: none; /* the gradient apron shouldn't eat clicks */
}

.site-nav a, .site-nav .nav-links { pointer-events: auto; }

.nav-mark { display: inline-flex; align-items: center; }

.nav-mark img {
  height: 22px;
  width: auto; /* veeda-logo-alpha.png — transparent plate, safe over photos */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.6vw, 2rem);
}

.nav-links a {
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(239, 230, 221, 0.7);
  transition: color 0.35s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 15%;
  right: -15%; /* optical centre for the letterspacing indent */
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--burnt), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--amber); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-links a[aria-current="page"] { color: var(--amber); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); opacity: 0.55; }

.nav-links .ext sup {
  font-size: 0.62em;
  letter-spacing: 0;
  text-indent: 0;
  margin-left: 0.18em;
  vertical-align: 0.5em;
}

@media (max-width: 560px) {
  .site-nav { padding-top: 0.9rem; }
  .nav-mark img { height: 16px; }
  .nav-links { gap: 0.7rem; }
  .nav-links a { font-size: 0.52rem; letter-spacing: 0.22em; text-indent: 0.22em; }
}

/* ---------- social icons ---------- */

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.3rem, 3.5vw, 2rem);
}

.socials a, .socials .soon-mail {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(239, 230, 221, 0.55);
  text-decoration: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

.socials svg { width: 19px; height: 19px; display: block; }

.socials a:hover, .socials a:focus-visible {
  color: var(--amber);
  transform: translateY(-2px);
}

.soon-mail { color: rgba(239, 230, 221, 0.28); position: relative; }

.soon-tag {
  position: absolute;
  top: calc(100% + 0.15rem);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--burnt);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.soon-mail:hover .soon-tag { opacity: 0.9; }

/* ---------- scroll reveal utility ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
