/* ===================================================================
   PGXR STUDIO — UNDER CONSTRUCTION TEASER
   Editorial Typography Wall — Master Stylesheet v2.0.0
   =================================================================== */

/* ── Font Face Declarations ────────────────────────────────────────── */
@font-face {
  font-family: 'Racleys';
  src: url('fonts/Racleys-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Racleys';
  src: url('fonts/Racleys-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Racleys';
  src: url('fonts/Racleys-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties (Design Tokens) ─────────────────────────── */
:root {
  /* Canvas — Rich obsidian black, zero-reflection */
  --obsidian: #080609;
  --obsidian-rgb: 8, 6, 9;

  /* Studio Vermillion — High-intensity neon-warm red */
  --vermillion: #F83822;
  --vermillion-rgb: 248, 56, 34;
  --vermillion-deep: #D94514;

  /* Text Hierarchy */
  --text-primary: #FFFFFF;
  --text-secondary: #A5A2A6;
  --text-muted: #5A575C;

  /* Glass Surfaces */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-display: 'Racleys', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-base: 400ms var(--ease-out-expo);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--obsidian);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  line-height: 1.6;
}

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

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ── Noise Overlay ───────────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ===================================================================
   CANVAS — MASTER CONTAINER
   =================================================================== */
.canvas {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--obsidian);
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) clamp(var(--space-lg), 5vw, var(--space-3xl));
  overflow: hidden;
}

/* ── Structural Grid Background Layer ─────────────────────────────── */
.grid-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(248, 56, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 56, 34, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
}

/* ===================================================================
   TOP NAVIGATION — Extreme Minimalism
   =================================================================== */
.top-nav {
  position: relative;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out-expo) 0.2s forwards;
}


/* Nav links — minimal, low-contrast */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--vermillion);
}

/* ===================================================================
   THE TYPOGRAPHIC WALL — High-density editorial block
   =================================================================== */
.type-wall {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-md) 0;
  min-height: 0;
}

.type-wall__block {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 7.2vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  width: 100%;
  user-select: none;
  opacity: 0;
  animation: wallReveal 1.2s var(--ease-out-expo) 0.4s forwards;
}

/* Each line in the wall */
.tw-line {
  display: block;
  white-space: nowrap;
  overflow: visible;
}

/* Individual words */
.tw-word {
  display: inline-block;
  margin-right: 0.18em;
  transition: opacity var(--transition-base);
}

.tw-word--muted {
  color: var(--text-muted);
}

/* ===================================================================
   HIGHLIGHT BLOCKS — Vermillion interactive cards
   =================================================================== */
.tw-highlight-wrap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

.tw-highlight {
  display: inline-block;
  position: relative;
  background-color: var(--vermillion);
  color: var(--obsidian);
  padding: 0.05em 0.22em;
  cursor: pointer;
  transform: rotate(1deg);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  line-height: 1;
  vertical-align: baseline;
}

.tw-highlight--alt {
  transform: rotate(-1.2deg);
}

.tw-highlight--sm {
  transform: rotate(0.8deg);
}

.tw-highlight:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 4px 30px rgba(var(--vermillion-rgb), 0.4);
}

.tw-highlight:active {
  transform: rotate(0deg) scale(0.98);
}

/* Status tag — absolute tiny label above highlight */
.tw-highlight__tag {
  position: absolute;
  top: -1.6em;
  left: 0.3em;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermillion);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.tw-highlight__text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  transition: opacity 0.15s ease;
}

/* Highlight click pulse animation */
.tw-highlight.pulse {
  animation: highlightPulse 0.3s var(--ease-out-expo);
}

@keyframes highlightPulse {
  0% {
    transform: rotate(0deg) scale(1.06);
  }

  50% {
    transform: rotate(0deg) scale(0.97);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* ===================================================================
   FOOTER ZONE — Minimal baseline
   =================================================================== */
.footer-zone {
  position: relative;
  z-index: 20;
  width: 100%;
  padding-top: var(--space-md);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1s forwards;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================================================
   CONTACT OVERLAY POPUP
   =================================================================== */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--vermillion);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--space-xl), 6vw, var(--space-3xl));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.5s;
  overflow: hidden;
}

.contact-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

/* Close button */
.contact-close {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 5vw, 60px);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--obsidian);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 10;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.contact-close:hover {
  transform: rotate(90deg);
  opacity: 1;
}

/* Content layout */
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

/* Left — contact info (phone, email, url) */
.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding-top: 10vh;
}

.contact-line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--obsidian);
  text-decoration: none;
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: text-decoration-color 0.2s ease;
}

.contact-line:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Right — services list */
.contact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 4vh;
}

.contact-service {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.2vw, 2.8rem);
  line-height: 1.5;
  color: var(--obsidian);
  text-align: right;
  opacity: 0;
  transform: translateY(20px);
}

/* ===================================================================
   SERVICES OVERLAY POPUP
   =================================================================== */
.services-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--obsidian);
  display: flex;
  flex-direction: column;
  padding: clamp(var(--space-xl), 5vw, var(--space-3xl));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.5s;
  overflow: hidden;
}

.services-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

/* Header row */
.services-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.services-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--vermillion);
  color: var(--obsidian);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
}

.services-tag-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vermillion);
  letter-spacing: 0.04em;
}

.services-close {
  margin-left: auto;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.services-close:hover {
  transform: rotate(90deg);
  color: var(--vermillion);
}

/* Services list */
.services-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(10px, 1.8vh, 24px) 0;
  opacity: 0;
  transform: translateY(40px);
}

.services-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.services-item__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.2s ease;
  cursor: default;
}

.services-item:hover .services-item__text {
  color: var(--vermillion);
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wallReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Staggered line entrance */
.type-wall__block .tw-line:nth-child(1) {
  animation: lineSlide 0.8s var(--ease-out-expo) 0.5s both;
}

.type-wall__block .tw-line:nth-child(2) {
  animation: lineSlide 0.8s var(--ease-out-expo) 0.6s both;
}

.type-wall__block .tw-line:nth-child(3) {
  animation: lineSlide 0.8s var(--ease-out-expo) 0.7s both;
}

.type-wall__block .tw-line:nth-child(4) {
  animation: lineSlide 0.8s var(--ease-out-expo) 0.8s both;
}

.type-wall__block .tw-line:nth-child(5) {
  animation: lineSlide 0.8s var(--ease-out-expo) 0.9s both;
}

.type-wall__block .tw-line:nth-child(6) {
  animation: lineSlide 0.8s var(--ease-out-expo) 1.0s both;
}

@keyframes lineSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Large screens — scale up */
@media (min-width: 1600px) {
  .type-wall__block {
    font-size: 7rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .type-wall__block {
    font-size: clamp(2rem, 7vw, 5rem);
  }

  .contact-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-right {
    align-items: flex-start;
    padding-top: var(--space-xl);
  }

  .contact-service {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .canvas {
    padding: var(--space-lg) var(--space-md);
  }

  .type-wall__block {
    font-size: clamp(1.8rem, 10vw, 3rem);
    letter-spacing: -0.03em;
  }

  .tw-line {
    white-space: normal;
    word-break: break-word;
  }

  .tw-highlight__tag {
    font-size: 0.45rem;
    top: -1.4em;
  }

  .nav-links {
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .contact-line {
    font-size: clamp(1.4rem, 6vw, 2.5rem);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .type-wall__block {
    font-size: clamp(1.5rem, 11vw, 2.2rem);
  }

  .tw-highlight {
    padding: 0.02em 0.15em;
  }
}

/* ── Prefers Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Scrollbar Styling ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Selection Styling ────────────────────────────────────────────── */
::selection {
  background: rgba(var(--vermillion-rgb), 0.35);
  color: var(--text-primary);
}