/* ==========================================================================
   Raymond Innocent Ogbo — thesaintdev.com

   Monochrome. True black, bone white, film grain, 1px rules and hard corners.
   Emphasis is brightness and outline rather than colour — the only colour on
   the page comes from the project screenshots. Depth comes from overlapping
   grid lines and z-index, never from shadows or blur.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted, no third-party request
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/bigshoulders-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --black: #000000;
  --near: #0a0a0a;
  --raise: #101010;

  --bone: #f2f2ef;
  --text: #bdbdb8;
  --muted: #82827d;
  --dim: #565651;

  /* No hue anywhere in the chrome. Emphasis is brightness and outline; the
     only colour on the page comes from the project screenshots themselves. */
  --accent: #f2f2ef;
  --marker: #d6d6d0;

  /* Reserved for form feedback, where colour carries meaning */
  --ok: #8fae95;
  --err: #c08c8c;

  --line: #222222;
  --line-hi: #363636;

  --display: "Bricolage", "Arial Black", sans-serif;
  --condensed: "Big Shoulders", "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page: 1440px;
  --pad: clamp(1.15rem, 4vw, 3.25rem);
  --bar: 3.75rem;

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--bone);
}

p {
  text-wrap: pretty;
}

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

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

/* --------------------------------------------------------------------------
   Film grain — fixed overlay, never intercepts pointer events
   -------------------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
  will-change: transform;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  17%      { transform: translate(-2%, -3%); }
  34%      { transform: translate(3%, -2%); }
  51%      { transform: translate(-1%, 2%); }
  68%      { transform: translate(2%, 3%); }
  85%      { transform: translate(-3%, 1%); }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.meta--bright {
  color: var(--accent);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-110%);
  background: var(--bone);
  color: var(--black);
  padding: 0.7rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: translateY(0);
}

/* Section shell — a full-bleed 1px rule tops every section */
.section {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

/* Section header: giant ghost numeral + label + oversized title */
.shead {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 900px) {
  .shead {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.shead__n {
  font-family: var(--condensed);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-hi);
  user-select: none;
}

.shead__title {
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
  max-width: 16ch;
}

.shead__note {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Emphasis without colour: the word is drawn as an outline. Guarded, because
   a transparent fill with no stroke support would render nothing at all. */
.em {
  color: var(--muted);
}

@supports (-webkit-text-stroke: 1px #000) {
  .em {
    color: transparent;
    -webkit-text-stroke: 1.2px var(--bone);
  }
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--bar);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.bar.is-stuck {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark b {
  font-weight: 400;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--out);
}

.nav a:hover,
.nav a.is-current {
  color: var(--bone);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-hi);
}

.burger i {
  width: 14px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.burger[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.burger[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 860px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--bar) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--pad) 2rem;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--out);
  }

  .nav.is-open {
    clip-path: inset(0 0 0 0);
  }

  .nav a {
    padding: 1.1rem 0;
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--bone);
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero — viewport-scaled type, edge to edge
   -------------------------------------------------------------------------- */

.hero {
  padding-top: calc(var(--bar) + clamp(2.5rem, 8vw, 6rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

/* The headline is the interface: it scales with the viewport and fills it */
.hero__type {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--bone);
  font-size: clamp(1.95rem, 6vw, 4.5rem);
}

.hero__type span {
  display: block;
}

.hero__type .ind {
  padding-left: 0.12em;
}

/* Mask reveal, one line at a time */
.mask {
  display: block;
  overflow: hidden;
}

.mask > span {
  display: block;
  transform: translateY(102%);
  transition: transform 1.05s var(--out);
}

.is-ready .mask > span {
  transform: translateY(0);
}

.mask:nth-of-type(2) > span { transition-delay: 80ms; }
.mask:nth-of-type(3) > span { transition-delay: 160ms; }
.mask:nth-of-type(4) > span { transition-delay: 240ms; }

.hero__foot {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.hero__foot p {
  color: var(--muted);
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Buttons: hard rectangles, fill wipes up on hover, no radius, no shadow */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--line-hi);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn > span {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s var(--out);
}

.btn:hover {
  color: var(--black);
  border-color: var(--bone);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--solid {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--black);
}

.btn--solid::before {
  background: var(--black);
  transform: translateY(101%);
}

.btn--solid:hover {
  color: var(--bone);
  border-color: var(--bone);
}

/* --------------------------------------------------------------------------
   Ticker — one long line of real capability, scrolling
   -------------------------------------------------------------------------- */

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 0.9rem;
  background: var(--near);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker span {
  font-family: var(--condensed);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-inline: 1.4rem;
  white-space: nowrap;
}

.ticker span::after {
  content: "◆";
  margin-left: 2.8rem;
  font-size: 0.5em;
  color: var(--accent);
  vertical-align: middle;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Work index
   -------------------------------------------------------------------------- */

.work__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1040px) {
  .work__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.index {
  border-top: 1px solid var(--line);
}

.row {
  border-bottom: 1px solid var(--line);
}

.row__btn {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem 1rem;
  width: 100%;
  padding: 1.25rem 0;
  overflow: hidden;
  transition: padding-left 0.45s var(--out);
}

@media (min-width: 700px) {
  .row__btn {
    grid-template-columns: 2.75rem minmax(0, 1fr) 11rem;
    padding-block: 1.5rem;
  }
}

.row.is-on .row__btn,
.row__btn:hover {
  padding-left: 1rem;
}

.row__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}

.row.is-on .row__n {
  color: var(--accent);
}

.row__name {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.row.is-on .row__name,
.row__btn:hover .row__name {
  color: var(--bone);
}

.row__tag {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (min-width: 700px) {
  .row__tag {
    grid-column: 3;
    text-align: right;
  }
}

.live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.55rem;
  translate: 0 -0.35em;
  background: var(--marker);
}

/* Small screens have no hover, so each row carries its own detail */
.row__inline {
  padding-bottom: 1.75rem;
}

.row__inline figure {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
}

.row__inline img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.row__inline p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
}

.built {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.9;
}

.built b {
  font-weight: 400;
  color: var(--accent);
}

.visit {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visit a {
  color: var(--bone);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease);
}

.visit a:hover {
  color: var(--accent);
}

@media (min-width: 1040px) {
  .row__inline {
    display: none;
  }
}

/* Sticky preview */
.stage {
  display: none;
}

@media (min-width: 1040px) {
  .stage {
    display: block;
    position: sticky;
    top: calc(var(--bar) + 2rem);
  }

  .stage__frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    background: var(--raise);
    overflow: hidden;
  }

  .stage__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    scale: 1.05;
    transition: opacity 0.5s var(--ease), scale 0.9s var(--out);
  }

  .stage__frame img.is-on {
    opacity: 1;
    scale: 1;
  }

  .stage__cap {
    padding-top: 1.5rem;
  }

  .stage__cap p {
    color: var(--muted);
    max-width: 46ch;
    min-height: 5.5rem;
  }

  .stage__built {
    margin-top: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */

.profile {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .profile {
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 2.5rem;
  }

  .profile__body {
    grid-column: 2;
  }
}

.portrait {
  border: 1px solid var(--line);
  max-width: 20rem;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--bone);
  max-width: 22ch;
  margin-bottom: 2rem;
}

.cols {
  columns: 2;
  column-gap: 3rem;
  max-width: 64rem;
}

@media (max-width: 800px) {
  .cols {
    columns: 1;
  }
}

.cols p {
  color: var(--muted);
  margin-bottom: 1.15rem;
  break-inside: avoid;
}

/* --------------------------------------------------------------------------
   Capabilities — a hard grid, depth from overlapping 1px lines
   -------------------------------------------------------------------------- */

.caps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .caps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .caps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap {
  background: var(--black);
  padding: 1.75rem 1.5rem 1.85rem;
  transition: background-color 0.3s var(--ease);
}

.cap:hover {
  background: var(--near);
}

.cap__k {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cap h3 {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.cap__n {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--accent);
}

.cap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.cap li {
  font-size: 0.9375rem;
  color: var(--text);
}

.cap li::after {
  content: "/";
  margin-left: 0.9rem;
  color: var(--line-hi);
}

.cap li:last-child::after {
  content: "";
}

/* --------------------------------------------------------------------------
   Practice
   -------------------------------------------------------------------------- */

.practice {
  border-top: 1px solid var(--line);
}

.practice__row {
  display: grid;
  gap: 0.75rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}

@media (min-width: 820px) {
  .practice__row {
    grid-template-columns: 4rem 18rem minmax(0, 1fr);
    align-items: start;
  }
}

.practice__n {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 0.45rem;
}

.practice__row h3 {
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
}

.practice__row p {
  color: var(--muted);
  max-width: 54ch;
}

/* --------------------------------------------------------------------------
   Record
   -------------------------------------------------------------------------- */

.record {
  border-top: 1px solid var(--line);
}

.record__row {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .record__row {
    grid-template-columns: 9rem minmax(0, 1fr) 14rem;
    align-items: start;
  }
}

.record__when {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  padding-top: 0.4rem;
}

.record__what h3 {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  margin-bottom: 0.55rem;
}

.record__what p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 52ch;
}

.record__where {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

/* Oversized mail link — the biggest interactive target on the page */
.mailto {
  display: block;
  font-family: var(--display);
  font-size: clamp(1rem, 2.6vw, 1.9rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--bone);
  word-break: break-word;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--line);
  transition: color 0.3s var(--ease);
}

.mailto:hover {
  color: var(--accent);
}

.contact__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}

.direct__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.direct__row:first-child {
  border-top: 1px solid var(--line);
}

.direct__row a,
.direct__row span:not(.meta) {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  color: var(--text);
}

.direct__row a {
  transition: color 0.25s var(--ease);
}

.direct__row a:hover {
  color: var(--accent);
}

/* Form */
.fgrid {
  display: grid;
  gap: 1.5rem;
}

.fgrid--stack {
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .fgrid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field > span {
  display: block;
  margin-bottom: 0.55rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--near);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 0.9375rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--raise);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.fform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
}

.status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  min-height: 1.2em;
}

.status[data-state="ok"] { color: var(--ok); }
.status[data-state="err"] { color: var(--err); }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.btn[aria-busy="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--near);
  padding-block: 2.5rem 1.75rem;
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.foot__blurb {
  margin-top: 0.6rem;
  color: var(--dim);
  max-width: 34ch;
  font-size: 0.875rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.social a {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social svg {
  width: 18px;
  height: 18px;
}

.social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Scroll-driven reveal — native where supported, no JS
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}

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

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grain {
    animation: none;
  }

  .ticker__track {
    animation: none;
  }

  .mask > span {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .bar,
  .grain,
  .stage,
  .ticker,
  form,
  .burger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
