@import url("fonts.css");

/* ============================================================
   PROPWAY — the financial infrastructure for real estate
   Design system + components. Vanilla CSS, no build step.
   Signature: "The Rail" — one transaction layer made visible.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --ink: #06070a;
  --ink-2: #0e0f17;
  --ink-3: #17181f;
  --paper: #ffffff;
  --mist: #f5f4f9;
  --violet: #7231ff;
  --violet-ink: #5a1fe0;
  --violet-press: #4a17c2;
  --violet-soft: #ece6ff;
  --gold: #ffc01d;

  /* text */
  --text: #141319;
  --text-muted: #56545f;
  --text-on-dark: #f4f3f7;
  --text-muted-dark: #a09dae;

  /* lines */
  --line: #e6e4ef;
  --line-dark: #26252f;

  /* shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);

  /* type */
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --h1: clamp(2.6rem, 1.7rem + 4.2vw, 4.5rem);
  --h2: clamp(1.95rem, 1.4rem + 2.4vw, 3rem);
  --h3: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  --h4: clamp(1.1rem, 1rem + 0.4vw, 1.28rem);
  --lead: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.24s;

  --header-h: 68px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.cta-band :focus-visible {
  outline-color: #fff;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: 760px;
}
.section {
  padding-block: clamp(3.75rem, 2.5rem + 6vw, 7rem);
  position: relative;
}
.section--mist {
  background: var(--mist);
}
.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section--tight {
  padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem);
}

/* section intro block */
.intro {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 1.4rem + 3vw, 3.5rem);
}
.intro--wide {
  max-width: 74ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.1rem;
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-head .eyebrow {
  color: #b9a1ff;
}
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
}
.lead {
  font-size: var(--lead);
  color: var(--text-muted);
  margin-top: 1.15rem;
  text-wrap: pretty;
}
.section--dark .lead {
  color: var(--text-muted-dark);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.92rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .arrow {
  transition: transform var(--dur) var(--ease);
}
.btn:hover {
  background: var(--violet-ink);
  transform: translateY(-2px);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(0);
  background: var(--violet-press);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
}
.btn--ghost:hover {
  --btn-bg: transparent;
  border-color: var(--text);
  transform: translateY(-2px);
}
.section--dark .btn--ghost,
.cta-band .btn--ghost,
.hero .btn--ghost,
.page-head .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.section--dark .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-head .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--light:hover {
  --btn-bg: #f0edff;
  background: #f0edff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--violet);
  border-bottom: 2px solid color-mix(in srgb, var(--violet) 30%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.section--dark .link-arrow {
  color: #c3b0ff;
  border-bottom-color: color-mix(in srgb, #c3b0ff 35%, transparent);
}
.link-arrow:hover {
  border-bottom-color: currentColor;
  gap: 0.7rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
}
.brand img {
  height: 19px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted-dark);
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}
.nav a:hover {
  color: #fff;
}
.nav a[aria-current="page"] {
  color: #fff;
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.nav .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem var(--gutter) 1.4rem;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1rem;
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .nav a[aria-current="page"] {
    color: var(--gold);
  }
  .nav .btn {
    margin-top: 1.1rem;
    justify-content: center;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      color-mix(in srgb, #fff 4%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, #fff 4%, transparent) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 62rem;
}
.hero h1 {
  margin-top: 0.2rem;
}
.hero .lead {
  color: var(--text-muted-dark);
  max-width: 46ch;
}
.hero .btn-row {
  margin-top: 2.4rem;
}

/* ---------- The Rail (signature) ---------- */
.rail {
  margin-top: clamp(3rem, 2rem + 5vw, 5rem);
  width: 100%;
}
.rail svg {
  width: 100%;
  height: auto;
}
.rail .rail-line,
.rail .rail-branch {
  stroke: var(--violet);
  stroke-width: 2;
  fill: none;
}
.rail .rail-line {
  stroke-width: 3;
}
.rail .node-core {
  fill: var(--violet);
}
.rail .node {
  fill: var(--ink);
  stroke: var(--violet);
  stroke-width: 2;
}
.rail .node-gold {
  fill: var(--gold);
}
.rail .node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--text-on-dark);
}
.rail .node-core-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  fill: #fff;
}

/* draw-in animation (only when JS is active, so no-JS shows full rail) */
.js .rail .draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.js .rail.is-in .draw {
  animation: rail-draw 1.5s var(--ease) forwards;
}
.js .rail .fade {
  opacity: 0;
}
.js .rail.is-in .fade {
  animation: rail-fade 0.5s var(--ease) forwards;
  animation-delay: calc(0.9s + var(--d, 0s));
}
@keyframes rail-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes rail-fade {
  to {
    opacity: 1;
  }
}

/* ---------- Problem cards / generic card grid ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.section--mist .card {
  background: var(--paper);
}
.section--dark .card {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--violet) 55%, transparent);
}
.card h3 {
  font-size: var(--h4);
  margin-bottom: 0.55rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}
.section--dark .card p {
  color: var(--text-muted-dark);
}
.card .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.9rem;
}

/* icon chip */
.chip {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--violet-soft);
  margin-bottom: 1.1rem;
}
.section--dark .chip {
  background: color-mix(in srgb, var(--violet) 20%, transparent);
}
.chip svg {
  width: 23px;
  height: 23px;
  stroke: var(--violet);
  fill: none;
  stroke-width: 1.7;
}
.section--dark .chip svg {
  stroke: #c3b0ff;
}

/* check list */
.checks {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.96rem;
  color: var(--text-muted);
}
.section--dark .checks li {
  color: var(--text-muted-dark);
}
.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: var(--violet-soft);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237231ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.section--dark .checks li::before {
  background-color: color-mix(in srgb, var(--violet) 22%, transparent);
}

/* ---------- Journey (Discover -> Own): a real sequence ---------- */
.journey {
  margin-top: 1rem;
}
.journey__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}
.journey__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: color-mix(in srgb, var(--violet) 45%, transparent);
}
.step {
  position: relative;
  padding-top: 2.4rem;
}
.step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--violet);
}
.step:nth-child(3)::before {
  background: var(--gold);
  border-color: var(--gold);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet);
  display: block;
  margin-bottom: 0.4rem;
}
.section--dark .step__num {
  color: #b9a1ff;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.section--dark .step__desc {
  color: var(--text-muted-dark);
}
@media (max-width: 780px) {
  .journey__track {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .journey__track::before {
    left: 7px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .step {
    padding-top: 0;
    padding-left: 2.2rem;
    padding-bottom: 1.8rem;
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step::before {
    top: 3px;
    left: 0;
  }
}

/* ---------- Participant rows ("Built for every participant") ---------- */
.rows {
  border-top: 1px solid var(--line);
}
.section--dark .rows {
  border-top-color: var(--line-dark);
}
.prow {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 1rem + 4vw, 4rem);
  padding-block: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.section--dark .prow {
  border-bottom-color: var(--line-dark);
}
.prow__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.9rem;
  display: block;
}
.prow h3 {
  margin-bottom: 0.7rem;
}
.prow p {
  color: var(--text-muted);
}
.section--dark .prow p {
  color: var(--text-muted-dark);
}
.prow__aside {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section--dark .prow__aside {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
@media (max-width: 820px) {
  .prow {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ---------- Flywheel / compounding value ---------- */
.flywheel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.5rem;
  margin-top: 1.5rem;
}
.flywheel__node {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--text-on-dark);
}
.flywheel__node--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.flywheel__arrow {
  color: #b9a1ff;
  font-size: 1rem;
}

/* ---------- Capabilities grid ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.2rem 2rem;
  margin-top: 1rem;
}
.caps li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.section--dark .caps li {
  border-bottom-color: var(--line-dark);
}
.caps li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237231ff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--violet);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.cta-band h2 {
  max-width: 20ch;
}
.cta-band p {
  max-width: 54ch;
  margin-top: 1rem;
  color: color-mix(in srgb, #fff 82%, transparent);
}
.cta-band .btn-row {
  margin-top: 2rem;
}

/* ---------- Statement block ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.statement--wide {
  max-width: 32ch;
}

/* ---------- Partner enquiry blocks ---------- */
.enquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
@media (max-width: 780px) {
  .enquiry-grid {
    grid-template-columns: 1fr;
  }
}
.enquiry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.enquiry h3 {
  font-size: var(--h4);
  margin-bottom: 0.5rem;
}
.enquiry > p {
  color: var(--text-muted);
  font-size: 0.97rem;
}
.enquiry__fields {
  margin: 1.2rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.enquiry__fields li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.enquiry__foot {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}
.enquiry__foot a {
  color: var(--violet);
  border-bottom: 1px solid color-mix(in srgb, var(--violet) 35%, transparent);
}

/* ---------- Empty state (Insights) ---------- */
.empty {
  text-align: center;
  max-width: 44ch;
  margin: clamp(2rem, 1rem + 4vw, 4rem) auto 0;
}
.empty .chip {
  margin-inline: auto;
}

/* ---------- Legal / prose ---------- */
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: var(--h3);
  margin: 2.4rem 0 0.8rem;
}
.prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.prose .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.page-head > .wrap {
  position: relative;
  z-index: 1;
}
.page-head .hero__grid {
  mask-image: radial-gradient(ellipse 80% 80% at 20% 0%, #000 20%, transparent 70%);
}
.page-head__inner {
  position: relative;
  max-width: 56rem;
}
.page-head .lead {
  color: var(--text-muted-dark);
  max-width: 52ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-muted-dark);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-size: 0.92rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img {
  height: 20px;
  width: auto;
  margin-bottom: 0.9rem;
}
.footer-brand p {
  max-width: 30ch;
  color: var(--text-muted-dark);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}
.footer-nav a {
  color: var(--text-muted-dark);
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  padding-top: 1.8rem;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-bottom .sep {
  opacity: 0.4;
}
.footer-social {
  margin-left: auto;
  display: inline-flex;
  gap: 0.5rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer-social a:hover {
  border-color: var(--violet);
  background: color-mix(in srgb, var(--violet) 14%, transparent);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
@media (max-width: 620px) {
  .footer-social {
    margin-left: 0;
  }
}

/* ---------- Scroll reveal (only when JS is active) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .rail .draw {
    stroke-dashoffset: 0;
  }
  .js .rail .fade {
    opacity: 1;
  }
}
