/* vürj company site — built from the approved board tools/site/source_truth/board-v1 (VRJ-167).
   Ground is the hero artwork's own edge colour (#01070C, measured by
   tools/site/wip/scripts/build_mock_assets.py) so the art meets the page with no seam.
   Accent gold and text tones come from apps/mobile/src/constants/tokens.ts (Premium Gold);
   --flare is the brand board's gold (#FFC346), used only for the horizon beam. */

@font-face { font-family: Inter; src: url("/fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ground: #01070C;
  --raised: #071019;
  --line: rgba(230, 236, 242, 0.10);
  --line-strong: rgba(230, 236, 242, 0.18);
  --text: rgba(250, 250, 249, 0.95);
  --text-2: rgba(250, 250, 249, 0.68);
  --text-3: rgba(250, 250, 249, 0.50);
  --accent: #E0A82E;
  --flare: #FFC346;
  --measure: 62ch;
  --page: 72rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--flare); }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: 0.75rem; z-index: 10; padding: 0.5rem 0.75rem; background: var(--raised); color: var(--text); }
.skip:not(:focus) { transform: translateY(-300%); }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1rem; }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 54ch; }
.label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-3);
}
.muted { color: var(--text-2); }

/* The horizon beam: the brand's one graphic device, used as a divider. */
.beam {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,195,70,0.0) 4%, var(--flare) 30%, #FFF6E0 48%, rgba(170,205,235,0.75) 68%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 195, 70, 0.35);
}

/* ---------- header / footer ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.home .site-header { position: absolute; inset: 0 0 auto 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-strong); }
.brand span { font-weight: 600; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--flare); }

.site-footer { margin-top: clamp(4rem, 10vw, 8rem); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; padding-block: 2rem 2.5rem; font-size: 0.9rem; color: var(--text-3); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a, .site-footer .mail { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover, .site-footer .mail:hover { color: var(--text); }
.site-footer p { max-width: none; }

/* ---------- home hero ---------- */
.hero { position: relative; }
.hero-art {
  width: 100%; max-width: 1600px; margin-inline: auto;
  /* Height follows the art's own aspect, but never below 240px: on a phone, cover then trims
     only the dark sides; the wordmark and tagline sit at 21–80% of the width and stay whole. */
  height: clamp(240px, calc(100vw * 566 / 1284), 706px);
  object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
}
.intro { padding-top: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; justify-items: start; }
.intro h1 { max-width: 17ch; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.85rem; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flare); }
.button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.6rem 1.15rem; border-radius: 10px; background: var(--accent); color: #0C0A09; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--flare); color: #0C0A09; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.textlink:hover { color: var(--text); }

/* ---------- sections ---------- */
.section { padding-top: clamp(4.5rem, 11vw, 8.5rem); }
.section > .wrap > .beam { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split h2 { margin-bottom: 1.25rem; max-width: 18ch; }

.converge { width: 100%; max-width: 460px; justify-self: center; }
.converge text { font: 500 15px Inter, system-ui, sans-serif; fill: rgba(250, 250, 249, 0.72); letter-spacing: 0.04em; }
.converge .out { fill: var(--flare); font-weight: 600; letter-spacing: 0.02em; }

.pillars { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pillars li { background: var(--ground); padding: clamp(1.25rem, 2.5vw, 1.75rem); display: grid; align-content: start; gap: 0.6rem; }
.pillars .n { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--flare); font-variant-numeric: tabular-nums; }
.pillars p { font-size: 0.975rem; color: var(--text-2); }

.panel { border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 5vw, 3.5rem); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 195, 70, 0.07), transparent 55%), var(--raised); }
.panel h2 { margin-bottom: 1rem; }
.facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.facts li { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; color: var(--text); }

.closing { text-align: left; }
.closing h2 { max-width: 20ch; margin-bottom: 1rem; }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(2.5rem, 7vw, 5rem); }
.page-head h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.page-head .beam { margin-top: clamp(2rem, 5vw, 3.5rem); }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 0; }
.feature h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.feature .label { margin-bottom: 0.75rem; }
.feature.primary h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--text-2); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7rem; height: 1px; background: var(--flare); }
.minor { padding-block: 2rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); }
.minor h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.minor p { color: var(--text-2); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: var(--raised); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-2); font-size: 0.975rem; }

.contact { display: grid; gap: 0.4rem; }
.contact .mail { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text); text-decoration: none; word-break: break-word; }
.contact .mail:hover { color: var(--flare); }

/* privacy */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2.5rem, 6vw, 4rem); align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: 0.9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); }
.doc article section + section { margin-top: 3rem; }
.doc article h2 { font-size: 1.35rem; margin-bottom: 1rem; scroll-margin-top: 1.5rem; }
.doc article p, .doc article li { color: var(--text-2); }
.doc article strong { color: var(--text); font-weight: 600; }
.doc article ul { padding-left: 1.2rem; margin: 1rem 0 0; display: grid; gap: 0.5rem; max-width: var(--measure); }
.updated { font-size: 0.9rem; color: var(--text-3); }
.table-wrap { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); background: var(--raised); }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 1.25rem; }

/* ---------- small screens ---------- */
@media (max-width: 52rem) {
  .split, .feature, .minor, .doc { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
  .converge { justify-self: start; }
}
@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .home .site-header { position: relative; } /* on phones the header sits above the art, not over the wordmark */
  .site-footer .wrap { grid-template-columns: 1fr; }
  /* the table becomes stacked rows */
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: 1rem; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { padding: 0.15rem 0; border: 0; white-space: normal; }
  td:first-child { white-space: normal; margin-bottom: 0.25rem; }
  td[data-k]::before { content: attr(data-k) " — "; color: var(--text-3); }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .textlink, .site-nav a, a { transition: color 0.15s ease, background-color 0.15s ease; }
}

.after { margin-top: 1.5rem; }
.after-sm { margin-top: 1rem; }
