/* muhan.ai v2 — neural-aesthetic, gradient-mesh, bento-box */

:root {
  --c-indigo: #0A0820;
  --c-teal: #0A2830;
  --c-violet: #1A0A30;
  --c-cyan: #20D0E0;
  --c-magenta: #D020A0;
  --c-bone: #E0E8F0;

  --ink-1: #E0E8F0;
  --ink-2: rgba(224, 232, 240, 0.74);
  --ink-3: rgba(224, 232, 240, 0.48);
  --ink-4: rgba(224, 232, 240, 0.22);

  --line: rgba(224, 232, 240, 0.10);
  --line-strong: rgba(224, 232, 240, 0.18);

  --grad-pulse: linear-gradient(135deg, #20D0E0 0%, #D020A0 100%);
  --grad-mesh: radial-gradient(ellipse at 30% 40%, rgba(10,40,48,0.95), transparent 60%),
               radial-gradient(ellipse at 75% 65%, rgba(26,10,48,0.85), transparent 65%),
               radial-gradient(ellipse at 90% 10%, rgba(208,32,160,0.18), transparent 55%),
               radial-gradient(ellipse at 5% 90%, rgba(32,208,224,0.16), transparent 55%),
               #0A0820;

  --r-sm: 6px;
  --r: 14px;
  --r-lg: 22px;

  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.7;
  color: var(--ink-1);
  background: var(--grad-mesh);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-1);
}

code, .mono { font-family: var(--font-mono); font-size: 0.86em; }

/* ============ MESH BACKGROUND ============ */
.mesh-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: blobDrift 24s ease-in-out infinite;
}
.mesh-blob-1 { width: 50vw; height: 50vw; left: -10vw; top: -10vw; background: radial-gradient(circle, rgba(32,208,224,0.55), transparent 70%); animation-delay: 0s; }
.mesh-blob-2 { width: 45vw; height: 45vw; right: -10vw; top: 20vh;  background: radial-gradient(circle, rgba(208,32,160,0.45), transparent 70%); animation-delay: -8s; }
.mesh-blob-3 { width: 40vw; height: 40vw; left: 30vw;  bottom: -10vw; background: radial-gradient(circle, rgba(26,10,48,0.95), transparent 70%);  animation-delay: -14s; }
.mesh-blob-4 { width: 35vw; height: 35vw; right: 20vw; bottom: 30vh; background: radial-gradient(circle, rgba(10,40,48,0.9), transparent 70%);    animation-delay: -20s; }

@keyframes blobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(4vw, -3vw) scale(1.08); }
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* ============ TOPBAR ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(10,8,32,0.85), rgba(10,8,32,0.0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-mark svg { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-dot { color: var(--c-cyan); }

.topnav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.topnav a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.topnav a:hover { color: var(--ink-1); }
.topnav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--grad-pulse);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.topnav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-1);
}
.nav-cta:hover { border-color: var(--c-cyan); background: rgba(32,208,224,0.06); }

@media (max-width: 720px) {
  .topnav a:not(.nav-cta) { display: none; }
}

/* ============ HERO ============ */
.hero { padding: clamp(40px, 7vw, 90px) var(--pad-x) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(10,8,32,0.4);
  margin-bottom: 24px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.status-meta { color: var(--ink-3); margin-left: auto; }

.hero-title {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.grad-fill {
  background: var(--grad-pulse);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-lede em { color: var(--c-cyan); font-style: normal; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-pulse);
  color: var(--c-indigo);
  box-shadow: 0 8px 30px -10px rgba(208,32,160,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(32,208,224,0.6); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-1);
}
.btn-ghost:hover { border-color: var(--c-cyan); background: rgba(32,208,224,0.06); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin: 0;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  order: 2;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
  line-height: 1;
}
.hero-stats .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-cyan);
  margin-top: 4px;
  order: 3;
}

/* ============ NEURAL NET ============ */
.hero-net {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.neural-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 20px rgba(32,208,224,0.2));
}
.neural-svg .edges line {
  stroke-dasharray: 4 8;
  animation: neuralPulse 2.8s linear infinite;
  opacity: 0.55;
}
.neural-svg .nodes circle {
  fill: url(#nodeGrad);
  filter: url(#glow);
}
@keyframes neuralPulse {
  to { stroke-dashoffset: -36; }
}

.net-readout {
  position: absolute;
  bottom: 8px; left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(10,8,32,0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.readout-line { display: flex; gap: 14px; }
.readout-line .key { color: var(--ink-3); width: 44px; }
.readout-line .val { color: var(--c-cyan); }

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ============ BENTO ============ */
.bento { padding: var(--section-y) var(--pad-x); max-width: 1320px; margin: 0 auto; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.cell-wide { grid-column: span 2; }
.cell-tall { grid-row: span 2; }

@media (max-width: 980px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .cell-wide { grid-column: span 2; }
  .cell-tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .cell-wide { grid-column: span 1; }
}

.cell {
  position: relative;
  background: linear-gradient(180deg, rgba(26,10,48,0.45), rgba(10,8,32,0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.cell::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-pulse);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.cell:hover { transform: translateY(-2px); }
.cell:hover::before { opacity: 0.6; }

.cell-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.cell-label { color: var(--c-cyan); }
.cell h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.18;
}
.cell p { margin: 0; color: var(--ink-2); font-size: 14px; }
.cell-foot { color: var(--ink-3) !important; font-size: 12px !important; }

/* MORPH cell */
.morph-stage {
  position: relative;
  height: 110px;
  background: rgba(10,8,32,0.5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.morph-mode {
  position: absolute; inset: 14px;
  display: flex; align-items: center; justify-content: space-around; gap: 8px;
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.morph-mode.active { opacity: 1; }
.morph-list { gap: 6px; }
.morph-list span {
  flex: 1; height: 4px;
  background: var(--grad-pulse);
  border-radius: 2px;
  opacity: 0.7;
  animation: listShimmer 3s ease-in-out infinite;
}
.morph-list span:nth-child(1) { animation-delay: 0s; }
.morph-list span:nth-child(2) { animation-delay: 0.2s; }
.morph-list span:nth-child(3) { animation-delay: 0.4s; }
.morph-list span:nth-child(4) { animation-delay: 0.6s; }
.morph-list span:nth-child(5) { animation-delay: 0.8s; }
.morph-list span:nth-child(6) { animation-delay: 1.0s; }
@keyframes listShimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.morph-bars { align-items: flex-end; height: calc(100% - 28px); }
.morph-bars i {
  display: block;
  flex: 1;
  height: var(--h);
  background: var(--grad-pulse);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: barRise 0.5s ease-out backwards;
}
.morph-bars i:nth-child(1) { animation-delay: 0.05s; }
.morph-bars i:nth-child(2) { animation-delay: 0.10s; }
.morph-bars i:nth-child(3) { animation-delay: 0.15s; }
.morph-bars i:nth-child(4) { animation-delay: 0.20s; }
.morph-bars i:nth-child(5) { animation-delay: 0.25s; }
.morph-bars i:nth-child(6) { animation-delay: 0.30s; }
@keyframes barRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.morph-graph { padding: 0 12px; }
.morph-graph svg { width: 100%; height: 100%; }
.morph-graph circle { animation: nodeBeat 1.8s ease-in-out infinite; }
@keyframes nodeBeat { 0%, 100% { r: 4; } 50% { r: 5.5; } }

.morph-tabs {
  display: flex; gap: 8px;
  margin-top: 4px;
}
.morph-tabs button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  transition: all 0.2s;
}
.morph-tabs button:hover { color: var(--ink-1); border-color: var(--line-strong); }
.morph-tabs button.active {
  background: rgba(32,208,224,0.12);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

/* HEATMAP cell */
.heatmap {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  padding: 4px 0;
  min-height: 160px;
}
.heatmap > i {
  background: rgba(32,208,224,0.1);
  border-radius: 3px;
  animation: heatPulse 4s ease-in-out infinite;
}
@keyframes heatPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* LOSS cell */
.lossgraph {
  width: 100%;
  height: 80px;
  margin-top: auto;
}

/* PARAMS cell */
.param-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.param-list li {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
  color: var(--ink-2);
}
.param-list li code { color: var(--c-cyan); }
.param-list li span { color: var(--ink-1); }

/* PAPER cell */
.paper-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.paper-meta .paper-link { color: var(--c-cyan); margin-left: auto; }
.paper-meta .paper-link:hover { color: var(--c-magenta); }

/* ============ MODELS ============ */
.models { padding: var(--section-y) var(--pad-x); max-width: 1320px; margin: 0 auto; }
.model-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.model-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) 2fr minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s, background 0.3s;
}
.model-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(32,208,224,0.04), transparent 60%);
}
@media (max-width: 820px) {
  .model-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    row-gap: 12px;
  }
  .model-row .model-desc { grid-column: 1 / -1; }
  .model-row .model-spec { grid-column: 1 / -1; }
}

.model-id { display: flex; align-items: center; gap: 14px; }
.model-tag {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--grad-pulse);
  color: var(--c-indigo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.model-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
}
.model-desc { color: var(--ink-2); margin: 0; font-size: 14px; }

.model-spec {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.model-spec li {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.model-spec li:first-child { border-left: 0; padding-left: 0; }
.model-spec li span { color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.model-spec li b { color: var(--ink-1); font-weight: 500; font-size: 14px; }

.model-cta {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 18px;
  color: var(--c-cyan);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.model-cta:hover { transform: translateX(4px); border-color: var(--c-cyan); background: rgba(32,208,224,0.1); }

/* ============ SYSTEMS ============ */
.systems { padding: var(--section-y) var(--pad-x); max-width: 1320px; margin: 0 auto; }
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .systems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .systems-grid { grid-template-columns: 1fr; } }

.sys-card {
  position: relative;
  background: linear-gradient(180deg, rgba(10,40,48,0.4), rgba(10,8,32,0.5));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 22px;
  transition: transform 0.3s, border-color 0.3s;
}
.sys-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32,208,224,0.3);
}
.sys-icon { margin-bottom: 18px; }
.sys-card h3 { font-size: 18px; margin-bottom: 8px; }
.sys-card p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ============ TIMELINE / LAB LOG ============ */
.timeline { padding: var(--section-y) var(--pad-x); max-width: 1100px; margin: 0 auto; }
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.log::before {
  content: '';
  position: absolute;
  left: 124px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
}
.log-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 18px 0;
  align-items: start;
  position: relative;
}
.log-item::before {
  content: '';
  position: absolute;
  left: 119px;
  top: 26px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--c-indigo);
  border: 2px solid var(--c-cyan);
  box-shadow: 0 0 12px rgba(32,208,224,0.5);
}
.log-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.log-item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 6px;
}
.log-item p { color: var(--ink-2); margin: 0; font-size: 14px; }

@media (max-width: 600px) {
  .log::before { left: 7px; }
  .log-item { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; }
  .log-item::before { left: 2px; top: 8px; }
  .log-stamp { padding-top: 0; }
}

/* ============ CONTACT ============ */
.contact { padding: var(--section-y) var(--pad-x) calc(var(--section-y) * 0.6); max-width: 1320px; margin: 0 auto; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(26,10,48,0.55), rgba(10,8,32,0.7));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-pulse);
  opacity: 0.18;
  filter: blur(40px);
  z-index: -1;
}
@media (max-width: 820px) {
  .contact-card { grid-template-columns: 1fr; }
}

.contact-copy h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
  line-height: 1.05;
}
.contact-copy p { color: var(--ink-2); margin: 0 0 26px; }

.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.contact-list li {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}
.contact-list li span {
  color: var(--ink-3);
  width: 64px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.contact-list li a { color: var(--c-cyan); transition: color 0.2s; }
.contact-list li a:hover { color: var(--c-magenta); }

.contact-form {
  display: flex; flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-1);
  background: rgba(10,8,32,0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-cyan);
  background: rgba(10,40,48,0.4);
}
.field-area textarea { resize: vertical; min-height: 90px; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-cyan);
  margin: 0; min-height: 1em;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad-x) 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-tag { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.footer-cols a {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--c-cyan); }

.footer-base {
  max-width: 1320px;
  margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
