/* ============================================================
   Veera Forge — single-viewport forge mark
   ============================================================ */

@font-face {
  font-family: "Nasalization";
  src: url("fonts/NasalizationRg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:           #0b0806;
  --bg-elev:      #14100b;
  --bg-card:      #1a140e;
  --ember:        #e84d14;
  --ember-soft:   rgba(232, 77, 20, 0.18);
  --ember-glow:   rgba(232, 77, 20, 0.55);
  --brass:        #c9a36a;
  --brass-dim:    rgba(201, 163, 106, 0.35);
  --text:         #f3e9d2;
  --text-dim:     #9a8967;
  --text-faint:   #5b4f3a;
  --rule:         rgba(201, 163, 106, 0.18);
  --rule-strong:  rgba(201, 163, 106, 0.42);

  --serif-display: "Big Shoulders Display", "Bebas Neue", "Impact", sans-serif;
  --serif-text:    "DM Sans", "Inter", system-ui, sans-serif;
  --prose-italic:  "Spectral", Georgia, "Times New Roman", serif;
  --mono:          "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-spring:   cubic-bezier(.16,.84,.3,1);
  --duration-fast:  0.35s;
  --duration-base:  0.45s;
  --duration-slow:  0.7s;
}

/* ----------------------------- reset ----------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  height: 100vh;
  height: 100svh;   /* fallback for browsers without dvh */
  height: 100dvh;   /* dynamic — matches visible area as URL bar resizes */
  overflow: hidden;
  overscroll-behavior: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--ember); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

:focus:not(:focus-visible) { outline: none; }

/* ----------------------------- atmosphere ------------------ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%,
      rgba(232, 77, 20, 0.08) 0%,
      rgba(232, 77, 20, 0) 45%),
    radial-gradient(80% 60% at 50% 100%,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0) 60%);
}

/* ----------------------------- topbar ---------------------- */

.topbar {
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: clamp(0.8rem, 2.2vh, 1.5rem) clamp(1.25rem, 4vw, 3.5rem);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 1.2vw, 0.68rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.topbar__meta { white-space: nowrap; }
.topbar__meta:first-of-type {
  justify-self: start;
  margin-left: -0.32em;
}
.topbar__meta--right {
  justify-self: end;
  text-align: right;
}

.topbar__dot {
  justify-self: center;
  color: var(--brass);
  font-size: 0.55rem;
  position: relative;
  transform: translateX(0.18em);
  filter: drop-shadow(0 0 4px var(--ember-glow));
}
.topbar__dot::before,
.topbar__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(1.5rem, 14vw, 8rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.topbar__dot::before { right: calc(100% + 0.6rem); }
.topbar__dot::after  { left:  calc(100% + 0.6rem); }

/* ----------------------------- stage ----------------------- */
/* Distributes hero + ventures within the remaining viewport.   */

.stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap controls the space between the lede and the venture cards —
     tightened so the ventures sit closer to the lede (no dead band) */
  gap: clamp(2.4rem, 7vh, 4.5rem);
  /* asymmetric padding — top trimmed to 70% of the previous value to
     tighten the gap from the topbar to the V-mark */
  padding: clamp(0.28rem, 0.84vh, 0.63rem) clamp(1.25rem, 4vw, 3.5rem) clamp(1.4rem, 4vh, 2.4rem);
}

/* ----------------------------- hero ------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 44rem;
}

/* Ember halo behind the V mark. Baked PNG (dithered) — see CLAUDE.md. */
.hero__ember {
  position: absolute;
  top: 32%;
  left: 50%;
  width: clamp(360px, 56vh, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("halo.png") center / 100% 100% no-repeat;
  pointer-events: none;
  animation: emberPulse 8s ease-in-out infinite;
  z-index: -1;
  max-width: 110vw;
  will-change: transform, opacity;
}

@keyframes emberPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1.00; transform: translate(-50%, -50%) scale(1.05); }
}

.hero__sparks {
  position: absolute;
  inset: -20px 0 -10px;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero__sparks i {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  background: var(--ember);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px var(--ember-glow);
  animation: spark 9s linear infinite;
}
.hero__sparks i:nth-child(1) { left: 14%; animation-delay: 0s;   animation-duration: 11s; }
.hero__sparks i:nth-child(2) { left: 28%; animation-delay: 2.4s; animation-duration: 8s;  }
.hero__sparks i:nth-child(3) { left: 42%; animation-delay: 4.1s; animation-duration: 13s; }
.hero__sparks i:nth-child(4) { left: 58%; animation-delay: 1.7s; animation-duration: 10s; }
.hero__sparks i:nth-child(5) { left: 72%; animation-delay: 5.5s; animation-duration: 9s;  }
.hero__sparks i:nth-child(6) { left: 86%; animation-delay: 3.2s; animation-duration: 12s; }

@keyframes spark {
  0%   { transform: translateY(0)     translateX(0);  opacity: 0;   }
  10%  { opacity: 0.9; }
  60%  { opacity: 0.6; }
  100% { transform: translateY(-32vh) translateX(15px); opacity: 0; }
}

.hero__mark {
  margin: 0 0 clamp(0.7rem, 2vh, 1.4rem);
  width: clamp(70px, 11vh, 130px);
  aspect-ratio: 1228 / 1080;
  animation: markIn 1.4s cubic-bezier(.16,.84,.3,1) both;
}

.hero__mark-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(232, 77, 20, 0.35))
          drop-shadow(0 0 32px rgba(232, 77, 20, 0.25))
          drop-shadow(0 0 72px rgba(232, 77, 20, 0.12));
}

@keyframes markIn {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.wordmark {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(0.5rem, 1.6vw, 1.2rem);
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.4vw, 3.8rem);
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  animation: fadeUp 1.4s 0.2s cubic-bezier(.16,.84,.3,1) both;
}

.wordmark__word {
  font-family: "Nasalization", var(--serif-display);
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fbf3df 0%, #d3bf94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 1px rgba(243, 233, 210, 0.08);
}

.wordmark__word:first-of-type {
  justify-self: end;
  margin-right: -0.12em;
}
.wordmark__word:last-of-type {
  justify-self: start;
}

.wordmark__sep {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ember);
  font-size: 0.5em;
  position: relative;
  top: -0.05em;
}

.wordmark__line {
  display: inline-block;
  width: clamp(0.8rem, 2vw, 1.4rem);
  height: 1px;
  background: var(--brass);
  opacity: 0.6;
}

.wordmark__diamond {
  font-size: 0.55em;
  filter: drop-shadow(0 0 6px var(--ember-glow));
}

.hero__lede {
  margin: clamp(0.7rem, 2.2vh, 1.4rem) 0 0;
  max-width: 31rem;
  font-family: var(--prose-italic);
  font-style: italic;
  font-weight: 400;
  /* Spectral has a generous x-height, so the size ceiling is trimmed
     slightly to keep the lede's optical weight in check */
  font-size: clamp(0.9rem, 1.5vw, 1.22rem);
  line-height: 1.46;
  color: var(--text-dim);
  letter-spacing: 0;
  animation: fadeUp 1.4s 0.45s var(--ease-spring) both;
}

.hero__lede em { font-style: italic; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ----------------------------- ventures -------------------- */

.ventures {
  width: 100%;
  max-width: 1080px;
}

.ventures__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

/* Card — heraldic plate over dark banner */
.venture {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #16110b 0%, #0e0a07 100%);
  border: 1px solid var(--rule);
  overflow: hidden;
  animation: fadeUp 1.4s var(--ease-spring) both;
  transition:
    border-color var(--duration-base) ease,
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) ease;
}

.venture:nth-child(1) { animation-delay: 0.8s; }
.venture:nth-child(2) { animation-delay: 0.95s; }
.venture:nth-child(3) { animation-delay: 1.1s; }

.venture::before {
  /* corner brackets — heraldic flourish on hover */
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background:
    linear-gradient(to right,  var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) top left  / 12px 1px no-repeat,
    linear-gradient(to bottom, var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) top left  / 1px 12px no-repeat,
    linear-gradient(to left,   var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) top right / 12px 1px no-repeat,
    linear-gradient(to bottom, var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) top right / 1px 12px no-repeat,
    linear-gradient(to right,  var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) bottom left  / 12px 1px no-repeat,
    linear-gradient(to top,    var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) bottom left  / 1px 12px no-repeat,
    linear-gradient(to left,   var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) bottom right / 12px 1px no-repeat,
    linear-gradient(to top,    var(--brass-dim) 0, var(--brass-dim) 12px, transparent 12px) bottom right / 1px 12px no-repeat;
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  z-index: 2;
}

.venture:hover {
  border-color: var(--brass-dim);
  transform: translateY(-3px);
  box-shadow:
    0 18px 50px -28px rgba(232, 77, 20, 0.45),
    0 1px 0 rgba(232, 77, 20, 0.20) inset;
}

.venture:hover::before { opacity: 1; }

.venture__plate {
  position: relative;
  background: var(--bg-card);
  height: clamp(96px, 15vh, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.9rem, 1.8vw, 1.5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* Ember underglow rising from the base of the plate — replaces the old
   cream wash so the logos read as forged marks on a dark plate, not
   stickers on a light box. Brightens on hover. */
.venture__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 140% at 50% 118%,
      rgba(232, 77, 20, 0.18) 0%,
      rgba(232, 77, 20, 0.05) 38%,
      rgba(232, 77, 20, 0) 64%);
  transition: filter var(--duration-base) ease;
}

.venture__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(243, 233, 210, 0.04);
}

.venture__logo {
  position: relative;
  z-index: 1;
  max-width: 78%;
  max-height: 74%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  transition: transform var(--duration-slow) var(--ease-spring);
}

.venture__logo--wide { max-width: 88%; max-height: 68%; }

.venture:hover .venture__logo  { transform: scale(1.04); }
.venture:hover .venture__plate::before { filter: brightness(1.5) blur(0.6px); }

.venture__body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1vw, 0.6rem);
  padding: clamp(0.75rem, 1.6vw, 1.05rem) clamp(0.9rem, 1.7vw, 1.2rem) clamp(0.85rem, 1.8vw, 1.15rem);
}

.venture__field {
  font-family: var(--serif-display);
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

.venture__cta {
  padding-top: clamp(0.45rem, 1vw, 0.7rem);
  border-top: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  color: var(--text-dim);
  transition: color var(--duration-fast) ease;
}

.venture__cta svg {
  transition: transform var(--duration-base) var(--ease-spring);
}

.venture:hover .venture__cta { color: var(--ember); }
.venture:hover .venture__cta svg { transform: translate(3px, -3px); }

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

/* coda — italic motto band between ventures and footer */
.coda {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  /* bottom padding sets the gap from the coda to the footer border */
  padding: clamp(0.55rem, 1.6vh, 1rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 7.2vh, 4.8rem);
}

.coda__rule {
  display: inline-block;
  width: clamp(2rem, 9vw, 5.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-dim), transparent);
  box-shadow: 0 0 8px var(--ember-soft);
}

.coda__text {
  margin: 0;
  font-family: var(--prose-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.coda__text em {
  font-style: italic;
  background: linear-gradient(180deg, #fbf3df 0%, #d3bf94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(232, 77, 20, 0.18));
}

.footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.6rem, 1.6vh, 1rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 1.2vw, 0.68rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer__brand {
  color: var(--text-dim);
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.footer__contact {
  color: var(--text-dim);
  text-transform: none;
  font-family: var(--serif-text);
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: clamp(0.66rem, 0.9vw, 0.78rem);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-fast) ease;
}
.footer__contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-spring);
}
.footer__contact:hover { color: var(--ember); }
.footer__contact:hover::after { transform: scaleX(1); }

/* ----------------------------- responsive ------------------ */
/* Tablet / narrow: ventures become horizontal rows so the page
   still fits a single mobile viewport without scrolling. */

@media (max-width: 760px) {
  .ventures { max-width: 32rem; }

  .ventures__list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .venture {
    display: grid;
    grid-template-columns: clamp(92px, 26vw, 130px) 1fr;
    grid-template-areas: "plate body";
    align-items: stretch;
  }

  .venture__plate {
    grid-area: plate;
    height: 100%;
    min-height: clamp(72px, 14vh, 100px);
    padding: 0.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }

  .venture__body {
    grid-area: body;
    justify-content: center;
    padding: 0.7rem 0.95rem;
    gap: 0.35rem;
  }

  .venture__field {
    font-size: clamp(0.74rem, 2.5vw, 0.92rem);
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .venture__cta {
    padding-top: 0.4rem;
    font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  }
}

@media (max-width: 640px) {
  .topbar {
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    padding: 0.7rem 1rem;
  }
  .topbar__dot::before,
  .topbar__dot::after { width: clamp(0.6rem, 7vw, 2.4rem); }

  .stage { padding: 0.35rem 1rem 1.4rem; gap: 2.7rem; }

  .hero__mark { width: clamp(58px, 10vh, 90px); }
  .wordmark   { font-size: clamp(1.55rem, 8vw, 2.4rem); }
  .hero__lede { font-size: 0.9rem; max-width: 22rem; line-height: 1.44; }

  .coda {
    padding: 0.55rem 1rem 2.55rem;
    gap: 0.7rem;
  }
  .coda__text { font-size: 0.95rem; }
  .coda__rule { width: clamp(1.4rem, 8vw, 3rem); }

  .footer {
    padding: 0.55rem 1rem 0.6rem;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    gap: 0.6rem;
  }
  .footer__contact { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__ember { animation: none; }
  .hero__sparks { display: none; }
}
