/* ============================================
   HPNTK — palette pulled directly from the work:
   near-black bg, dusty rose halftone, toxic
   yellow-green fabric, electric-blue sparkle,
   liquid-chrome grey.
   ============================================ */

:root {
  --bg: #0a0a0c;
  --bg-raised: #131316;
  --ink: #f3ede6;
  --ink-dim: #a9a6a3;
  --rose: #a13d42;
  --rose-dim: #5c2a2d;
  --acid: #c3d92e;
  --electric: #5b6ee8;
  --chrome: #9a9a9d;

  --serif: "Fraunces", Georgia, serif;
  --mono: "Space Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 0.95; color: var(--ink); }

/* All paragraph copy mirrors the same small mono treatment
   used for the about-note line. */
p {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 5vw;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* The reveal is unpinned from the wordmark's own position — it's fixed
   to the header band and comes out from the center of the screen on
   hover (desktop), independent of HPNTK staying put on the far left. */
.wordmark-reveal {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 51;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--acid);
  pointer-events: none;
  transition: max-width 0.5s ease, opacity 0.3s ease;
}

/* True hover devices (mouse/trackpad) get the reveal on hover as
   before. Touch devices don't get a real hover state — that's handled
   separately below via a tap-toggled class, so the reveal doesn't get
   stuck open until reload. */
@media (hover: hover) {
  .wordmark:hover .wordmark-reveal {
    max-width: 700px;
    opacity: 1;
  }
}

.wordmark.reveal-open .wordmark-reveal {
  max-width: 700px;
  opacity: 1;
}

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

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Two loops are layered in the same spot; only the active one is
   visible. Clicking HPNTK below crossfades between them. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-video.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-line {
  max-width: 460px;
  margin: 0 auto;
}

/* HPNTK hero mark — ambient random glitch. Every burst is generated
   fresh in JS (Web Animations API) so timing, duration, direction, and
   intensity are never the same twice — see script. */
.hero h1.desktop-mark {
  display: inline-block;
  will-change: transform;
  cursor: pointer;
}

/* Multilingual "Welcome" cycler — lives inside the nav wordmark's
   hover reveal, mirroring its green mono styling and replacing the
   static tagline. Doesn't glitch — each greeting drops in from above
   and slams to a hard stop. */
.wordmark-reveal .welcome-text {
  display: inline-block;
}

.welcome-text.dropping {
  animation: slot-drop 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slot-drop {
  0%   { transform: translateY(-140%); opacity: 0; }
  70%  { transform: translateY(6%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Archive / Featured work ---------- */

.archive { padding: 100px 5vw 140px; }

.archive-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.archive h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.section-sub {
  max-width: 520px;
  margin-bottom: 60px;
}

.archive-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.piece {
  display: flex;
  align-items: center;
  gap: 64px;
}

.piece-media {
  position: relative;
  flex: 0 0 48%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.08);
}

.piece-media img,
.piece-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.piece:hover .piece-media img,
.piece:hover .piece-media video { transform: scale(1.03); }

.piece-info {
  flex: 1;
  text-align: left;
}

.piece-info h3 { font-size: 1.6rem; margin-bottom: 10px; }

.piece-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 12px;
}

.piece-desc,
.piece-concept { margin-bottom: 16px; }

.piece-spec {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  margin-bottom: 18px;
}

.piece-spec li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  padding: 5px 0;
}

.piece-spec li span {
  color: var(--chrome);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Basic deterrent against casual saving of preview media.
   Not bulletproof (screenshots always work) — full-resolution
   files are never served publicly, only through fulfillment. */
img, video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.piece-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--acid);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.piece-link:hover { border-color: var(--acid); }

/* ---------- Shop CTA ---------- */

.shop-cta {
  text-align: center;
  padding: 140px 8vw;
  background: var(--bg-raised);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.shop-cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }

.shop-cta p { margin-bottom: 40px; }

.shop-button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--acid);
  padding: 18px 40px;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shop-button:hover { background: var(--ink); transform: translateY(-2px); }

/* ---------- About ---------- */

.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 8vw;
}

.about h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 24px; }

.about p { margin-bottom: 18px; }

.about-note {
  text-transform: uppercase;
}

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

.site-footer {
  text-align: center;
  padding: 80px 5vw 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer a { opacity: 0.85; transition: opacity 0.2s ease; }
.site-footer a:hover { opacity: 1; color: var(--acid); }

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fine-print {
  margin-top: 30px;
  opacity: 0.6;
}

.copy-mark {
  font-size: 1.35em;
  vertical-align: -0.08em;
  display: inline-block;
}

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

@media (max-width: 720px) {
  .piece { flex-direction: column; gap: 28px; }
  .piece-media { flex-basis: auto; width: 100%; }
  .piece-info { text-align: left; }
}

@media (max-width: 640px) {
  .site-header { padding: 18px 6vw; }
  .archive { padding: 70px 6vw 90px; }
  .shop-cta, .about { padding: 90px 6vw; }

  /* On phone the reveal anchors to the right edge instead of the
     center, growing leftward out from there. */
  .wordmark-reveal {
    top: 29px;
    left: auto;
    right: 6vw;
    transform: translateY(-50%);
  }
}
