/* ==========================================================================
   Raymond Innocent Ogbo — Portfolio
   Editorial dark. Warm greyscale, hairline rules, one restrained accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted. No third-party request, no render-blocking round trip.
   Instrument Serif + Instrument Sans are a designed superfamily pairing.
   All three are SIL Open Font License; see assets/fonts/*-OFL.txt.
   -------------------------------------------------------------------------- */

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

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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 {
  /* Warm near-black — deliberately not neutral grey, never blue */
  --bg: #0c0c0b;
  --bg-raise: #121211;
  --bg-sink: #090908;

  /* Warm paper whites */
  --paper: #f4f1ea;
  --text: #e6e2d9;
  --muted: #938f85;
  --dim: #6a665e;

  /* Hairlines — the primary structural device on this site */
  --rule: rgba(244, 241, 234, 0.14);
  --rule-soft: rgba(244, 241, 234, 0.07);

  /* Single accent: muted brass. Used only for meta, marks and focus. */
  --accent: #c69f6b;
  --accent-dim: rgba(198, 159, 107, 0.4);

  --ok: #8fae7d;
  --err: #c97e6b;

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Measure */
  --page: 1240px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-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: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  line-height: 1.68;
  font-weight: 400;
  -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: none;
  cursor: pointer;
  text-align: left;
}

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

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

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--paper);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

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

/* Small uppercase mono — the only "label" device on the site */
.meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

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

.serif {
  font-family: var(--serif);
}

.it {
  font-family: var(--serif);
  font-style: italic;
}

/* Text link with a rule that wipes in from the left */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--text);
  transition: color 0.35s var(--ease);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.45s var(--ease-out);
}

.link:hover {
  color: var(--paper);
}

.link:hover::after {
  transform-origin: left;
  animation: wipe 0.55s var(--ease-out);
}

@keyframes wipe {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }
  49% {
    transform: scaleX(0);
    transform-origin: right;
  }
  50% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Quiet link — rule appears only on hover */
.link-q {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.link-q::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.link-q:hover {
  color: var(--paper);
}

.link-q:hover::after {
  transform: scaleX(1);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
}

.skip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-110%);
  z-index: 300;
  background: var(--paper);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease);
}

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

/* Section scaffolding — spacing deliberately varies by section weight */
.section {
  padding-block: clamp(5rem, 11vw, 9rem);
}

.section--tight {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

@media (min-width: 880px) {
  .section-head {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  color: var(--paper);
  max-width: 20ch;
}

.section-note {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.masthead.is-stuck {
  background: rgba(12, 12, 11, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.5rem;
}

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

.wordmark span {
  color: var(--dim);
}

/* The role qualifier is the first thing to go when width runs out */
@media (max-width: 660px) {
  .wordmark span {
    display: none;
  }
}

@media (max-width: 400px) {
  .wordmark {
    letter-spacing: 0.1em;
    font-size: 0.6875rem;
  }
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.masthead__nav a:hover,
.masthead__nav a.is-current {
  color: var(--paper);
}

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

/* Menu button — a square, not a pill */
.menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rule);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.menu-btn i {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

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

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

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

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

  .masthead__nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad) 2.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease-out);
  }

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

  .masthead__nav a {
    padding: 1.15rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--rule-soft);
  }

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

/* --------------------------------------------------------------------------
   Opening
   -------------------------------------------------------------------------- */

.opening {
  padding-top: clamp(8rem, 20vh, 12rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.opening__kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.opening__kicker .rule {
  flex: 1;
  max-width: 8rem;
}

/* Below the fold of a phone there isn't room for the rule between them */
@media (max-width: 620px) {
  .opening__kicker {
    display: grid;
    gap: 0.4rem;
    justify-items: start;
  }

  .opening__kicker .rule {
    display: none;
  }
}

.opening__statement {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 18ch;
}

.opening__statement em {
  font-style: italic;
  color: var(--accent);
}

/* Line-by-line mask reveal — the only entrance animation on the page */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}

/* Staggered per line. Kept in CSS rather than inline style attributes so the
   page satisfies a strict Content-Security-Policy with no 'unsafe-inline'. */
.reveal-line:nth-child(2) > span {
  transition-delay: 90ms;
}

.reveal-line:nth-child(3) > span {
  transition-delay: 180ms;
}

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

.opening__body {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 880px) {
  .opening__body {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 3rem;
  }
}

.opening__body p {
  color: var(--muted);
  max-width: 52ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

.opening__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Facts strip — a table, not a row of badges */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border-top: 1px solid var(--rule);
  margin-top: clamp(4rem, 10vw, 7rem);
}

.facts > div {
  padding: 1.5rem 1.75rem 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 720px) {
  .facts > div + div {
    padding-left: 1.75rem;
    border-left: 1px solid var(--rule-soft);
  }
}

.facts dt {
  margin-bottom: 0.65rem;
}

.facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.facts .avail {
  color: var(--paper);
}

.facts .avail::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.6rem;
  translate: 0 -2px;
  background: var(--accent);
}

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

.work__layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1000px) {
  .work__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

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

.index__row {
  border-bottom: 1px solid var(--rule-soft);
}

.index__trigger {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem 1rem;
  width: 100%;
  padding: 1.4rem 0;
  transition: padding-left 0.5s var(--ease-out);
}

@media (min-width: 640px) {
  .index__trigger {
    grid-template-columns: 2.75rem minmax(0, 1fr) 12rem;
    padding-block: 1.7rem;
  }
}

.index__row.is-active .index__trigger,
.index__trigger:hover {
  padding-left: 0.75rem;
}

.index__num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: color 0.35s var(--ease);
}

.index__row.is-active .index__num {
  color: var(--accent);
}

.index__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: var(--text);
  transition: color 0.35s var(--ease);
}

.index__row.is-active .index__name,
.index__trigger:hover .index__name {
  color: var(--paper);
}

.index__disc {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.35s var(--ease);
}

.index__row.is-active .index__disc {
  color: var(--muted);
}

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

/* Inline detail — shown on narrow screens where there is no hover */
.index__inline {
  padding: 0 0 1.75rem;
}

.index__inline figure {
  margin: 0 0 1rem;
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}

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

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

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

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

/* Live-site link. Only some projects have one, so it is absent rather than
   disabled when a project is not deployed. */
.visit {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.visit a::after {
  background: var(--accent);
}

/* Marks a row whose project is publicly reachable */
.index__live {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.6rem;
  translate: 0 -0.3em;
  background: var(--accent);
}

@media (min-width: 1000px) {
  .index__inline {
    display: none;
  }
}

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

@media (min-width: 1000px) {
  .stage {
    display: block;
    position: sticky;
    top: 7rem;
  }

  .stage__frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--rule-soft);
    background: var(--bg-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.04;
    transition: opacity 0.6s var(--ease), scale 1.1s var(--ease-out);
  }

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

  .stage__caption {
    padding-top: 1.5rem;
  }

  .stage__caption p {
    color: var(--muted);
    font-size: 0.9375rem;
    max-width: 44ch;
    min-height: 5.5rem;
  }

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

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

/* Two-column grid: an optional portrait on the left, prose on the right.
   With no portrait the prose still sits in column two, so it stays aligned
   with every section title on the page. */
.about {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 880px) {
  .about {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .about__text {
    grid-column: 2;
  }
}

.about__lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  line-height: 1.28;
  color: var(--paper);
  max-width: 26ch;
  margin-bottom: 2.25rem;
}

.about__cols {
  columns: 2;
  column-gap: 3rem;
  max-width: 62rem;
}

@media (max-width: 760px) {
  .about__cols {
    columns: 1;
  }
}

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

.about__portrait {
  margin-bottom: 2rem;
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}

.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.8s var(--ease);
}

.about__portrait:hover img {
  filter: grayscale(0) contrast(1) brightness(1);
}

/* --------------------------------------------------------------------------
   Capabilities — a specification table
   -------------------------------------------------------------------------- */

.spec {
  border-top: 1px solid var(--rule);
}

.spec__row {
  display: grid;
  gap: 0.5rem 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 780px) {
  .spec__row {
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.spec__list {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text);
  line-height: 1.8;
  overflow-wrap: break-word;
}

/* The trailing space in the generated content is load-bearing: the spans are
   adjacent in the markup, so it is the only soft-wrap opportunity between
   items. A non-breaking space here overflows narrow viewports. */
.spec__list span::after {
  content: ", ";
  color: var(--dim);
}

.spec__list span:last-child::after {
  content: "";
}

.spec__note {
  margin-top: 0.5rem;
  color: var(--dim);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Practice — numbered, deliberately unequal
   -------------------------------------------------------------------------- */

.practice {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.practice__item {
  display: grid;
  gap: 0.75rem 3rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 780px) {
  .practice__item {
    grid-template-columns: 4rem 17rem minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

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

.practice__item h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: var(--paper);
}

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

/* --------------------------------------------------------------------------
   Record — year / role table
   -------------------------------------------------------------------------- */

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

.record__row {
  display: grid;
  gap: 0.35rem 3rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

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

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

.record__what h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  color: var(--paper);
  margin-bottom: 0.5rem;
}

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

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

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

.contact__lede {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 16ch;
  margin-bottom: 2.5rem;
}

.contact__grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 940px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4.5rem;
  }
}

.direct {
  border-top: 1px solid var(--rule);
}

.direct__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.direct__row a,
.direct__row span {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* Form — square fields, underline-only inputs */
.form__grid {
  display: grid;
  gap: 1.75rem;
}

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

.form__grid--stacked {
  margin-top: 1.75rem;
}

.field {
  display: block;
}

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

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--paper);
  transition: border-color 0.35s var(--ease);
}

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

.field input:hover,
.field textarea:hover {
  border-bottom-color: var(--rule);
}

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

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

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

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

/* Send button — a rectangle with a fill that wipes up */
.send {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 2.25rem;
  border: 1px solid var(--paper);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.45s var(--ease);
}

.send::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}

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

.send:hover {
  color: var(--bg);
}

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

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

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

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

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

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

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */

.colophon {
  padding-block: 3rem 2.25rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-sink);
}

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

.colophon__blurb {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 32ch;
}

/* Visually hidden — keeps each icon link named for screen readers */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Bare glyphs — no circles, no chips, no bordered badges */
.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.social__link {
  display: inline-flex;
  color: var(--dim);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

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

.social__link:focus-visible {
  color: var(--accent);
}

.colophon__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.colophon__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------------------------
   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;
  }

  .reveal-line > span {
    transform: none;
  }
}

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

@media print {
  .masthead,
  .stage,
  form,
  .menu-btn {
    display: none !important;
  }

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