/* Local Fonts */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./assets/fonts/dm-mono-300-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/dm-mono-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/dm-mono-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/manrope-variable-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/playfair-display-italic-600-latin.woff2') format('woff2');
}

:root {
  --ink: #0a0b0d;
  --surface-hero: #0c0d10;
  --surface-approach: #111317;
  --surface-work: #0e0f13;
  --surface-about: #121419;
  --surface-footer: #08090b;
  --surface-card: #14161c;
  --paper: #f0efe9;
  --paper-soft: #dcdad3;
  --muted: #8e8e88;
  --muted-dim: #5c5c57;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --acid: #00e676;
  --acid-dim: rgba(0, 230, 118, 0.12);
  --acid-glow: rgba(0, 230, 118, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Manrope, Arial, sans-serif;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.94), rgba(10, 11, 13, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}

.brand span {
  color: var(--acid);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-family: "DM Mono", monospace;
  color: #c5c5be;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover {
    color: var(--paper);
  }
}

.nav-cta {
  border: 1px solid var(--acid);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--acid);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background: var(--acid-dim);
    color: var(--acid);
  }

  .nav-cta:hover span {
    transform: translate(2px, -2px);
  }
}

.nav-cta span {
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Hero */
.hero {
  min-height: 100svh;
  position: relative;
  padding: 150px clamp(22px, 7vw, 108px) 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-hero);
  overflow: hidden;
}

.hero-copy {
  z-index: 2;
}

.eyebrow,
.section-index {
  font: 500 11px/1.3 "DM Mono", monospace;
  letter-spacing: 0.13em;
  color: var(--acid);
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 14px var(--acid), 0 0 3px var(--acid);
  }
  50% {
    opacity: 0.62;
    transform: scale(0.9);
    box-shadow: 0 0 6px var(--acid);
  }
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  margin-right: 8px;
  box-shadow: 0 0 14px var(--acid);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

h1 {
  font-size: clamp(58px, 9.3vw, 148px);
  line-height: 0.75;
  letter-spacing: -0.075em;
  margin: 30px 0 36px;
  font-weight: 800;
  color: var(--paper);
}

h1 em,
h2 em {
  display: inline-block;
  color: var(--acid);
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.hero-note {
  max-width: 570px;
  margin-left: clamp(0px, 11vw, 180px);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.55;
  color: #b9b8b3;
}

.hero-orbit {
  position: relative;
  width: min(38vw, 550px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.045) 0%, rgba(0, 230, 118, 0.01) 48%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  inset: 12%;
  animation: spin 22s linear infinite;
}

.orbit-two {
  inset: 27%;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 13s;
}

.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.orbit:before {
  top: 12%;
  left: 13%;
}

.orbit:after {
  right: -4px;
  top: 48%;
}

.core {
  position: absolute;
  inset: 38%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 10px "DM Mono", monospace;
  gap: 4px;
  color: var(--paper);
}

.core b {
  color: var(--acid);
  transform: rotate(90deg);
}

.node {
  position: absolute;
  font: 10px "DM Mono", monospace;
  color: #c9c9c5;
  border: 1px solid #454541;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #111;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .node:hover {
    transform: scale(1.1);
    border-color: var(--acid);
    color: var(--paper);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.25);
  }
}

.n1 { top: 4%; left: 48%; }
.n2 { top: 44%; right: 1%; }
.n3 { bottom: 5%; left: 48%; }
.n4 { top: 44%; left: 1%; }

.hero-meta {
  position: absolute;
  bottom: 34px;
  left: clamp(22px, 7vw, 108px);
  right: clamp(22px, 7vw, 108px);
  display: flex;
  gap: 24px;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7e7e78;
}

.hero-meta a {
  margin-left: auto;
  color: var(--acid);
  text-decoration: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Statement (Approach) */
.statement {
  padding: 140px clamp(22px, 7vw, 108px);
  background: var(--surface-approach);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.statement .section-index {
  color: var(--acid);
}

.big-statement {
  max-width: 1180px;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.05em;
  margin: 45px 0 76px;
  color: var(--paper);
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capabilities span,
.stack span {
  font: 11px "DM Mono", monospace;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  color: var(--paper-soft);
  letter-spacing: 0.04em;
}

/* Selected Work */
.work {
  background: var(--surface-work);
  color: var(--paper);
  padding: 60px clamp(22px, 7vw, 108px) 150px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.work .section-index {
  color: var(--acid);
}

h2 {
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 24px 0 0;
  color: var(--paper);
}

.filters {
  display: flex;
  gap: 22px;
}

.filters button {
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .filters button:hover {
    color: var(--paper);
    transform: translateY(-1px);
  }
}

.filters button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 2px;
}

.filters button.active {
  color: var(--paper);
  border-color: var(--acid);
}

.filters sup {
  color: var(--muted-dim);
  font-size: 9px;
  transition: color 0.2s ease;
}

.filters button.active sup {
  color: var(--acid);
}

.project {
  min-width: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 110px;
  padding-top: 58px;
  width: 100%;
}

.project.hidden {
  display: none;
}

.project-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0f14;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

a.project-visual-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

a.project-visual-link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-color: var(--acid);
}

@media (hover: hover) and (pointer: fine) {
  a.project-visual-link:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }

  a.project-visual-link:hover .project-img {
    transform: scale(1.025);
  }
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Status Badges */
.status {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  background: rgba(12, 14, 18, 0.85);
  color: #b0b0a8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 10px;
  border-radius: 3px;
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status.demo {
  background: rgba(121, 184, 255, 0.09);
  color: #79b8ff;
  border-color: rgba(121, 184, 255, 0.32);
}

.status-short {
  display: none;
}

.status.launched {
  background: rgba(0, 230, 118, 0.14);
  border-color: rgba(0, 230, 118, 0.5);
  color: #34f593;
}

.status.launched.status-on-light {
  background: rgba(10, 12, 16, 0.94);
  color: var(--acid);
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Project Scope */
.project-scope {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.scope-label {
  font: 500 8.5px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  padding: 2.5px 5px;
  border-radius: 2px;
  flex-shrink: 0;
}

.scope-text {
  font-family: Manrope, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #a4a39d;
  margin: 0;
}

/* Project Info */
.project-info {
  padding-top: 22px;
}

.project-info > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-no {
  font: 10px "DM Mono", monospace;
  color: var(--muted-dim);
  order: 2;
}

.project-info h3 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-weight: 700;
}

.project-info > p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 590px;
  margin: 12px 0 16px;
}

.project-info ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0;
}

.project-info li {
  font: 9px "DM Mono", monospace;
  color: #8c8c86;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-info li:not(:last-child):after {
  content: " •";
  color: rgba(255, 255, 255, 0.22);
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.project-cta {
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.35);
  background: rgba(0, 230, 118, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .project-cta:hover {
    background: var(--acid-dim);
    border-color: var(--acid);
    color: var(--acid);
    transform: translateY(-1px);
  }

  .project-cta:hover span {
    transform: translate(2px, -2px);
  }
}

.project-cta:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.project-cta span {
  font-size: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Case Automation Evidence */
.case-evidence {
  margin: 18px 0 16px;
  padding: 14px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-impact {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font: 500 11px/1.4 "DM Mono", monospace;
  letter-spacing: 0.03em;
}

.impact-label {
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
  background: var(--acid-dim);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 3px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}

.impact-value {
  color: var(--paper);
  font-size: 11px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 14px;
}

.evidence-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evidence-stage:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 14px;
}

.evidence-label {
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c8c86;
}

.evidence-text {
  font: 400 12px/1.55 Manrope, Arial, sans-serif;
  color: #c5c5be;
  margin: 0;
}

.evidence-flow {
  font: 400 11px/1.55 "DM Mono", monospace;
  color: var(--paper-soft);
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.flow-arrow {
  color: var(--acid);
  font-weight: 500;
  display: inline-block;
  margin: 0 4px;
}

.evidence-meta {
  font: 400 10.5px/1.45 "DM Mono", monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .evidence-stage:not(:first-child) {
    border-left: none;
    padding-left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.07);
    padding-top: 9px;
  }
}

/* 01 HoReCaFam — Engineering Passport Preview */
.visual-spec {
  background: #0c0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.2vw, 20px);
  min-width: 0;
}

.spec-panel {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 4px;
  padding: clamp(10px, 2.2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-width: 0;
}

.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.spec-tag {
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  color: var(--acid);
  white-space: nowrap;
}

.spec-id {
  font: 400 9px/1 "DM Mono", monospace;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0;
  padding: 8px 0;
  min-width: 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.spec-val {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-family: "DM Mono", monospace;
}

.spec-key {
  font: 500 8.5px/1.2 "DM Mono", monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
  word-break: break-word;
}

.spec-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font: 400 8.5px/1.3 "DM Mono", monospace;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  flex-wrap: wrap;
}

.spec-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* 05 Mama Prybrala — Telegram Start + Booking Summary Flow */
.visual-composite {
  background: #0c0e14;
  position: relative;
  overflow: hidden;
}

.mama-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 8%;
  display: block;
}

.layer-flow-wrap {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 32%;
  max-width: 190px;
  height: 80%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #e2e5ed;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 2;
}

.layer-flow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

/* 06 AccessFlow — Telegram Bot Menu + Checkout Flow */
.visual-checkout {
  background: #08090d;
  position: relative;
  overflow: hidden;
}

.checkout-crop-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.visual-checkout .checkout-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 12%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.layer-bot-wrap {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 29%;
  max-width: 175px;
  height: 78%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0d0f15;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  z-index: 2;
}

.layer-bot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* About */
.about {
  padding: 150px clamp(22px, 7vw, 108px);
  background: var(--surface-about);
  color: var(--paper);
  border-top: 1px solid var(--line);
}

.about .section-index {
  color: var(--acid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9vw;
  align-items: start;
}

.about h2 {
  max-width: 800px;
}

.about h2 em {
  color: var(--acid);
}

.about-copy {
  padding-top: 38px;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: #aaa9a3;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.stack span {
  border: 1px solid var(--line);
  color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
footer {
  background: var(--surface-footer);
  color: var(--paper);
  padding: 120px clamp(22px, 7vw, 108px) 40px;
  border-top: 1px solid var(--line);
}

footer .section-index {
  color: var(--acid);
}

footer h2 {
  font-size: clamp(50px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 24px 0 0;
  color: var(--paper);
}

footer h2 em {
  display: inline-block;
  color: var(--acid);
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.footer-row {
  margin-top: 90px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 34px;
  align-items: center;
}

.footer-row a {
  color: var(--paper);
  text-decoration: none;
  font: 600 12px "DM Mono", monospace;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-row a:hover {
  color: var(--acid);
}

.footer-row span {
  margin-left: auto;
  font: 10px "DM Mono", monospace;
  color: var(--muted-dim);
  letter-spacing: 0.08em;
}

/* Reveal animation */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .hero-orbit {
    position: absolute;
    width: 450px;
    right: -180px;
    top: 31%;
    opacity: 0.55;
  }

  .hero-copy {
    align-self: start;
  }

  .hero-note {
    max-width: 430px;
    margin-left: 0;
  }

  .hero-meta span:nth-child(2) {
    display: none;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .site-header {
    height: 68px;
  }

  .brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  nav > a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
  }

  .hero {
    min-height: 740px;
    padding-top: 110px;
    padding-bottom: 30px;
    align-items: start;
  }

  h1 {
    font-size: 17.5vw;
    line-height: 0.82;
    margin-top: 36px;
    margin-bottom: 24px;
  }

  .hero-note {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.55;
    max-width: 310px;
  }

  .hero-orbit {
    position: absolute;
    width: 200px;
    right: -40px;
    bottom: 50px;
    top: auto;
    opacity: 0.35;
    pointer-events: none;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-meta a {
    margin: 0;
    text-align: right;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
  }

  .statement {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .big-statement {
    font-size: 36px;
  }

  .section-head {
    display: block;
  }

  .filters {
    margin-top: 32px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 20px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .work {
    padding-bottom: 90px;
  }

  .project-grid {
    row-gap: 72px;
  }

  .project-info > p {
    font-size: 13px;
  }

  .status-full {
    display: none;
  }

  .status-short {
    display: inline;
  }

  .layer-flow-wrap,
  .layer-bot-wrap {
    display: none;
  }

  .mama-main-img {
    object-position: center 8%;
  }

  .visual-checkout .checkout-img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-position: 58% 12%;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }

  .spec-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .project-cta {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
  }

  .about {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .about-copy p {
    font-size: 15px;
  }

  .footer-row {
    flex-wrap: wrap;
  }

  .footer-row a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-row span {
    width: 100%;
    margin: 20px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .orbit,
  .live-dot {
    animation: none !important;
  }

  .reveal,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  a.project-visual-link,
  a.project-visual-link:hover,
  a.project-visual-link .project-img,
  a.project-visual-link:hover .project-img,
  .project-cta,
  .project-cta:hover,
  .project-cta span,
  .project-cta:hover span,
  .nav-cta,
  .nav-cta:hover,
  .nav-cta span,
  .nav-cta:hover span,
  .filters button,
  .filters button:hover,
  .node,
  .node:hover {
    transform: none !important;
    transition: none !important;
  }
}
