/* ═══════════════════════════════════════════
   ENRIQUE MAZA — enriquemaza.com
   Styles v1.0
   ═══════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --bg:       #0A0A0B;
  --bg-el:    #111113;
  --bg-card:  #161618;
  --t1:       #F5F5F3;
  --t2:       #A0A09C;
  --t3:       #5A5A57;
  --acc:      #E85D3A;
  --acc-g:    rgba(232, 93, 58, 0.12);
  --acc-h:    #F06A48;
  --brd:      rgba(255, 255, 255, 0.06);
  --brd-h:    rgba(255, 255, 255, 0.12);

  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ─── Reset ─── */
*, *::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(--sans);
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--acc);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul { list-style: none; }


/* ─── Grain Overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}


/* ─── Layout ─── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--acc), #F0924B, var(--acc));
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}


/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.1rem 0;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--brd);
  transition: padding 0.3s var(--ease);
}

.nav.scrolled {
  padding: 0.65rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--t1);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--acc);
  transition: width 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--t1);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--acc);
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--acc-g) 0%, transparent 70%);
  pointer-events: none;
  animation: glow 7s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.08); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Tag line */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) 0.2s forwards;
}

.hero__tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--acc);
}

.hero__pulse {
  width: 7px;
  height: 7px;
  background: var(--acc);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Title */
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: slideUp 0.8s var(--ease) 0.35s forwards;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--acc), #F0924B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--t2);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp 0.8s var(--ease) 0.5s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s var(--ease) 0.65s forwards;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--t3);
  margin-top: 1rem;
  opacity: 0;
  animation: slideUp 0.8s var(--ease) 0.8s forwards;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 2.15rem;
  background: var(--acc);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 93, 58, 0.35);
}

.btn--primary:hover::before { opacity: 1; }

.btn--primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t2);
  transition: color 0.3s var(--ease);
}

.btn--ghost:hover { color: var(--t1); }


/* ═══════════════════════════════════════════
   PHOTO
   ═══════════════════════════════════════════ */
.hero__photo {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: slideUp 0.9s var(--ease) 0.3s forwards;
}

.photo-frame {
  position: relative;
  width: 340px;
  height: 410px;
  margin: 0 auto;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(160deg, var(--acc) 0%, transparent 45%, var(--brd) 100%);
  z-index: 0;
}

.photo-frame::after {
  content: '';
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 65px;
  background: radial-gradient(ellipse, rgba(232, 93, 58, 0.1), transparent);
  filter: blur(24px);
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(12%) contrast(1.04);
}

.photo-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  z-index: 3;
  background: var(--bg-card);
  border: 1px solid var(--brd);
  padding: 0.85rem 1.35rem;
  backdrop-filter: blur(16px);
}

.photo-badge__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.2rem;
}

.photo-badge__value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--t1);
}


/* ═══════════════════════════════════════════
   PROOF BAR
   ═══════════════════════════════════════════ */
.proof {
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
  padding: 2.25rem 0;
}

.proof__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.proof__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--t2);
}

.proof__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-el);
  border: 1px solid var(--brd);
  color: var(--acc);
}

.proof__icon svg {
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--acc);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--t2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
}


/* ═══════════════════════════════════════════
   TOPICS
   ═══════════════════════════════════════════ */
.topics {
  padding: 6.5rem 0;
}

.topics__header {
  margin-bottom: 3.5rem;
}

.topics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--brd);
}

.topic {
  background: var(--bg);
  padding: 2.25rem 2rem;
  position: relative;
  transition: all 0.4s var(--ease);
  cursor: default;
}

.topic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--acc-g);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.topic:hover::before { opacity: 1; }

.topic__num {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--t3);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  position: relative;
}

.topic__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--t1);
  line-height: 1.35;
  position: relative;
}

.topic__desc {
  font-size: 0.8rem;
  color: var(--t3);
  line-height: 1.55;
  margin-top: 0.5rem;
  position: relative;
  max-width: 280px;
}


/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  padding: 6.5rem 0;
  border-top: 1px solid var(--brd);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--t2);
  font-weight: 300;
}

.about__text strong {
  color: var(--t1);
  font-weight: 500;
}

.about__text + .about__text {
  margin-top: 1.25rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-content: start;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--brd);
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease);
}

.stat:hover {
  border-color: var(--brd-h);
}

.stat__number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--acc);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--t2);
  line-height: 1.45;
}


/* ═══════════════════════════════════════════
   NEWSLETTER CTA
   ═══════════════════════════════════════════ */
.newsletter {
  padding: 6.5rem 0;
}

.newsletter__box {
  position: relative;
  border: 1px solid var(--brd);
  padding: 5rem;
  overflow: hidden;
}

.newsletter__box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
}

.newsletter__box::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--acc-g), transparent 70%);
  pointer-events: none;
}

.newsletter__inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.newsletter__features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0 2.5rem;
}

.newsletter__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--t2);
  font-weight: 300;
}

.newsletter__check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 58, 0.1);
  flex-shrink: 0;
}

.newsletter__check svg {
  width: 12px;
  height: 12px;
  color: var(--acc);
}

.newsletter__note {
  font-size: 0.8rem;
  color: var(--t3);
  margin-top: 1rem;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--brd);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--t3);
  font-weight: 300;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brd);
  color: var(--t2);
  transition: all 0.3s var(--ease);
}

.social-link:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions { justify-content: center; }
  .hero__note    { text-align: center; }

  .hero__photo {
    order: -1;
    margin-bottom: 2rem;
  }

  .photo-frame {
    width: 250px;
    height: 300px;
  }

  .photo-badge {
    bottom: -12px;
    left: -10px;
    padding: 0.6rem 1rem;
  }

  .topics__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .newsletter__box {
    padding: 3rem 2rem;
  }
}

@media (max-width: 600px) {
  .wrap { padding: 0 1.25rem; }

  .topics__grid {
    grid-template-columns: 1fr;
  }

  .proof__inner { gap: 1.5rem; }

  .hide-mobile { display: none; }

  .hero { padding-top: 6.5rem; }

  .nav__links { gap: 1.25rem; }
}
