/* ============================================================
   Cicala Studio — Full-Bleed Ice
   A bright ice-blue field flooded by an oversized counter-
   scrolling marquee of the studio name. Bold, inverted, kinetic.
   ============================================================ */

:root {
  --ice-top: #95d2ff;
  --ice-bot: #72bfff;
  --ice: #7fc8ff;
  --ink: #0a0b0f;
  --paper: #eef6ff;

  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 3.2vw, 2.4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: var(--display);
  color: var(--ink);
  background: linear-gradient(180deg, var(--ice-top), var(--ice-bot));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}

/* Subtle print-grain texture over the flat color */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top / bottom chrome bars ---------- */
.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--pad);
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: fade-down 0.7s ease 0.1s forwards;
}
.bar-bottom { animation-name: fade-up; }

.brand { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 800; letter-spacing: 0.05em; }
.cicada { display: inline-flex; }
.cicada svg { height: 1.25em; width: auto; display: block; }
.status { color: rgba(10, 11, 15, 0.62); }
.disciplines .sep-dot { font-style: normal; margin: 0 0.45em; }

/* ---------- Marquee stage ---------- */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.05rem, 0.6vh, 0.4rem);
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden;
  opacity: 0;
  animation: fade-in 0.9s ease 0.15s forwards;
}

.track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-weight: 900;
  font-size: min(22vw, 33vh);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  will-change: transform;
  animation: scroll 78s linear infinite;
}
.track.reverse {
  animation-direction: reverse;
  animation-duration: 98s;
}

.unit { display: inline-flex; align-items: center; }
.word { padding: 0 0.06em; }

/* Outline (wireframe) row — keeps the solid/outline motif */
.marquee.outline .word {
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.32vw, 3px) var(--ink);
}

/* Brand-mark separator: a black cell with an ice "window" */
.sep {
  flex: 0 0 auto;
  width: 0.32em;
  height: 0.32em;
  margin: 0 0.26em;
  background: var(--ink);
  position: relative;
}
.sep::after {
  content: "";
  position: absolute;
  inset: 30%;
  background: var(--ice-bot);
}

/* ---------- Contact button ---------- */
.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1.15em;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.contact .arrow { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.contact:hover { transform: translateY(-2px); }
.contact:hover .arrow { transform: translateX(5px); }
.contact:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Keyframes ---------- */
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .track { font-size: 26vw; }
  .bar { font-size: 10px; letter-spacing: 0.1em; gap: 0.6rem; }
  .contact { padding: 0.7em 1em; letter-spacing: 0.1em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bar, .marquee { opacity: 1; transform: none; }
  .track { justify-content: center; }
}
