/* ==========================================================================
   JUAN PABLO — PORTFOLIO | ¡PRÓXIMAMENTE!
   Editorial, Minimalist & Static Single-Screen Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM FONT CONFIGURATION (@font-face)
   -------------------------------------------------------------------------- */

/* FFF Acid Grotesk — Full Weight & Style Family */
@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-UltraLight-TRIAL.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-UltraLight-Italic-TRIAL.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-ExtraLight-TRIAL.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-ExtraLight-Italic-TRIAL.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Light-TRIAL.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Light-Italic-TRIAL.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Regular-TRIAL.otf') format('opentype'),
       url('../fonts/FFF-AcidGrotesk-Normal-TRIAL.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Regular-Italic-TRIAL.otf') format('opentype'),
       url('../fonts/FFF-AcidGrotesk-Norma-Italic-TRIAL.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Medium-TRIAL.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Medium-Italic-TRIAL.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Bold-TRIAL.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Bold-Italic-TRIAL.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-ExtraBold-TRIAL.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-ExtraBold-Italic-TRIAL.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Black-TRIAL.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFF Acid Grotesk';
  src: url('../fonts/FFF-AcidGrotesk-Black-Italic-TRIAL.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Compatibility Alias AcidGrotesk */
@font-face {
  font-family: 'AcidGrotesk';
  src: url('../fonts/FFF-AcidGrotesk-Regular-TRIAL.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AcidGrotesk';
  src: url('../fonts/FFF-AcidGrotesk-Bold-TRIAL.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Secondary / Monospace Fonts */
@font-face {
  font-family: 'PPSupplySans';
  src: url('../fonts/PPSupplySans-Ultralight.otf') format('opentype');
  font-weight: 100 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PPSupplySans';
  src: url('../fonts/PPSupplySans-Regular.otf') format('opentype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --color-bg: #000000;
  --color-text: #FFFFFF;
  --color-muted: #8E8E8E;
  --color-border: #222222;
  --color-accent: #FFFF00;
  --color-hover-bg: #161616;

  /* Typography Stack */
  --font-primary: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Monaco, Consolas, monospace;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Monaco, Consolas, monospace;
  --font-acid: 'FFF Acid Grotesk', 'AcidGrotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --page-margin: clamp(1.5rem, 3.5vw, 3.5rem);
  --grid-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --header-height: 4.5rem;
  --footer-height: 3.5rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-base: 0.4s var(--ease-out-expo);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.home-locked {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  background: transparent;
  transition: opacity var(--transition-fast);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
}

/* Permanent Top-Left Statement Header */
.site-header-static {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: calc(clamp(1.5rem, 2.5vh, 2.2rem) + 1.1cm);
  display: flex;
  align-items: flex-start;
  z-index: 30;
  pointer-events: none;
}

.header-static-inner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.static-header-label {
  font-family: var(--font-acid);
  font-size: 50px;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--color-text);
  pointer-events: auto;
  display: inline-block;
  transform-origin: top left;
}

.header-name-light {
  font-weight: 200;
  font-style: italic;
}

.header-name-bold {
  font-weight: 700;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   5. MAIN STAGE & HERO
   -------------------------------------------------------------------------- */
.home-main {
  flex: 1;
  display: flex;
  height: calc(100vh - var(--footer-height));
  height: calc(100dvh - var(--footer-height));
  overflow: hidden;
}

.home-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 1.5rem);
  height: 100%;
  width: 100%;
  align-items: stretch;
}

/* Left Stage (Visual 3D Canvas) */
.stage-left {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}

.smiley-3d-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

#smiley-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Right Stage (Coming Soon Block & Contact) */
.stage-right {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  margin-right: 5cm;
  position: relative;
  z-index: 20;
}

.comingsoon-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.comingsoon-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.comingsoon-tag::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.7);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.comingsoon-title {
  font-family: var(--font-acid);
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--color-text);
  margin: 0 0 1rem 0;
  transition: color var(--transition-fast);
}

.comingsoon-title:hover {
  color: var(--color-accent);
}

.comingsoon-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 360px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. CONTACT DRAWER & FOOTER NAVIGATION
   -------------------------------------------------------------------------- */
.project-list-footer {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  margin-top: 0.85rem;
}

.contact-button-wrapper {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.stage-footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0;
  margin: 0;
  background: transparent;
  transition: color var(--transition-fast);
  display: inline-block;
}

.stage-footer-link:hover,
.contact-trigger-btn.is-active {
  background-color: transparent;
  color: var(--color-accent);
}

.contact-drawer {
  position: absolute;
  top: calc(100% + 0.45rem);
  bottom: auto;
  left: 0;
  background: transparent;
  border: none;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 200;
  min-width: 140px;
  box-shadow: none;
}

.contact-drawer.is-open {
  display: flex;
}

.contact-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-sublink {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.15rem 0.35rem;
  margin-left: -0.35rem;
  background: transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  display: inline-block;
  width: fit-content;
}

.contact-sublink:hover {
  background-color: var(--color-accent);
  color: #000000;
}

/* 3-Blink Yellow Flash Animation for Click / Tap (Web & Mobile) */
@keyframes blinkYellow {
  0%, 100% { background-color: transparent; color: var(--color-muted); }
  20%, 60% { background-color: var(--color-accent); color: #000000; }
  40%, 80% { background-color: transparent; color: var(--color-muted); }
}

.is-blinking {
  animation: blinkYellow 0.65s steps(2, start) !important;
}

/* --------------------------------------------------------------------------
   7. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  height: var(--footer-height);
  width: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
  z-index: 100;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE DESIGN (TABLETS & PHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header-static {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  body.home-locked {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .home-main {
    height: auto;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 3rem;
  }

  .home-stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .stage-left {
    width: 100%;
    height: 46vh;
    min-height: 310px;
    max-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
  }

  .smiley-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .static-header-label {
    font-size: clamp(2.4rem, 10.2vw, 3.3rem);
    line-height: 1.05;
    max-width: 100%;
  }

  .comingsoon-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: 1.05;
    max-width: 100%;
  }

  .stage-right {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    order: 2;
    padding-bottom: 1.5rem;
  }

  .contact-button-wrapper {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
  }

  .stage-footer-link {
    line-height: 1.2;
  }

  .contact-drawer {
    position: absolute;
    top: -0.15rem;
    left: calc(100% + 1.25rem);
    bottom: auto;
    margin-top: 0;
    gap: 0.35rem;
  }

  .contact-sublink {
    line-height: 1.2;
  }
}

@media (max-width: 420px) {
  .static-header-label {
    font-size: clamp(2.0rem, 9.3vw, 2.6rem);
  }

  .comingsoon-title {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }
}
