/* CHI SONO — TERMINAL STYLE */

.cs-terminal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.cs-terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

/* FOTO */

.cs-terminal-photo {
  position: relative;
}

.cs-terminal-photo img {
  width: 100%;
  height: clamp(400px, 50vw, 580px);
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
  filter: brightness(0.8) saturate(0.9);
}

.cs-terminal-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(to top, rgba(21,21,20,0.5) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* READOUT */

.cs-readout {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

.cs-readout-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(200, 169, 126, 0.2);
}

.cs-readout-header-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a97e;
  margin-bottom: 10px;
}

.cs-readout-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1;
}

.cs-readout-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.cs-readout-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: baseline;
}

.cs-readout-key {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 169, 126, 0.65);
  white-space: nowrap;
}

.cs-readout-key::before {
  content: "› ";
  color: rgba(200, 169, 126, 0.4);
}

.cs-readout-val {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.cs-readout-val em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.85rem;
}

/* CURSOR BLINK */

.cs-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #c8a97e;
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1.1s step-end infinite;
  opacity: 0.7;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}

/* STATUS BAR */

.cs-status-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  background: rgba(200, 169, 126, 0.05);
  border: 1px solid rgba(200, 169, 126, 0.14);
  border-radius: 6px;
  margin-bottom: 28px;
}

.cs-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8a97e;
  box-shadow: 0 0 8px rgba(200, 169, 126, 0.7);
  flex-shrink: 0;
  animation: recBlink 1.6s ease-in-out infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.cs-status-text {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 169, 126, 0.75);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .cs-terminal-grid {
    grid-template-columns: 1fr;
  }

  .cs-terminal-photo img {
    height: 56vw;
    min-height: 280px;
  }

  .cs-readout-row {
    grid-template-columns: 130px 1fr;
  }
}

@media (max-width: 640px) {
  .cs-terminal {
    padding: 100px 0 60px;
  }

  .cs-terminal-photo img {
    height: 70vw;
  }

  .cs-readout-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cs-readout-header h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}
