/* ============================================================
   Vorst — vorst.co
   Editorial, cinematic one-pager. Two paths, one name.
   ============================================================ */

:root {
  --ink: #0b0b0d;
  --ink-2: #131316;
  --cream: #f1ede4;
  --cream-dim: #9c968a;
  --cream-faint: #4a463f;
  --rust: #c25e3a;
  --rust-soft: rgba(194, 94, 58, 0.18);
  --hair: rgba(241, 237, 228, 0.12);

  --display: "Fraunces", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.25rem, 2.4vw, 2.5rem);

  --ease: cubic-bezier(0.65, 0, 0.2, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--rust);
  color: var(--cream);
}

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

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  pointer-events: none;
  z-index: 100;
  transform: translate3d(-100px, -100px, 0);
  transition: width 220ms var(--ease), height 220ms var(--ease),
    background 220ms var(--ease), opacity 220ms var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 44px;
  height: 44px;
  background: var(--rust);
}
@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

/* ---------- Meta header ---------- */
.meta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  z-index: 10;
  pointer-events: none;
}
.meta__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--cream);
}
.meta__right {
  text-align: right;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(4.5rem, 9vh, 7rem) 0 0;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(1rem, 4vh, 3rem) var(--pad) clamp(1rem, 3vh, 2rem);
  display: grid;
  justify-items: center;
  gap: clamp(0.9rem, 2.2vh, 1.6rem);
  position: relative;
  z-index: 2;
  animation: rise 1100ms var(--ease) both;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px var(--rust-soft);
  animation: pulse 2.4s var(--ease) infinite;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(5rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  display: inline-flex;
  gap: 0.02em;
  color: var(--cream);
}
.wordmark__letter {
  display: inline-block;
  transition: transform 600ms var(--ease), color 600ms var(--ease);
  animation: letter 1100ms var(--ease) both;
}
.wordmark__letter:nth-child(1) { animation-delay: 60ms; }
.wordmark__letter:nth-child(2) { animation-delay: 130ms; }
.wordmark__letter:nth-child(3) { animation-delay: 200ms; }
.wordmark__letter:nth-child(4) { animation-delay: 270ms; }
.wordmark__letter:nth-child(5) { animation-delay: 340ms; }

.lede {
  max-width: 44ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.86;
}
.lede em {
  font-style: italic;
  color: var(--cream);
}

/* ---------- Paths (split screen) ---------- */
.paths {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  border-top: 1px solid var(--hair);
  min-height: clamp(320px, 42vh, 480px);
}

.seam {
  position: relative;
  width: 1px;
  background: var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seam__amp {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--hair);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--cream-dim);
}

.path {
  position: relative;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  transition: background 600ms var(--ease), opacity 600ms var(--ease);
  isolation: isolate;
}
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at var(--gx, 50%) var(--gy, 50%),
    rgba(194, 94, 58, 0.08),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.path:hover::before,
.path:focus-within::before {
  opacity: 1;
}

/* When one side is hovered, dim the other */
.paths:hover .path:not(:hover) {
  opacity: 0.32;
}
.paths:hover .seam {
  opacity: 0.5;
}

.path__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.path__index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cream-faint);
  padding-top: 0.4rem;
}

.path__body {
  display: grid;
  gap: clamp(0.6rem, 1.6vh, 1.1rem);
  position: relative;
  z-index: 2;
}

.path__role {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.path__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  display: grid;
}
.path__name-last {
  font-style: italic;
  color: var(--cream-dim);
}

.path__line {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--cream);
  opacity: 0.82;
  max-width: 32ch;
}

/* ---------- Path links ---------- */
.path__links {
  list-style: none;
  margin: clamp(0.8rem, 2.2vh, 1.4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
}
.path__links li {
  border-top: 1px solid var(--hair);
}
.path__links li:last-child {
  border-bottom: 1px solid var(--hair);
}

.link {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: clamp(0.6rem, 1.5vw, 1.4rem);
  padding: 0.95rem 0.2rem;
  font-family: var(--display);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--cream);
  transition: color 280ms var(--ease), padding 360ms var(--ease);
}
.link__label {
  font-weight: 400;
}
.link__host {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 280ms var(--ease);
}
.link__arrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--cream-dim);
  transition: transform 380ms var(--ease), color 280ms var(--ease);
}
.link:hover {
  color: var(--rust);
  padding-left: 0.6rem;
}
.link:hover .link__arrow {
  transform: translateX(6px);
  color: var(--rust);
}
.link:hover .link__host {
  color: var(--rust);
}

/* Right side mirrors */
[data-side="right"] {
  grid-template-columns: 1fr auto;
  text-align: right;
}
[data-side="right"] .path__body {
  justify-items: end;
}
[data-side="right"] .path__index {
  order: 2;
}
[data-side="right"] .path__name {
  justify-items: end;
}
[data-side="right"] .path__line {
  text-align: right;
}
[data-side="right"] .path__links {
  width: 100%;
}
[data-side="right"] .link {
  grid-template-columns: auto auto 1fr;
  text-align: left;
}
[data-side="right"] .link__label {
  order: 3;
  text-align: right;
}
[data-side="right"] .link__host {
  order: 2;
}
[data-side="right"] .link__arrow {
  order: 1;
  transform: scaleX(-1);
}
[data-side="right"] .link:hover {
  padding-left: 0;
  padding-right: 0.6rem;
}
[data-side="right"] .link:hover .link__arrow {
  transform: scaleX(-1) translateX(6px);
}

/* ---------- Footer ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: var(--pad);
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.foot__center {
  text-align: center;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--cream-dim);
}
.foot a {
  border-bottom: 1px solid transparent;
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}
.foot a:hover {
  color: var(--rust);
  border-color: var(--rust);
}
.foot > :last-child {
  text-align: right;
}

/* ---------- Animations ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes letter {
  from {
    opacity: 0;
    transform: translateY(28%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px var(--rust-soft);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(194, 94, 58, 0.06);
  }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .stage {
    padding-top: 5rem;
  }
  .meta__right {
    display: none;
  }
  .paths {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .seam {
    width: auto;
    height: 1px;
    background: var(--hair);
  }
  .seam__amp {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.15rem;
  }
  .paths:hover .path:not(:hover) {
    opacity: 1;
  }

  .path,
  [data-side="right"] {
    grid-template-columns: auto 1fr;
    text-align: left;
    padding: 2.2rem clamp(1.25rem, 5vw, 2rem);
  }
  [data-side="right"] .path__body {
    justify-items: start;
  }
  [data-side="right"] .path__index {
    order: 0;
  }
  [data-side="right"] .path__name {
    justify-items: start;
  }
  [data-side="right"] .path__line {
    text-align: left;
  }
  [data-side="right"] .link {
    grid-template-columns: 1fr auto auto;
    text-align: left;
  }
  [data-side="right"] .link__label {
    order: 0;
    text-align: left;
  }
  [data-side="right"] .link__host {
    order: 1;
  }
  [data-side="right"] .link__arrow {
    order: 2;
    transform: none;
  }
  [data-side="right"] .link:hover {
    padding-left: 0.6rem;
    padding-right: 0;
  }
  [data-side="right"] .link:hover .link__arrow {
    transform: translateX(6px);
  }

  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.6rem;
  }
  .foot__center,
  .foot > :last-child {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 30vw;
  }
  .link__host {
    display: none;
  }
}
