:root {
  --bg: #0a0e14;
  --fg: #d6dde7;
  --muted: rgba(214,221,231,0.55);
  --line: rgba(214,221,231,0.14);
  --strong: rgba(214,221,231,0.32);
  --accent: #5ad1c7;
  --panel: #0f141c;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
  --bg: #eef0ed;
  --fg: #0a0e14;
  --muted: rgba(10,14,20,0.55);
  --line: rgba(10,14,20,0.14);
  --strong: rgba(10,14,20,0.32);
  --accent: #0b7d72;
  --panel: #e3e6e1;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0ed;
    --fg: #0a0e14;
    --muted: rgba(10,14,20,0.55);
    --line: rgba(10,14,20,0.14);
    --strong: rgba(10,14,20,0.32);
    --accent: #0b7d72;
    --panel: #e3e6e1;
  }
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 12px;
  height: 0.9em;
  background-color: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  position: relative;
  top: -2px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.10s; }
.reveal-3 { transition-delay: 0.15s; }
.reveal-4 { transition-delay: 0.20s; }
.reveal-5 { transition-delay: 0.25s; }

@keyframes scan {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.08;
  pointer-events: none;
  z-index: 9999;
  animation: scan 8s linear infinite;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0;
  counter-reset: section;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
  position: relative;
}

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

/* ─── Header ─────────────────────────────────────────────── */

header {
  padding: 16px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--strong);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

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

.burger.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.mobile-nav {
  display: flex;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}

.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav::before {
  content: "[ SYSTEM_TERMINAL_V2.4.0 ]";
  position: absolute;
  top: 8px;
  left: 24px;
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.mobile-nav::after {
  content: "READY _";
  position: absolute;
  bottom: 8px;
  right: 24px;
  font-size: 9px;
  color: var(--strong);
  animation: blink 1s step-end infinite;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}

.mobile-nav a {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  border: none;
}

.mobile-nav a span {
  color: var(--accent);
  margin-right: 16px;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
}

.mobile-nav a:hover {
  color: var(--fg);
  background: var(--panel);
}

.mobile-nav-controls {
  margin-top: 24px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-controls .ctrl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-controls .label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo svg rect:nth-child(1) { stroke: var(--accent); }
.logo svg rect:nth-child(2) { fill: var(--accent); }
.logo svg rect:nth-child(3) { fill: var(--fg); }
.logo svg rect:nth-child(4) { stroke: var(--fg); }

.logo svg {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo a:hover svg {
  transform: rotate(90deg);
}

.logo svg rect {
  transition: all 0.3s ease;
}

.logo a:hover svg rect:nth-child(2) { fill: var(--fg); }
.logo a:hover svg rect:nth-child(3) { fill: var(--accent); }

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
}

.logo a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  transition: opacity 0.2s ease;
}

.logo a:hover {
  opacity: 0.85;
}

.logo span {
  font-weight: 400;
  font-size: 10px;
  color: var(--accent);
  background: rgba(90, 209, 199, 0.1);
  padding: 1px 6px;
  border: 1px solid var(--line);
  margin-left: 4px;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
  justify-content: center;
}

nav a {
  transition: color 0.15s;
}

nav a:hover {
  color: var(--fg);
}

nav a span {
  color: var(--accent);
}

.header-status {
  justify-self: end;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 11px;
  border: 1px solid var(--strong);
  background: var(--panel);
  cursor: pointer;
  user-select: none;
}

.lang-current {
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.lang-current::after {
  content: "▾";
  font-size: 9px;
  opacity: 0.6;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: -1px;
  background: var(--panel);
  border: 1px solid var(--strong);
  min-width: 80px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lang-switch:hover .lang-dropdown,
.lang-switch:focus-within .lang-dropdown {
  display: block;
}

.lang-current:focus {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  border-bottom: 1px solid var(--line);
}

.lang-dropdown a:last-child {
  border-bottom: none;
}

.lang-dropdown a:hover {
  background: rgba(90, 209, 199, 0.05);
  color: var(--accent);
}

.lang-dropdown a.active {
  color: var(--accent);
  background: rgba(90, 209, 199, 0.1);
  font-weight: 600;
  pointer-events: none;
}

/* Mobile specific overrides for dropdown */
@media (max-width: 1024px) {
  .mobile-nav .lang-switch {
    display: flex;
    flex-wrap: wrap;
    border: none;
    background: none;
    gap: 8px;
    padding: 0;
  }
  
  .mobile-nav .lang-current { display: none; }
  .mobile-nav .lang-dropdown {
    display: flex;
    position: static;
    border: none;
    background: none;
    box-shadow: none;
    gap: 8px;
  }
  
  .mobile-nav .lang-dropdown a {
    border: 1px solid var(--strong);
    padding: 4px 10px;
  }
}

.theme-toggle {
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid var(--strong);
  font-size: 11px;
  color: var(--muted);
  user-select: none;
  background: none;
  font-family: var(--font-mono);
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ticket {
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

/* Interactive Hover Specs for Cards */
.service-card, .team-card, .project-card, .module-row {
  position: relative;
}

.module-row::after {
  content: "0x" attr(data-id);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--line);
  opacity: 0;
  transition: opacity 0.2s;
}

.module-row:hover::after {
  opacity: 0.6;
}

/* ─── Sections ────────────────────────────────────────────── */

section {
  position: relative;
  padding: 56px 64px;
  border-top: 1px solid var(--strong);
}

section::after {
  content: "REF_ID: " attr(id) " // ADDR: 0x" attr(id);
  position: absolute;
  bottom: 12px;
  right: 24px;
  font-size: 9px;
  color: var(--line);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

section:nth-child(even)::before {
  content: "COORD_X: " counter(section) "00.42 // COORD_Y: 30.15";
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 8px;
  color: var(--line);
  pointer-events: none;
}

section {
  counter-increment: section;
}

section.hero {
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: none;
}

.dim-line {
  color: var(--line);
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
  margin: 20px 0;
}

h1 {
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  font-weight: 500;
  max-width: 1100px;
  min-height: 2.1em;
}

h1 span {
  color: var(--accent);
}

.subtagline {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0;
}

.stat-item .label {
  color: var(--muted);
  font-size: 11px;
}

.stat-item .value {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.section-label {
  color: var(--muted);
  margin-bottom: 24px;
}

.section-label span {
  color: var(--accent);
}

.section-label i {
  color: var(--accent);
  font-style: normal;
}

/* ─── Modules ─────────────────────────────────────────────── */

.modules-table {
  border: 1px solid var(--strong);
  background: var(--panel);
}

.modules-header {
  display: grid;
  grid-template-columns: 64px 220px 1fr 100px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--strong);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modules-header span:last-child {
  text-align: right;
}

.module-row {
  display: grid;
  grid-template-columns: 64px 220px 1fr 100px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.module-row .id { color: var(--accent); }
.module-row .name { font-weight: 600; }
.module-row .blurb { color: var(--muted); }
.module-row .status { text-align: right; color: var(--accent); font-size: 11px; }

/* ─── Services ────────────────────────────────────────────── */

.services-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--strong);
}

.service-module {
  display: grid;
  grid-template-columns: 120px 300px 1fr;
  border-bottom: 1px solid var(--strong);
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-module:last-child {
  border-bottom: none;
}

.service-module:hover {
  background: rgba(90, 209, 199, 0.03);
}

.service-module .mod-id {
  padding: 32px 24px;
  color: var(--accent);
  font-weight: 600;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  font-size: 11px;
  letter-spacing: 1px;
}

.service-module .mod-info {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}

.service-module .mod-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}

.service-module .mod-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
}

.service-module .mod-content {
  padding: 32px 40px;
}

.service-module .service-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-module .service-bullets li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  padding-left: 18px;
}

.service-module .service-bullets li::before {
  content: "›";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .service-module {
    grid-template-columns: 80px 1fr;
  }
  .service-module .mod-info {
    border-right: none;
  }
  .service-module .mod-content {
    grid-column: 2;
    padding: 0 24px 32px;
  }
  .service-module .service-bullets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .service-module {
    grid-template-columns: 1fr;
  }
  .service-module .mod-id {
    border-right: none;
    border-bottom: 1px dashed var(--line);
    padding: 16px 24px;
  }
  .service-module .mod-info {
    padding: 24px 24px 16px;
  }
  .service-module .mod-content {
    grid-column: 1;
    padding: 0 24px 32px;
  }
}

/* ─── Process ─────────────────────────────────────────────── */

.process-ascii {
  margin: 0;
  color: var(--strong);
  font-size: 11px;
  line-height: 1.2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.process-step .id { color: var(--accent); font-size: 11px; }
.process-step .name { font-size: 17px; font-weight: 600; margin: 4px 0 10px; }
.process-step .copy { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ─── Tech Stack ──────────────────────────────────────────── */

.stack-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.stack-tag {
  padding: 4px 10px;
  border: 1px solid var(--strong);
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  transition: color 0.15s, border-color 0.15s;
}

.stack-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Principles ──────────────────────────────────────────── */

.principles-box {
  background: var(--panel);
  padding: 32px;
  border-left: 4px solid var(--accent);
  font-size: 14px;
  line-height: 1.8;
}

.principles-box i {
  color: var(--strong);
  font-style: normal;
  display: block;
}

.principles-box b {
  color: var(--fg);
}

/* ─── Team ────────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  border: 1px solid var(--strong);
  padding: 20px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card::before {
  content: "ID-CARD";
  position: absolute;
  top: 10px;
  right: -25px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 30px;
  transform: rotate(45deg);
  z-index: 2;
}

.team-photo-placeholder, .team-photo {
  width: 100%;
  aspect-ratio: 0.7; /* Even taller for better portrait framing */
  background-color: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  mix-blend-mode: luminosity;
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.team-photo-placeholder::after, .team-photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 1;
}

.team-photo-initials {
  position: relative;
  z-index: 3;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  opacity: 0.8;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.team-bio {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ─── Reviews ─────────────────────────────────────────────── */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
}

.review-author { color: var(--accent); font-weight: 600; }
.review-date { color: var(--muted); }

.review-content {
  color: var(--fg);
  font-style: italic;
  margin-bottom: 16px;
}

.review-project {
  color: var(--muted);
  font-size: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ─── Contact ─────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.channel-item .label { color: var(--muted); }
.channel-item .value { color: var(--accent); }

.pgp-box {
  margin: 32px 0 0;
  color: var(--strong);
  font-size: 11px;
}

/* ─── Form ────────────────────────────────────────────────── */

.form-status {
  margin-top: 16px;
  font-size: 11px;
  display: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group .label { color: var(--muted); font-size: 11px; }

.input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--strong);
  padding: 10px 12px;
  background: var(--bg);
}

.input-wrapper span { color: var(--accent); }

input, textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
}

textarea {
  resize: none;
  padding: 12px;
  border: 1px solid var(--strong);
}

.btn-submit {
  align-self: flex-start;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-submit:hover:not(:disabled) {
  opacity: 0.85;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Footer ──────────────────────────────────────────────── */

footer {
  padding: 40px 64px;
  border-top: 1px solid var(--strong);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
}

@media (max-width: 768px) {
  footer {
    padding: 32px 24px;
  }
  
  .footer-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.theme-toggle {
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--strong);
  font-size: 11px;
  color: var(--muted);
  user-select: none;
  background: none;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Projects page ───────────────────────────────────────── */

.projects-header {
  padding: 80px 64px 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 64px 80px;
}

.project-card {
  border: 1px solid var(--strong);
  background: var(--panel);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card p {
  color: var(--muted);
}

.project-cat { color: var(--accent); font-size: 11px; }
.project-title { font-size: 24px; font-weight: 600; }
.project-result {
  color: var(--accent);
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.btn-view {
  align-self: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px dashed var(--muted);
  transition: color 0.15s, border-color 0.15s;
}

.btn-view:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Case study page ─────────────────────────────────────── */

.project-detail {
  padding: 80px 64px;
  max-width: 1000px;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 40px 0;
  padding: 24px;
  border: 1px solid var(--strong);
  background: var(--panel);
}

.meta-item .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.meta-item .value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

.project-content h2 {
  font-size: 32px;
  margin: 60px 0 24px;
  border-bottom: 1px solid var(--strong);
  padding-bottom: 12px;
}

.project-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 24px;
}

.project-image {
  width: 100%;
  margin: 48px 0;
  border: 1px solid var(--strong);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  mix-blend-mode: luminosity;
  opacity: 0.9;
  transition: all 0.4s ease;
}

.project-image.mobile-shot {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  border-width: 8px;
  border-color: var(--strong);
}

.project-image.mobile-shot::after {
  display: none; /* No dots on mobile frame to keep it clean */
}

.project-image:hover img {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.tag-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag {
  padding: 4px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
}

.back-link {
  display: inline-block;
  margin-top: 80px;
  color: var(--accent);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  header {
    grid-template-columns: auto 1fr auto;
    padding: 12px 20px;
  }

  nav:not(.mobile-nav),
  .header-status {
    display: none;
  }

  .burger {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  section {
    padding: 48px 24px;
  }

  h1 {
    font-size: 42px;
    min-height: 90px;
    margin-bottom: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
  }

  section::after, section::before {
    display: none; /* Hide annotations on small mobile to save space */
  }

  .logo {
    font-size: 13px;
  }

  body {
    background-size: 24px 24px;
  }

  h1 {
    font-size: 32px;
    min-height: 105px; /* Резервуємо місце під 3 рядки тексту на мобільних */
    margin-bottom: 24px;
  }

  .subtagline {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .modules-header {
    display: none;
  }

  .module-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .module-row .status {
    text-align: left;
    margin-top: 4px;
  }

  .services-grid,
  .contact-grid,
  .reviews-grid,
  .team-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    padding: 0 24px 48px;
  }

  .projects-header {
    padding: 48px 24px 24px;
  }

  .project-detail {
    padding: 48px 24px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-ascii {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
    border-left: 1px solid var(--line);
    padding-left: 20px;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
  }

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

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