/* Lythronax — studio site v3, dark and imposing.
   Reversed is the strongest treatment: ink ground, bone type, oxblood as
   mass and shadow. Rust for links and reversed accents — the sanctioned
   exception, since oxblood loses contrast on near-black.
   Instrument Serif regular + italic only, never below ~17px. */

:root {
  --ink: #191512;
  --oxblood-deep: #4A1119;
  --oxblood: #6E1B26;
  --rust: #B4472E;
  --bone: #EFE7D9;
  --bone-shade: #E2D6C4;
  --bone-60: rgba(239, 231, 217, 0.6);
  --bone-40: rgba(239, 231, 217, 0.42);
  --hairline: rgba(239, 231, 217, 0.16);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --rail: 4rem;
  --gutter: clamp(1.25rem, 4vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Faint grain so the big ink fields read as material, not dead flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--bone); color: var(--ink); }

a { color: var(--rust); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

h1, h2 { font-family: var(--serif); font-weight: 400; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.snap { scroll-snap-align: start; }

/* ---------- reveal ---------- */

.anim .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim .rv.in { opacity: 1; transform: none; }

/* ---------- avatar tile (primary variant: oxblood tile, deep head, bone L) ---------- */

.tile {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--oxblood);
  overflow: hidden;
  display: block;
  flex: none;
}
.tile-head { position: absolute; left: 1px; top: 5px; width: 32px; height: 24px; fill: var(--oxblood-deep); }
.tile-l {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 23px; line-height: 1;
  color: var(--bone);
}

/* ---------- left rail ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.25rem;
  z-index: 20;
  background: var(--ink);
}

.rail-text, .rail-clock {
  writing-mode: vertical-rl;
  color: var(--bone-40);
  white-space: nowrap;
}
.rail-text { letter-spacing: 0.14em; }

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0; right: 0; left: var(--rail);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.1rem var(--gutter);
  pointer-events: none;
}
.topbar-lockup { display: none; pointer-events: auto; }
.topbar nav { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); pointer-events: auto; }
.topbar nav a { color: var(--bone-60); text-decoration: none; letter-spacing: 0.12em; }
.topbar nav a:hover { color: var(--rust); }

/* ---------- layout ---------- */

main, .site-foot { margin-left: var(--rail); }

section {
  position: relative;
  padding: 4.5rem var(--gutter) clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--hairline);
}

.sect-label {
  color: var(--rust);
  letter-spacing: 0.14em;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

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

.hero {
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

/* The head: oxblood-deep shadow rising out of the right edge. */
.hero-head {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(60vw, 860px);
  height: auto;
  fill: var(--oxblood-deep);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  top: 4.75rem;
  left: var(--gutter);
  color: var(--bone-40);
}
.hm-sep { margin: 0 0.8rem; color: var(--rust); }

.hero-block { position: relative; }

.hero h1 {
  font-size: clamp(4.25rem, 16vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin-left: -0.06em;
}

.descriptor {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 1.4rem 0 2.5rem;
}

.claim {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.25;
  max-width: 34ch;
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: 0.85rem 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-60);
  animation: tick 36s linear infinite;
}
.tick-sep { font-size: 0.45rem; color: var(--rust); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- work index ---------- */

.work { padding-left: 0; padding-right: 0; }
.work .sect-label, .work .now { padding-left: var(--gutter); padding-right: var(--gutter); }

.index-row {
  display: grid;
  grid-template-columns: minmax(3rem, 7rem) 1fr minmax(16rem, 24rem);
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.75rem, 7vh, 5rem) var(--gutter);
  border-top: 1px solid var(--hairline);
  transition: background-color 0.4s ease;
}
.index-row:hover { background: var(--oxblood-deep); }
.index-row:hover h2 { font-style: italic; }

.row-no { color: var(--rust); }

.index-row h2 {
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.row-desc { font-size: 0.9375rem; color: var(--bone-60); }

.now {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(2.25rem, 5vh, 3.5rem);
  border-top: 1px solid var(--hairline);
}
.now-label { color: var(--rust); letter-spacing: 0.14em; flex: none; }
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rust);
  margin-right: 0.6rem;
}
.now-line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  line-height: 1.2;
  max-width: 36ch;
}

/* ---------- studio ---------- */

.studio-lede {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.studio-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 30rem));
  gap: clamp(1.5rem, 4vw, 4rem);
  color: var(--bone-60);
  font-size: 0.9375rem;
}

.facts {
  list-style: none;
  margin-top: clamp(3rem, 7vh, 5rem);
}
.facts li {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) 1fr;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.facts li:last-child { border-bottom: 1px solid var(--hairline); }
.fact-key { color: var(--bone-40); padding-top: 0.2rem; letter-spacing: 0.1em; }

/* ---------- contact ---------- */

.contact { border-bottom: none; }

.contact-line { margin: clamp(2rem, 6vh, 4rem) 0 1.5rem; }
.contact-line a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7.2vw, 7rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-line a:hover { color: var(--rust); font-style: italic; }

.contact-sub { color: var(--bone-40); font-size: 0.9375rem; max-width: 24rem; }

/* ---------- subpages (privacy etc.) ---------- */

.page { padding: 7rem var(--gutter) clamp(4rem, 9vh, 7rem); }

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.page-updated { color: var(--bone-40); margin-bottom: clamp(2.5rem, 6vh, 4rem); }

.prose { max-width: 40rem; }
.prose p.prose-lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--bone);
  margin-bottom: 2.75rem;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin: 2.75rem 0 0.9rem;
}
.prose p { color: var(--bone-60); font-size: 0.9375rem; }
.prose p + p { margin-top: 0.9rem; }

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

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.2rem var(--gutter);
  border-top: 1px solid var(--hairline);
  color: var(--bone-40);
}
.site-foot a { color: var(--rust); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.top-link { color: var(--bone-40); }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .topbar {
    justify-content: space-between;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline);
    padding: 0.8rem var(--gutter);
  }
  .topbar-lockup { display: block; }
  .hero { justify-content: center; }
  .hero-meta { top: 4.5rem; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 6rem); }
  .hero-head { width: 100vw; right: -22%; top: auto; bottom: -4%; }
  .index-row { grid-template-columns: 1fr; gap: 1rem; }
  .now { flex-direction: column; gap: 1.25rem; }
  .studio-cols { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 0.35rem; }
}
