/* ============================================================
   ابو حسين team — Monochrome terminal / blueprint identity
   ============================================================ */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./assets/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./assets/fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./assets/fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("./assets/fonts/press-start-2p-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #f5f5f0;
  --fg-dim: #a8a8a0;
  --border: #f5f5f0;
  --mark: #39ff14;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-pixel: "Press Start 2P", "IBM Plex Mono", monospace;
  --header-h: 64px;
  --page-pad: clamp(1rem, 4vw, 2.5rem);
  --frame-max: 1120px;
  --focus-ring: 2px dotted var(--fg);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Lang visibility ---------- */
html[lang="ar"] .lang-en {
  display: none !important;
}
html[lang="en"] .lang-ar {
  display: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: none;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--invert {
  background: var(--fg);
  color: var(--bg);
}

.btn--invert:hover {
  background: transparent;
  color: var(--fg);
}

.btn--ghost {
  border-style: dotted;
}

.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn.is-disabled,
.btn.is-disabled:hover {
  opacity: 0.45;
  cursor: default;
  background: transparent;
  color: var(--fg);
  pointer-events: none;
}

/* ---------- Fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

.field__input {
  width: 100%;
  padding: 0.75rem 0.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--fg);
  font-family: var(--font-ar);
  font-size: 1rem;
  resize: vertical;
}

.field__input:focus {
  outline: none;
  border-bottom-color: transparent;
  box-shadow: 0 0 0 1px dotted var(--fg);
  padding-inline: 0.5rem;
}

.field__input::placeholder {
  color: var(--fg-dim);
  opacity: 0.7;
}

/* ---------- Frame system ---------- */
.frame {
  position: relative;
  border: 1px dotted var(--border);
  border-radius: 0;
  background: var(--bg);
}

.frame--pad {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.frame--shell {
  position: relative;
}

.frame__mark {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--border);
  background: transparent;
  pointer-events: none;
}

.frame__mark--tl {
  top: -4px;
  inset-inline-start: -4px;
}
.frame__mark--tr {
  top: -4px;
  inset-inline-end: -4px;
}
.frame__mark--bl {
  bottom: -4px;
  inset-inline-start: -4px;
}
.frame__mark--br {
  bottom: -4px;
  inset-inline-end: -4px;
}

.frame__cross {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  color: var(--fg-dim);
}
.frame__cross::before,
.frame__cross::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.frame__cross::before {
  left: 4px;
  top: 0;
  width: 1px;
  height: 10px;
}
.frame__cross::after {
  left: 0;
  top: 4px;
  width: 10px;
  height: 1px;
}
.frame__cross--tl {
  top: 10px;
  inset-inline-start: 10px;
}
.frame__cross--tr {
  top: 10px;
  inset-inline-end: 10px;
}
.frame__cross--bl {
  bottom: 10px;
  inset-inline-start: 10px;
}
.frame__cross--br {
  bottom: 10px;
  inset-inline-end: 10px;
}

.mark-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--mark);
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---------- Doc kicker / note / pagination ---------- */
.doc-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
}

.doc-kicker__text {
  white-space: nowrap;
}

.doc-kicker__leader {
  flex: 1;
  min-width: 2rem;
  border-bottom: 1px dotted var(--border);
  height: 0;
}

.doc-kicker__box {
  width: 10px;
  height: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.note-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem auto;
  padding: 0.45rem 0.9rem;
  border: 1px dotted var(--border);
  font-family: var(--font-ar);
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.note-kicker__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.note-kicker__row::before,
.note-kicker__row::after {
  content: "";
  flex: 1;
  max-width: 4rem;
  border-bottom: 1px dotted var(--border);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.pagination__bracket {
  width: 14px;
  height: 14px;
  border-color: var(--border);
  border-style: solid;
  border-width: 0;
}
.pagination__bracket--l {
  border-inline-start-width: 1px;
  border-bottom-width: 1px;
}
.pagination__bracket--r {
  border-inline-end-width: 1px;
  border-bottom-width: 1px;
}

/* ---------- Headings ---------- */
.heading-display {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.heading-display--xl {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

.heading-display--lg {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.heading-display--md {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
}

html[lang="en"] .heading-display {
  font-family: var(--font-pixel);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

html[lang="ar"] .heading-display {
  font-family: var(--font-ar);
}

.body-copy {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg);
  max-width: 42rem;
}

.body-copy--dim {
  color: var(--fg-dim);
}

/* ---------- Value rows ---------- */
.value-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dotted var(--border);
}

.value-row:last-child {
  border-bottom: none;
}

.value-row__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px dotted var(--border);
  position: relative;
}

.value-row__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--fg);
  fill: none;
  stroke-width: 1.5;
}

.value-row__label {
  font-size: 1.05rem;
}

.value-row__label::before {
  content: "— ";
  color: var(--fg-dim);
}

.value-row__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 2.5rem;
  text-align: center;
  padding: 0.4rem 0.5rem;
  border: 1px dotted var(--border);
  color: var(--fg-dim);
}

/* ---------- Wire window ---------- */
.wire-window {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  overflow: hidden;
}

.wire-window__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
}

.wire-window__dots {
  display: flex;
  gap: 4px;
}

.wire-window__dots span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--fg-dim);
}

.wire-window__controls {
  display: flex;
  gap: 6px;
  color: var(--fg-dim);
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

.wire-window__body {
  padding: 0.75rem;
  min-height: 4rem;
}

/* ---------- App bar ---------- */
.app-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.app-bar__inner {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0.75rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: grayscale(1) contrast(1.1);
}

.app-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle,
.nav-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dotted var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.lang-toggle:hover,
.nav-menu-toggle:hover {
  background: var(--fg);
  color: var(--bg);
}

.nav-menu-toggle {
  display: none;
}

.nav-menu-toggle__icon {
  width: 20px;
  height: 20px;
}

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

.top-nav__link {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-decoration: none;
  border: 1px solid transparent;
}

.top-nav__link:hover {
  color: var(--fg);
  border-color: var(--border);
}

.top-nav__backdrop {
  display: none;
}

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

  .top-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .app-shell--nav-open .top-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .top-nav__backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0, 0, 0, 0.7);
  }

  .top-nav__backdrop[hidden] {
    display: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .top-nav {
      transition: none;
    }
  }
}

/* ---------- Page / sections ---------- */
.page {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--page-pad) 4rem;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
}

.section__inner {
  width: 100%;
}

.section--hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
  overflow: hidden;
}

.hero__stars {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(1px 1px at 20% 30%, var(--fg), transparent),
    radial-gradient(1px 1px at 60% 70%, var(--fg), transparent),
    radial-gradient(1px 1px at 50% 50%, var(--fg), transparent),
    radial-gradient(1px 1px at 80% 10%, var(--fg), transparent),
    radial-gradient(1px 1px at 90% 60%, var(--fg), transparent),
    radial-gradient(1px 1px at 33% 80%, var(--fg), transparent),
    radial-gradient(1px 1px at 15% 60%, var(--fg), transparent),
    radial-gradient(1px 1px at 70% 40%, var(--fg), transparent);
  background-size: 200% 200%, 180% 180%, 250% 250%, 220% 220%, 190% 190%, 240% 240%, 210% 210%, 230% 230%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.hero__corner {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-color: var(--border);
  border-style: solid;
  border-width: 0;
  opacity: 0.7;
  pointer-events: none;
}

.hero__corner--tl {
  top: 1rem;
  inset-inline-start: 1rem;
  border-block-start-width: 1px;
  border-inline-start-width: 1px;
}
.hero__corner--tr {
  top: 1rem;
  inset-inline-end: 1rem;
  border-block-start-width: 1px;
  border-inline-end-width: 1px;
}
.hero__corner--bl {
  bottom: 1rem;
  inset-inline-start: 1rem;
  border-block-end-width: 1px;
  border-inline-start-width: 1px;
}
.hero__corner--br {
  bottom: 1rem;
  inset-inline-end: 1rem;
  border-block-end-width: 1px;
  border-inline-end-width: 1px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--page-pad) clamp(1.5rem, 4vh, 2.5rem);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__brand {
  margin-bottom: 1.5rem;
}

.hero__logo {
  height: clamp(56px, 10vw, 88px);
  width: auto;
  filter: grayscale(1) contrast(1.05);
}

.hero__philosophy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero__philosophy-line {
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
}

html[lang="en"] .hero__philosophy-line {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  line-height: 1.65;
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-dino {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 1px dotted var(--border);
  padding: 0.65rem 0 0.85rem;
  user-select: none;
  -webkit-user-select: none;
  flex: 0 0 auto;
}

.hero-dino__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding-inline: var(--page-pad);
}

.hero-dino__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.hero-dino__score {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  white-space: nowrap;
}

.hero-dino__hi {
  margin-inline-start: 0.65rem;
  color: var(--fg-dim);
}

.hero-dino__canvas {
  display: block;
  width: 100%;
  height: clamp(90px, 12vw, 130px);
  touch-action: none;
  cursor: pointer;
  background: transparent;
}

@media (max-height: 700px) {
  .hero-dino {
    padding-bottom: 0.55rem;
  }

  .hero-dino__canvas {
    height: 90px;
  }
}

.section--hero .note-kicker__row {
  margin-top: 0.25rem;
}

.section--hero .doc-kicker {
  margin-bottom: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__stars {
    opacity: 0.18;
  }
}

/* ---------- Vision ---------- */
.section--compact {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.frame--compact {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 40rem;
  margin-inline: auto;
}

.vision__title {
  text-align: center;
  margin: 0 0 1rem;
}

.vision__body {
  margin: 0 auto;
  text-align: center;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* ---------- Values ---------- */
.values__title {
  text-align: center;
  margin: 0 0 1rem;
}

.values__list {
  max-width: 28rem;
  margin: 0 auto;
}

.value-row--simple {
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.7rem 0;
}

.value-row--simple .value-row__label {
  font-size: 0.98rem;
  color: var(--fg-dim);
}

.value-row--simple .value-row__num {
  min-width: 2.1rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.75rem;
}

/* ---------- Services ---------- */
.services__title {
  text-align: center;
  margin: 0 0 0.5rem;
}

.services__subtitle {
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.services__list {
  max-width: 34rem;
  margin: 0 auto;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--border);
}

.service-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-row__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-width: 2.1rem;
  text-align: center;
  padding: 0.25rem 0.35rem;
  border: 1px dotted var(--border);
  color: var(--fg-dim);
}

.service-row__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.service-row__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg-dim);
}

/* ---------- Work / product cards ---------- */
.work__header {
  text-align: center;
  margin-bottom: 2rem;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.product-card {
  --product-accent: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px dotted var(--border);
  border-radius: 0;
  text-align: start;
  cursor: pointer;
  background: var(--bg);
  color: var(--fg);
  transition: none;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 2px;
  background: var(--product-accent);
}

.product-card:hover {
  background: #0a0a0a;
}

.product-card__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-card__accent {
  width: 8px;
  height: 8px;
  background: var(--product-accent);
}

.product-card__name {
  font-size: 1.15rem;
  font-weight: 700;
}

html[lang="en"] .product-card__name {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.5;
}

.product-card__teaser {
  color: var(--fg-dim);
  font-size: 0.95rem;
  flex: 1;
}

.product-card__cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--product-accent);
  margin-top: 0.5rem;
}

/* ---------- Contact ---------- */
.contact__title {
  text-align: center;
  margin: 0 0 0.5rem;
}

.contact__lead {
  margin: 0 auto;
  text-align: center;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-email {
  display: block;
  width: fit-content;
  margin: 0.75rem auto 1.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px dotted var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.contact-email:hover {
  background: var(--fg);
  color: var(--bg);
}

.contact-form {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-form .field__input {
  padding: 0.5rem 0.15rem;
  font-size: 0.9rem;
}

.contact-form textarea.field__input {
  min-height: 4.5rem;
  resize: vertical;
}

.contact-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.15rem;
}

.contact-form__actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--page-pad) 3rem;
}

.footer__inner {
  max-width: var(--frame-max);
  margin: 0 auto;
  text-align: center;
}

.footer-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-lockup__logo {
  height: 56px;
  width: auto;
  filter: grayscale(1) contrast(1.05);
}

.footer-lockup__team {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--fg-dim);
}

.footer__brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.footer__note {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ---------- Lightbox (deck iframe) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: min(90vh, 720px);
  background: var(--bg);
  border: 1px dotted var(--border);
  display: flex;
  flex-direction: column;
}

.lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px dotted var(--border);
  flex-shrink: 0;
}

.lightbox__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lightbox__iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #111;
}

.lightbox__close {
  width: 40px;
  height: 40px;
  border: 1px dotted var(--border);
  display: grid;
  place-items: center;
}

.lightbox__close:hover {
  background: var(--fg);
  color: var(--bg);
}

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

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal.is-visible {
    transition: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 375px) {
  .page {
    padding-inline: 0.85rem;
  }

  .value-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon label"
      "num label";
    gap: 0.65rem 0.75rem;
  }

  .value-row__icon {
    grid-area: icon;
  }
  .value-row__label {
    grid-area: label;
  }
  .value-row__num {
    grid-area: num;
  }

  .btn {
    width: 100%;
  }
}
