/* TalentSights Corporation — site styles. Dark-only, cyberpunk, oversized type. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #06060c;
  --panel: #0d0d1a;
  --ink: #ecebf5;
  --muted: #a9a8c2;
  --magenta: #ff2e88;
  --cyan: #19e3ff;
  --sodium: #ffd400;
  --line: rgba(25, 227, 255, 0.28);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CRT scanlines over everything; purely decorative. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sodium);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--sodium);
  color: #000;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.site-header--solid {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span {
  color: var(--cyan);
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding-block: 0.4rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  transition: right 0.2s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

/* Neon grid floor receding to a cyan horizon. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  right: -50%;
  bottom: -8%;
  height: 62%;
  background:
    linear-gradient(to right, rgba(255, 46, 136, 0.55) 1px, transparent 1px) 0 0 / 90px 90px,
    linear-gradient(to bottom, rgba(255, 46, 136, 0.55) 1px, transparent 1px) 0 0 / 90px 90px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
  animation: floor 4s linear infinite;
}
@keyframes floor {
  to {
    background-position: 0 90px, 0 90px;
  }
}
/* Horizon glow. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(60% 28% at 50% 66%, rgba(25, 227, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 88% 12%, rgba(255, 46, 136, 0.2), transparent 70%);
}

.hero .wrap {
  position: relative;
}

.cebu-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(6, 6, 12, 0.7);
  font-size: 0.95rem;
  color: var(--muted);
}
.cebu-clock time {
  color: var(--cyan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(25, 227, 255, 0.7);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 13vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero h1 .line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
}
.hero h1 .line:nth-child(2) {
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(25, 227, 255, 0.5);
}
.hero h1 .line:nth-child(3) {
  color: var(--magenta);
  text-shadow: 0 0 36px rgba(255, 46, 136, 0.55);
}

/* RGB-split glitch: one burst on load, again on hover. */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before {
  color: var(--cyan);
  text-shadow: none;
  transform: translateX(-0.03em);
}
.glitch::after {
  color: var(--magenta);
  text-shadow: none;
  transform: translateX(0.03em);
}
.hero h1:hover .glitch::before,
.hero h1:hover .glitch::after,
.hero h1.is-booting .glitch::before,
.hero h1.is-booting .glitch::after {
  animation: split 0.9s steps(2, end) 1;
}
.hero h1 .glitch::after {
  animation-delay: 0.05s;
}
@keyframes split {
  0% { opacity: 1; clip-path: inset(10% 0 70% 0); }
  20% { opacity: 1; clip-path: inset(60% 0 8% 0); }
  40% { opacity: 1; clip-path: inset(30% 0 40% 0); }
  60% { opacity: 1; clip-path: inset(75% 0 4% 0); }
  80% { opacity: 1; clip-path: inset(5% 0 80% 0); }
  100% { opacity: 0; clip-path: inset(0 0 0 0); }
}

.hero .lede {
  max-width: 34rem;
  margin: 2.25rem 0 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 1rem 1.9rem;
  background: var(--cyan);
  color: #021014;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 0 0 0 transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--magenta);
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem);
  border-top: 1px solid var(--line);
}

.h2 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* About */
.statement {
  margin: 0;
  max-width: 26em;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 4px solid var(--magenta);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.about-note {
  max-width: 38rem;
  margin: 2rem 0 0 calc(clamp(1rem, 3vw, 2rem) + 4px);
  color: var(--muted);
}

/* Products */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, rgba(25, 227, 255, 0.07), transparent 45%), var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}
.product h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--sodium);
  text-shadow: 0 0 34px rgba(255, 212, 0, 0.35);
}
.product p {
  max-width: 32rem;
  margin: 0 0 1rem;
}
.product .meta {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.product .meta li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

/* The Extempo frame: a 60-second vertical take. */
.frame {
  justify-self: center;
  width: min(100%, 250px);
  aspect-ratio: 9 / 16;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border: 2px solid var(--cyan);
  background:
    radial-gradient(90% 50% at 50% 100%, rgba(255, 46, 136, 0.55), transparent 70%),
    linear-gradient(to bottom, #11112a, #07070f);
  box-shadow: 0 0 0 1px rgba(25, 227, 255, 0.2), 0 0 50px rgba(25, 227, 255, 0.25);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.frame-topic {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.frame-dial {
  position: relative;
  align-self: center;
  width: 7.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.frame-timer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--magenta) 0 270deg, rgba(255, 255, 255, 0.12) 270deg);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%);
  mask: radial-gradient(circle, transparent 54%, #000 55%);
  filter: drop-shadow(0 0 10px rgba(255, 46, 136, 0.7));
}
.frame-count {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}
.frame-rec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.frame-rec i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #ff2e4a;
  box-shadow: 0 0 12px #ff2e4a;
}

/* Contact */
.contact-mail {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(25, 227, 255, 0.45);
  border-bottom: 3px solid var(--magenta);
  padding-bottom: 0.3rem;
}
.contact-mail span {
  display: block;
}
.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--ink);
}
.contact-address {
  margin: 2.5rem 0 0;
  font-style: normal;
  color: var(--muted);
}
.contact-address strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.site-footer p {
  margin: 0;
}
.site-footer .legal {
  color: var(--ink);
  font-weight: 600;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  text-decoration-color: rgba(236, 235, 245, 0.35);
  text-underline-offset: 4px;
}
.site-footer a:hover {
  color: var(--cyan);
}

/* ---------- Legal / 404 pages ---------- */

.doc {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
}
.doc h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.doc .updated {
  margin: 0 0 3rem;
  color: var(--muted);
}
.prose {
  max-width: 44rem;
}
.prose h2 {
  margin: 3rem 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--cyan);
}
.prose p,
.prose li {
  color: #d8d7e6;
}
.prose a {
  color: var(--cyan);
  text-underline-offset: 4px;
}
.prose ul {
  padding-left: 1.25rem;
}

.lost {
  min-height: 70svh;
  display: flex;
  align-items: center;
}
.lost .code {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 28vw, 20rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--magenta);
  text-shadow: 0 0 60px rgba(255, 46, 136, 0.5);
}
.lost p {
  max-width: 28rem;
  margin: 1.5rem 0 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
  }
  .frame {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .nav a:nth-child(1) {
    display: none;
  }
  .hero {
    padding-top: 6rem;
  }
}

@media (min-width: 1200px) {
  .contact-mail span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero::before {
    animation: none;
  }
  .hero h1:hover .glitch::before,
  .hero h1:hover .glitch::after,
  .hero h1.is-booting .glitch::before,
  .hero h1.is-booting .glitch::after {
    animation: none;
  }
  .nav a::after,
  .btn {
    transition: none;
  }
}
