/* ====================================================
   STUDIO 3NA — ONE-PAGE TECHNICAL DRAWING REV 2.0
   Palette: Black / Bone (off-white) / Cyan #32F5FF
   ==================================================== */

:root {
  --cyan: #32F5FF;
  --cyan-dark: #0ABCC4;
  --black: #000000;
  --ink: #0A0A0A;
  --bone: #E8E4D8;
  --bone-dim: rgba(232, 228, 216, 0.55);
  --bone-faint: rgba(232, 228, 216, 0.25);
  --bone-ghost: rgba(232, 228, 216, 0.10);
  --line: rgba(232, 228, 216, 0.18);
  --line-soft: rgba(232, 228, 216, 0.08);

  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-display: 'Archivo Black', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font-mono);
  background: var(--black);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.02em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../img/hana-bg.jpg') center center / cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.sheet {
  position: relative;
  z-index: 1;
}

body {
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
::selection { background: var(--cyan); color: var(--black); }

/* Subtle film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ====================================================
   SHEET — the blueprint container
   ==================================================== */

.sheet {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 2.5vw, 36px);
  background:
    radial-gradient(circle, var(--bone-ghost) 1px, transparent 1px) 0 0 / 24px 24px,
    transparent;
  display: flex;
  flex-direction: column;
}

.frame {
  position: relative;
  flex: 1;
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

/* Corner crosses (+) */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 5;
}
.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: var(--bone-dim);
}
.corner::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-0.5px); }
.corner::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-0.5px); }
.corner.tl { top: -9px; left: -9px; }
.corner.tr { top: -9px; right: -9px; }
.corner.bl { bottom: -9px; left: -9px; }
.corner.br { bottom: -9px; right: -9px; }

/* Registration brackets at corners */
.reg-bracket {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--bone-dim);
  pointer-events: none;
  z-index: 4;
}
.reg-bracket.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.reg-bracket.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.reg-bracket.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.reg-bracket.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ====================================================
   HEAD — title block
   ==================================================== */

.head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: clamp(18px, 2.2vw, 32px) clamp(20px, 2.5vw, 36px);
  border-bottom: 1px solid var(--line-soft);
  gap: 32px;
}

.head-left { display: flex; flex-direction: column; gap: 14px; }

.head-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.04em;
  color: var(--bone);
  font-weight: 900;
  line-height: 1;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.brand-sub .slash { color: var(--bone-faint); margin: 0 6px; }

.specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 8px;
  max-width: 580px;
}
.specs dt { color: var(--bone-dim); font-weight: 400; }
.specs dd { color: var(--bone); }
.specs dd .accent { color: var(--cyan); }

.head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(50, 245, 255, 0.4);
  background: rgba(50, 245, 255, 0.06);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.status-pill .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(50, 245, 255, 0.5);
  animation: led-pulse 1.6s var(--ease) infinite;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(50, 245, 255, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--cyan), 0 0 8px rgba(50, 245, 255, 0.3); }
}

.telemetry {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 4px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.telemetry dt { color: var(--bone-dim); font-weight: 400; }
.telemetry dd { color: var(--bone); font-weight: 500; text-align: right; }

/* ====================================================
   STAGE — main canvas
   ==================================================== */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.8fr) minmax(200px, 1fr);
  align-items: center;
  padding: clamp(20px, 3vw, 40px) clamp(40px, 4vw, 64px);
  min-height: 0;
  gap: clamp(20px, 3vw, 40px);
}

/* Vertical side labels — written vertically using writing-mode */
.vert-label {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-faint);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.vert-label.left {
  left: clamp(4px, 0.8vw, 12px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
.vert-label.right {
  right: clamp(4px, 0.8vw, 12px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}
.vert-label .arrow { color: var(--cyan); }

.col-left, .col-right {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 52px);
  max-width: 280px;
}
.col-right { margin-left: auto; }

.block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  animation: block-in 900ms var(--ease-out-expo) forwards;
  position: relative;
  cursor: default;
}
.col-left .block:nth-child(1) { animation-delay: 1700ms; }
.col-left .block:nth-child(2) { animation-delay: 1850ms; }
.col-right .block:nth-child(1) { animation-delay: 2000ms; }
.col-right .block:nth-child(2) { animation-delay: 2150ms; }

@keyframes block-in {
  to { opacity: 1; transform: translateY(0); }
}

.block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--bone-dim);
  font-size: 11px;
  font-weight: 600;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  transition: border-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
  position: relative;
  will-change: transform;
}
.block.cyan .block-num { border-color: var(--cyan); color: var(--cyan); }

.block-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.05em;
  font-weight: 900;
  color: var(--bone);
  line-height: 1;
  margin-top: 2px;
  transition: color 300ms var(--ease);
  will-change: transform;
}
.block.cyan .block-title { color: var(--cyan); }

.block-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--bone-dim);
  letter-spacing: 0.02em;
  max-width: 240px;
  transition: color 300ms var(--ease);
}

/* Block hover/focus — line draws to the side toward the logo */
.block::before {
  content: '';
  position: absolute;
  top: 11px;
  height: 1px;
  width: 0;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transition: width 400ms var(--ease-out-expo);
  pointer-events: none;
  opacity: 0;
}
.col-left .block::before { left: 28px; }
.col-right .block::before { right: 28px; }

@media (hover: hover) {
  .block:hover .block-num {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(50, 245, 255, 0.5);
  }
  .block:hover .block-title { color: var(--cyan); }
  .block:hover .block-text { color: var(--bone); }
  .block:hover::before {
    width: 60px;
    opacity: 1;
  }
}

/* Mobile tap feedback */
.block:active .block-num {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Center logo */
.center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* Dimension lines */
.dim-top, .dim-right {
  position: absolute;
  color: var(--bone-faint);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.dim-top {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  justify-content: space-between;
}
.dim-top::before, .dim-top::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bone-faint);
  margin: 0 8px;
}
.dim-top span { padding: 0 6px; }

.dim-right {
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  height: 60%;
}
.dim-right::before, .dim-right::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--bone-faint);
  margin: 8px 0;
}
.dim-right span {
  writing-mode: vertical-rl;
  padding: 6px 0;
}

.baseline {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bone-faint);
  padding: 0 8%;
}
.baseline .label { padding-right: 12px; }
.baseline .line {
  flex: 1;
  height: 1px;
  background: var(--bone-faint);
}

.ticks {
  position: absolute;
  bottom: -52px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 9px;
  color: var(--bone-faint);
  letter-spacing: 0.1em;
  padding: 0 16%;
}
.ticks span { position: relative; }
.ticks span::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 1px;
  height: 5px;
  background: var(--bone-faint);
}

/* THE LOGO */
.logo {
  font-family: var(--font-display);
  font-size: clamp(96px, 19vw, 280px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  position: relative;
  z-index: 2;
  user-select: none;
  transition: transform 600ms var(--ease);
}
.logo .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  animation: logo-char-in 1.2s var(--ease-out-expo) forwards;
}
.logo .char.c-3 { color: var(--bone); animation-delay: 1300ms; }
.logo .char.c-n { color: var(--bone); animation-delay: 1450ms; }
.logo .char.c-a {
  color: var(--cyan);
  animation: logo-char-in 1.2s var(--ease-out-expo) 1600ms forwards,
             cyan-flicker 200ms steps(2) 2800ms 3,
             cyan-breathe 4s var(--ease) 3400ms infinite;
  font-style: italic;
  text-shadow:
    0 0 28px rgba(50, 245, 255, 0.6),
    0 0 60px rgba(50, 245, 255, 0.35);
}
@keyframes logo-char-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cyan-flicker {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 28px rgba(50, 245, 255, 0.6), 0 0 60px rgba(50, 245, 255, 0.35);
  }
  50% {
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(50, 245, 255, 0.3), 0 0 20px rgba(50, 245, 255, 0.15);
  }
}
@keyframes cyan-breathe {
  0%, 100% {
    text-shadow:
      0 0 28px rgba(50, 245, 255, 0.6),
      0 0 60px rgba(50, 245, 255, 0.35);
  }
  50% {
    text-shadow:
      0 0 36px rgba(50, 245, 255, 0.75),
      0 0 80px rgba(50, 245, 255, 0.45),
      0 0 120px rgba(50, 245, 255, 0.2);
  }
}

/* Cyan electric line that traces under the logo on entry */
.logo-trace {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  height: 1.5px;
  width: 0;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(50, 245, 255, 0.5);
  z-index: 3;
  pointer-events: none;
  animation: trace-draw 1.4s var(--ease-out-expo) 1500ms forwards,
             trace-fade 800ms var(--ease) 3200ms forwards;
}
@keyframes trace-draw {
  to { width: 78%; }
}
@keyframes trace-fade {
  to { opacity: 0; }
}

/* Halo glow behind logo */
.center::before {
  content: '';
  position: absolute;
  width: 65%;
  height: 70%;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(ellipse at center, rgba(50, 245, 255, 0.18) 0%, transparent 60%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: halo-enter 1.6s var(--ease-out-expo) 1500ms forwards,
             halo-pulse 6s var(--ease) 3100ms infinite;
}
@keyframes halo-enter {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Scan-line sweep */
/*.center::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 0; bottom: 0;*/
/*  left: -10%;*/
/*  width: 60px;*/
/*  background: linear-gradient(90deg, transparent, rgba(50, 245, 255, 0.18), transparent);*/
/*  pointer-events: none;*/
/*  z-index: 3;*/
/*  animation: scan 9s linear infinite;*/
/*  animation-delay: 3s;*/
/*}*/
@keyframes scan {
  0% { left: -10%; }
  100% { left: 110%; }
}

/* ====================================================
   FOOT — terminal + transmission
   ==================================================== */

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 32px) 0;
  border-top: 1px solid var(--line-soft);
  align-items: end;
  position: relative;
}

.terminal {
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(12px);
  animation: block-in 900ms var(--ease-out-expo) 2300ms forwards;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(50, 245, 255, 0.03);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.terminal-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bone-dim);
}
.terminal-head-left .led-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: led-pulse 1.6s var(--ease) infinite;
}
.terminal-head-left .label { color: var(--bone); font-weight: 500; }
.terminal-head-right { color: var(--bone-faint); }

.terminal-body {
  padding: 14px 16px 18px;
  font-family: var(--font-mono);
  line-height: 1.65;
  min-height: 160px;
}

.tty-line {
  display: block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
  color: var(--bone);
  font-size: 12px;
}
.tty-line.in { opacity: 1; transform: translateX(0); }
.tty-line .prompt { color: var(--cyan); margin-right: 8px; }
.tty-line .cmd { color: var(--bone); }
.tty-line .key { color: var(--bone-dim); }
.tty-line .val { color: var(--bone); }
.tty-link {
  color: inherit;
  text-decoration: none;
}
.tty-link:hover {
  color: #ff5555;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tty-line .ok { color: var(--cyan); }
.tty-line .accent { color: var(--cyan); }
.tty-line .arr { color: var(--cyan); margin-right: 6px; }
.tty-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursor-blink 1s steps(2) infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Transmission area */
.transmission {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: block-in 900ms var(--ease-out-expo) 2500ms forwards;
}

.transmission-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.transmission-label .arrow-down { color: var(--cyan); }

.contact-row {
  display: inline-flex;
  align-items: stretch;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--cyan);
  background: rgba(50, 245, 255, 0.04);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-right: none;
  transition: color 220ms var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-100%);
  transition: transform 320ms var(--ease);
  z-index: 0;
}
.contact-btn > * { position: relative; z-index: 1; }
.contact-btn:hover { color: var(--black); }
.contact-btn:hover::before { transform: translateX(0); }

.copy-btn {
  padding: 12px 16px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(50, 245, 255, 0.04);
  transition: all 220ms var(--ease);
  min-width: 70px;
  text-align: center;
}
.copy-btn:hover, .copy-btn.copied {
  background: var(--cyan);
  color: var(--black);
}

.direct-line {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.direct-line .num { color: var(--bone); }

/* Footer marquee */
.foot-marquee {
  grid-column: 1 / -1;
  height: 28px;
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  margin-left: calc(clamp(20px, 2.5vw, 32px) * -1);
  margin-right: calc(clamp(20px, 2.5vw, 32px) * -1);
  padding: 0 clamp(20px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.foot-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-x 60s linear infinite;
}
.foot-marquee-track > span {
  display: inline-flex;
  align-items: center;
  padding-right: 36px;
  flex-shrink: 0;
}
.foot-marquee-track > span::after {
  content: '·';
  color: var(--cyan);
  margin-left: 36px;
}
.foot-marquee-track > span.copyright::after { content: ''; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====================================================
   BOOT — loading overlay
   ==================================================== */

.boot {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: boot-fade 700ms var(--ease) 1100ms forwards;
}
.boot-inner {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
}
.boot-inner::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: led-pulse 1s var(--ease) infinite;
}
@keyframes boot-fade {
  to { opacity: 0; visibility: hidden; }
}

/* Frame draw-in */
.frame {
  clip-path: inset(0 100% 0 0);
  animation: frame-reveal 900ms var(--ease-out-expo) 1200ms forwards;
}
@keyframes frame-reveal {
  to { clip-path: inset(0 0 0 0); }
}

/* Sections fade in after frame is drawn */
.head, .stage, .foot {
  opacity: 0;
  animation: section-in 600ms var(--ease) forwards;
}
.head { animation-delay: 1400ms; }
.stage { animation-delay: 1500ms; }
.foot { animation-delay: 1700ms; }

@keyframes section-in { to { opacity: 1; } }

/* Mobile-only tagline (hidden on desktop) */
.mobile-tagline { display: none; }
.mobile-specs { display: none; }

/* ====================================================
   STUDIO LOGO — official mark (3NA + Hana flower)
   Used in: header (with wordmark), bottom-right stamp (filigrane)
   ==================================================== */

.studio-logo {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABhCAYAAAAeJqnsAAAZQElEQVR42u1de5xVVb3//vY+M8Pw8AFSoCD4aCQBNUmiBBvMq2akxAUUH5n2MG9l+eniras5kd3Ma3mvZX7KFLW6Pmb0goA8RB2VFDW1TIkQ8YE4DqgkDDCcOWfv7/1j/5az2Pc81j7nzIzMZ9bnsz9n5py911p7rd/j+3ustYBeXkgKSVmxYsWAlStXrliwYMF4AGhsbPTRV+D19hd85JFHfBFhOp2+fvDgwSfX1NQ0L1q06ODZs2cHJL0+AujFpbGx0Z86dWq2qalpzsiRI7/8xhtv/CGTyfw6lUo9u3DhwkEA2NDQ4PURQC8sDQ0N3po1a7h06dKh+++//42tra0vTpgw4funn376rTt37vxVKpVaISKsr6/3AEifMuiF3A8AixYtun3VqlW86qqrRpK8LQiCgOShd99998/uv//+/wSA5ubmVDkYo2+0P5iTLwsWLDjmqaee4vz58y8kOZtRCUi+R/Kge+6557fLly+fqhPpJZn05ubmVB+G+OAifw8AlixZsmrx4sVPkhxKcgfJLMmMEsLf161bd9CCBQt+3tzcPNAFC5D04tbD0qVL99mbLYpUb+R+EQmXLFkyoba2dvK6devGAPg1gAEAAn3nLIAj6urqrlu9evWPqqurT5k3b969JD0RCfMRlPntgQceOJDkZ8MwPCObzR7Tv3//KQBeb2ho8ObNmxf2EcAHQAgAuGrr1q23XXzxxUMAzNDJ9633zgCYff755zffdNNNTz/22GNDReRtBYQ0or6pqckTkQAAli1b9kkR+Vo2m51WU1NzQCqVwsCB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3LGLqPL4P+G6Kl2fda/vPQwccekpwA4Kvo3DY17yNhGIYdHR0/r62t3ZCkjXQ6Pa66uvobDqacQfoPIsrf/3dF54VQufntTQD/gYRH5caZVdu/HFGmt0u7rYkaiO2gMYzkRSSX6Xq9JGUnyQdJnmct7uwdR6nuZaWkTQ1VP9sHPY9AtMRskro+D0aUwlWLzuVdbyFa6fMEgEdEZG0uCVNCX5IkpgRJOayENqgYKtEWLZU6RDppu/8H7hWp4+9ruHcAAAAASUVORK5CYII=");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 4px rgba(50, 245, 255, 0.0));
  transition: filter 400ms var(--ease);
}

/* Header logo block — replaces the bare text "STUDIO 3NA" */
.head-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.head-logo {
  width: 44px;
  height: 33px;
  flex-shrink: 0;
  position: relative;
  opacity: 0;
  transform: translateY(-4px);
  animation: head-logo-in 800ms var(--ease-out-expo) 1500ms forwards;
}
@keyframes head-logo-in {
  to { opacity: 1; transform: translateY(0); }
}
/* Cyan glow on hover */
.head-logo:hover .studio-logo {
  filter: drop-shadow(0 0 8px rgba(50, 245, 255, 0.5));
}

/* The bottom-right STAMP — like an architect's seal on a blueprint */
.studio-stamp {
  position: absolute;
  /* Place it in the empty space between the terminal (left) and the contact (right) */
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%);
  width: clamp(110px, 10vw, 150px);
  height: clamp(82px, 7.5vw, 112px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  animation: stamp-in 1.4s var(--ease-out-expo) 2400ms forwards;
}
.studio-stamp .studio-logo {
  opacity: 0.08;
  filter: none;
}
.studio-stamp .stamp-ring {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(50, 245, 255, 0.18);
  border-radius: 50%;
  opacity: 0;
  animation: stamp-ring-in 800ms var(--ease-out-expo) 2900ms forwards;
}
.studio-stamp .stamp-ring::before {
  /* Inner dashed ring for extra "seal" feel */
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(50, 245, 255, 0.12);
  border-radius: 50%;
}
.studio-stamp .stamp-label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-stamp .stamp-label::before,
.studio-stamp .stamp-label::after {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--bone-faint);
}
@keyframes stamp-in {
  to { opacity: 1; }
}
@keyframes stamp-ring-in {
  to { opacity: 1; }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

@media (max-width: 1024px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .col-left, .col-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 100%;
    margin: 0;
  }
  .col-left { order: 1; }
  .center { order: 2; min-height: 220px; margin: 32px 0 56px; }
  .col-right { order: 3; }
  .vert-label { display: none; }
  .head { grid-template-columns: 1fr; gap: 20px; }
  .head-right { align-items: flex-start; text-align: left; }
}

@media (max-width: 720px) {
  /* ───────────────────────────────────────────────────
     MOBILE REORDER — logo first, then tagline, then blocks
     ─────────────────────────────────────────────────── */
  .frame {
    display: flex;
    flex-direction: column;
  }
  .head { order: 1; }     /* Compact studio header */
  .stage { order: 2; }    /* Logo + tagline + blocks */
  .foot { order: 3; }     /* Terminal + contact */

  .sheet { padding: 14px; }

  /* HEAD — compact on mobile: hide specs, telemetry shows only essential */
  .head { padding: 16px 14px; gap: 14px; }
  .head-left { gap: 8px; }
  .specs { display: none; }       /* Move tech specs to dedicated section */
  .telemetry { display: none; }   /* Move telemetry too */

  /* STAGE — fully reordered: logo first, then mobile tagline, then blocks */
  .stage {
    display: flex;
    flex-direction: column;
    padding: 8px 14px 24px;
    gap: 0;
  }

  /* Re-parent the mobile-tagline visually after .center using flex order */
  .center {
    order: 1;
    margin: 8px 0 0;
    min-height: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .col-left { order: 3; }
  .col-right { order: 4; }
  .col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 0;
  }
  .col-left { margin-top: 8px; }
  .col-right { margin-top: 28px; }

  /* The mobile tagline lives inside .center — move it out via absolute positioning logic, OR keep it in but display: block after the logo */
  .center .mobile-tagline {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 24px auto 0;
    padding: 0;
    width: 100%;
  }

  .mobile-tagline-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bone-faint);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-tagline-label::before, .mobile-tagline-label::after {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--bone-faint);
  }
  .mobile-tagline-text {
    font-family: var(--font-display);
    font-size: clamp(22px, 7vw, 32px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--bone);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mobile-tagline-text .line-anim {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    animation: tagline-in 700ms var(--ease-out-expo) forwards;
  }
  .mobile-tagline-text .line-anim:nth-child(1) { animation-delay: 2200ms; }
  .mobile-tagline-text .line-anim:nth-child(2) { animation-delay: 2350ms; }
  .mobile-tagline-text .line-anim:nth-child(3) { animation-delay: 2500ms; }
  .mobile-tagline-text .line-anim:nth-child(4) { animation-delay: 2650ms; }
  .mobile-tagline-text .cyan-em {
    color: var(--cyan);
    font-style: italic;
    text-shadow: 0 0 16px rgba(50, 245, 255, 0.4);
  }
  @keyframes tagline-in {
    to { opacity: 1; transform: translateY(0); }
  }

  /* FOOT — terminal + contact + specs/telemetry block */
  .foot {
    display: flex;
    flex-direction: column;
    padding: 24px 14px 0;
    gap: 24px;
  }

  /* Inject a "tech specs" panel on mobile (we'll add it via CSS pseudo or HTML) */

  .col-left, .col-right { grid-template-columns: 1fr; }
  .transmission { align-items: flex-start; width: 100%; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9px; }
  .contact-row { width: 100%; }
  .contact-btn { flex: 1; justify-content: space-between; font-size: 11px; padding: 12px 14px; }
  .terminal { max-width: 100%; }
  .terminal-body { min-height: 140px; font-size: 11px; }
  .tty-line { font-size: 11px; }
  .dim-top, .dim-right, .baseline, .ticks { display: none; }
  .corner { width: 14px; height: 14px; }
  .corner.tl { top: -7px; left: -7px; }
  .corner.tr { top: -7px; right: -7px; }
  .corner.bl { bottom: -7px; left: -7px; }
  .corner.br { bottom: -7px; right: -7px; }
  .reg-bracket { width: 20px; height: 20px; }
  .foot-marquee {
    font-size: 9px;
    margin-left: -14px;
    margin-right: -14px;
    margin-bottom: -14px;
    padding: 0 14px;
  }
  .status-pill { font-size: 10px; padding: 7px 12px; }

  /* Mobile tech specs panel */
  .mobile-specs {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 18px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--line-soft);
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
  }
  .mobile-specs .mobile-specs-row {
    display: contents;
  }
  .mobile-specs .mobile-specs-key {
    color: var(--bone-dim);
    font-weight: 400;
  }
  .mobile-specs .mobile-specs-val {
    color: var(--bone);
    font-weight: 500;
  }

  /* Smaller header logo on mobile */
  .head-logo { width: 36px; height: 27px; }
  /* Hide the architect stamp on mobile — it would overlap the marquee */
  .studio-stamp { display: none; }

  /* Bigger, more impactful logo on mobile */
  .logo { font-size: clamp(110px, 32vw, 180px); }
}

@media (max-width: 420px) {
  .logo { font-size: clamp(100px, 34vw, 150px); }
  .brand-sub .slash { display: none; }
  .brand-sub { display: block; margin-top: 4px; }
  .head-title { gap: 8px; }
  .mobile-tagline-text { font-size: clamp(20px, 6.5vw, 28px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .frame { clip-path: none; }
  .boot { display: none; }
  .head, .stage, .foot, .block, .terminal, .transmission { opacity: 1; transform: none; }
  .logo .char { opacity: 1; transform: none; }
}

/* ====================================================
   CUSTOM CURSOR — desktop only
   ==================================================== */

body.has-cursor { cursor: none; }

.cursor-cross {
  position: fixed;
  top: 0; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
  z-index: 9998;
}
.cursor-cross::before,
.cursor-cross::after {
  content: '';
  position: absolute;
  background: var(--cyan);
}
.cursor-cross::before {
  left: -100vw; right: -100vw;
  height: 1px; top: 0;
  opacity: 0.20;
}
.cursor-cross::after {
  top: -100vh; bottom: -100vh;
  width: 1px; left: 0;
  opacity: 0.20;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border: 1.5px solid var(--bone-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: transparent;
  transition: width 200ms var(--ease),
              height 200ms var(--ease),
              background 200ms var(--ease),
              border-color 200ms var(--ease);
}
.cursor-dot.over-cta {
  width: 26px; height: 26px;
  background: var(--cyan);
  border-color: var(--cyan);
}

.cursor-coords {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Hide cursor elements on touch/mobile */
@media (hover: none), (pointer: coarse) {
  .cursor-cross,
  .cursor-dot,
  .cursor-coords { display: none !important; }
}
