/* Halfwake Studio — V3 Full-Bleed Awwwards Technology Edition (100vw Edge-to-Edge) */
:root {
  --bg: #050507;
  --surface: #0b0d12;
  --surface-hover: #11151e;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f7fa;
  --muted: #98a2b3;
  --dim: #667085;
  --cyan: #38bdf8;
  --indigo: #818cf8;
  --emerald: #34d399;
  --gutter: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); max-width: 100%; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: 'Space Grotesk', 'Inter', 'PingFang SC', sans-serif; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: inherit; text-decoration: none; }

/* Top 2px Scroll Progress Rail */
#scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  z-index: 200;
  pointer-events: none;
}

/* Snappy 0->100% Awwwards Preloader Curtain */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #040507;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  transition: transform 0.75s var(--ease), opacity 0.55s ease;
}
.preloader.done {
  transform: translateY(-100%);
  pointer-events: none;
}
.preloader-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.preloader-num {
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text);
}

/* Full-Bleed Sticky Architectural Topbar (100vw) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 62px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 7, 0.58);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.telemetry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.lang-switch {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.lang-switch:hover { background: var(--text); color: var(--bg); }

/* =========================================================
   SECTION 0: 100vw x 100vh FULL-BLEED CINEMA HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  padding: 96px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
  z-index: 0;
  transform: scale(1.02);
  animation: heroDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroDrift {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.82) 0%, rgba(5,5,7,0.34) 46%, rgba(5,5,7,0.06) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.45) 0%, rgba(5,5,7,0.04) 42%, rgba(5,5,7,0.88) 100%);
}

.hero-top-meta,
.hero-center,
.hero-bottom {
  position: relative;
  z-index: 2;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.hero-center {
  margin: auto 0;
  padding: 36px 0 28px;
}

.hero-title {
  font-size: clamp(3.1rem, 8.2vw, 9.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.048em;
  text-transform: uppercase;
  max-width: 100%;
}

.hero-title .row { display: block; overflow: hidden; }
.hero-title .row span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease);
}
body.loaded .hero-title .row span { transform: translateY(0); }
body.loaded .hero-title .row:nth-child(2) span { transition-delay: 0.09s; }
body.loaded .hero-title .row:nth-child(3) span { transition-delay: 0.18s; }

.hero-title .accent {
  background: linear-gradient(95deg, #ffffff 0%, #7dd3fc 52%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 32px;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-lead {
  font-size: clamp(14px, 1.15vw, 17px);
  color: rgba(245, 247, 250, 0.8);
  max-width: 640px;
  line-height: 1.6;
}

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(5,5,7,0.62);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}
.jump-pill:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.scroll-cue {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* =========================================================
   FULL-BLEED SECTION HEADER BAR (100vw)
   ========================================================= */
.band-head {
  width: 100%;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.band-head .num { color: var(--cyan); }

/* =========================================================
   TIER 1: 50vw / 50vw EDGE-TO-EDGE FLAGSHIP SPLIT
   ========================================================= */
.flagship-split {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.flagship-col {
  position: relative;
  padding: clamp(28px, 3.2vw, 52px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg);
  transition: background 0.35s ease;
}

.flagship-col:first-child {
  border-right: 1px solid var(--line);
}

.flagship-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 25%), rgba(56, 189, 248, 0.09), transparent 48%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.flagship-col.indigo::before {
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 25%), rgba(129, 140, 248, 0.1), transparent 48%);
}
.flagship-col:hover::before { opacity: 1; }

.col-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.08);
}
.badge.indigo {
  border-color: rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  background: rgba(129, 140, 248, 0.1);
}

.flagship-col h2 {
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin-top: 14px;
}

.flagship-col .desc {
  margin-top: 12px;
  font-size: clamp(14px, 1.05vw, 15.5px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.62;
}

/* Interactive Cinema Monitor */
.stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
}

.stage-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.hud {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5,5,7,0.5) 0%, transparent 30%, transparent 65%, rgba(5,5,7,0.82) 100%);
  pointer-events: none;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hud-tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(5,5,7,0.68);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
}

/* Interactive AI Reception Console */
.sim-box {
  width: 100%;
  aspect-ratio: 16 / 9.4;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #070910, #0c101b);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.sim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.sim-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 4px 6px 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.16) transparent;
}
.sim-feed::-webkit-scrollbar { width: 4px; }
.sim-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 4px; }

.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.msg.show { opacity: 1; transform: translateY(0); }
.msg.event {
  align-self: center;
  max-width: 100%;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fde68a;
  font-size: 11px;
}
.msg.ai {
  align-self: flex-start;
  background: rgba(129, 140, 248, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.34);
  color: #e0e7ff;
}
.msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}
.msg.ticket {
  align-self: stretch;
  max-width: 100%;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #a7f3d0;
  font-size: 11.5px;
}

/* Switcher Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill-btn {
  appearance: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pill-btn:hover { color: var(--text); border-color: var(--line-strong); }
.pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}
.flagship-col.indigo .pill-btn.active {
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.58);
  color: #e0e7ff;
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,255,255,0.16); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* =========================================================
   TIER 2: FOCUS-INDUSTRIES FULL-BLEED SPEC INDEX TABLE
   ========================================================= */
.labs-table {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.lab-row {
  display: grid;
  grid-template-columns: 120px 1.15fr 0.9fr 2fr 160px;
  align-items: center;
  gap: 24px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.lab-row:last-child { border-bottom: none; }

.lab-row.header {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255,255,255,0.015);
}

.lab-row.item:hover {
  background: var(--surface-hover);
}
.lab-row.item:hover .row-cta {
  color: var(--text);
  transform: translateX(4px);
}

.row-code { font-size: 12px; color: var(--cyan); letter-spacing: 0.08em; }
.row-name { font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-weight: 600; letter-spacing: -0.02em; }
.row-cat { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.row-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.row-cta {
  justify-self: end;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
}

/* Full-Bleed Architectural Spec Strip */
.spec-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.spec-cell {
  padding: 28px var(--gutter);
  border-right: 1px solid var(--line);
}
.spec-cell:last-child { border-right: none; }
.spec-cell .k { font-size: 10.5px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.spec-cell strong { display: block; margin-top: 8px; font-size: 17px; font-weight: 600; }
.spec-cell p { margin-top: 5px; font-size: 13px; color: var(--muted); }

/* Full-Bleed Footer */
footer {
  width: 100%;
  padding: 28px var(--gutter) 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--dim);
}
.f-links { display: flex; flex-wrap: wrap; gap: 22px; }
.f-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; }
  .flagship-split { grid-template-columns: 1fr; }
  .flagship-col { min-width: 0; }
  .flagship-col:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .lab-row.header { display: none; }
  .lab-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px var(--gutter);
  }
  .row-cta { justify-self: start; margin-top: 6px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(2) { border-right: none; }
  .spec-cell:nth-child(1), .spec-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }

  .topbar {
    height: 56px;
    padding: 0 16px;
  }
  .brand { font-size: 12px; letter-spacing: 0.12em; gap: 8px; }
  .brand img { width: 22px; height: 22px; }
  .nav-links, .telemetry { display: none; }

  .preloader-top {
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
  }

  /* Hero Mobile Layout */
  .hero {
    min-height: 100svh;
    padding: 76px var(--gutter) 24px;
    gap: 18px;
  }
  .hero-bg-img {
    object-position: 68% center;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5,5,7,0.72) 0%, rgba(5,5,7,0.42) 38%, rgba(5,5,7,0.92) 100%);
  }
  .hero-top-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 4px;
  }
  .hero-top-meta span:nth-child(2),
  .hero-top-meta span:nth-child(3) {
    display: none;
  }
  .hero-center {
    margin: auto 0;
    padding: 12px 0 8px;
  }
  .hero-title {
    font-size: clamp(2.15rem, 11.2vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    word-break: break-word;
  }
  .hero-bottom {
    padding-top: 18px;
    gap: 14px;
  }
  .hero-lead {
    font-size: 14px;
    line-height: 1.55;
  }
  .hero-jump {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .jump-pill {
    justify-content: center;
    padding: 10px 10px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
  }
  .jump-pill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .scroll-cue { display: none; }

  /* Band Header */
  .band-head {
    padding: 14px var(--gutter);
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 6px;
  }

  /* Flagship Columns */
  .flagship-col {
    padding: 24px var(--gutter) 28px;
    gap: 18px;
  }
  .col-top {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .flagship-col h2 {
    font-size: clamp(1.6rem, 7.2vw, 2.2rem);
    line-height: 1.1;
    margin-top: 10px;
  }
  .flagship-col .desc {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.55;
  }

  /* Video Stage HUD on Mobile */
  .stage-box {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }
  .hud { padding: 10px; }
  .hud-row { font-size: 9.5px; gap: 6px; }
  .hud-tag {
    padding: 3px 7px;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hud-row:last-child .hud-tag:last-child { display: none; }

  /* AI Reception Simulator on Mobile — Tall Smartphone Chat Height */
  .sim-box {
    aspect-ratio: auto;
    height: 390px;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .sim-top {
    font-size: 10px;
    gap: 8px;
    padding-bottom: 8px;
  }
  .sim-top span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .msg {
    max-width: 92%;
    font-size: 12.5px;
    padding: 8px 11px;
    line-height: 1.42;
  }
  .msg.event { font-size: 10.5px; text-align: center; }
  .msg.ticket { font-size: 11px; }

  /* Switcher Pills */
  .pills {
    gap: 6px;
    margin-top: 12px;
  }
  .pill-btn {
    padding: 6px 11px;
    font-size: 11px;
  }

  /* CTA Buttons */
  .cta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 14px;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Labs Table */
  .lab-row {
    padding: 20px var(--gutter);
    gap: 6px;
  }
  .row-name { font-size: 1.2rem; }
  .row-cat { font-size: 11px; }
  .row-desc { font-size: 13.5px; }

  /* Spec Strip & Footer */
  .spec-strip { grid-template-columns: 1fr; }
  .spec-cell {
    padding: 20px var(--gutter);
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .spec-cell:last-child { border-bottom: none; }
  footer {
    padding: 24px var(--gutter) 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
  }
  .f-links { gap: 14px 18px; }
}
