/* ============================================================
   TRENER UDT — HERO (clean / premium / responsive / dark)
   ============================================================ */

:root{
  --sticky-cta-h: 82px;
}

/* ===== HERO container ===== */
.hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 10vh, 120px) 0 clamp(48px, 6vh, 72px);
  min-height: unset;
  display: flex;
  align-items: stretch;

  background:
    radial-gradient(900px 420px at 12% 8%, rgba(15,23,42,.05), transparent 60%),
    radial-gradient(860px 420px at 92% 0%, rgba(15,23,42,.04), transparent 58%),
    linear-gradient(180deg, var(--bg-soft), transparent 68%);

  border-bottom: 1px solid rgba(0,0,0,.04);

  /* desktop: reserve a touch of visual weight to the right */
  background-attachment: scroll;
}

html[data-theme="dark"] .hero{
  border-bottom-color: rgba(255,255,255,.06);
}

/* premium balance: soft right-side glow + subtle grid (desktop only) */
@media (min-width: 900px){
  .hero::after{
    content: "";
    position: absolute;
    inset: -10% -6% -20% 55%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(620px 420px at 78% 26%, rgba(59,130,246,.08), transparent 60%),
      radial-gradient(520px 380px at 96% 64%, rgba(15,23,42,.06), transparent 62%),
      radial-gradient(420px 300px at 62% 92%, rgba(15,23,42,.04), transparent 66%);
    opacity: .6;
  }

  .hero::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(transparent 31px, rgba(15,23,42,.03) 32px),
      linear-gradient(90deg, transparent 31px, rgba(15,23,42,.02) 32px);
    background-size: 32px 32px;
    opacity: .25;
    mask-image: radial-gradient(900px 520px at 70% 30%, #000 35%, transparent 72%);
  }

  html[data-theme="dark"] .hero::after{
    background:
      radial-gradient(620px 420px at 78% 26%, rgba(96,165,250,.12), transparent 60%),
      radial-gradient(520px 380px at 96% 64%, rgba(148,163,184,.10), transparent 62%),
      radial-gradient(420px 300px at 62% 92%, rgba(148,163,184,.08), transparent 66%);
    opacity: .75;
  }

  html[data-theme="dark"] .hero::before{
    background:
      linear-gradient(transparent 31px, rgba(148,163,184,.06) 32px),
      linear-gradient(90deg, transparent 31px, rgba(148,163,184,.05) 32px);
    opacity: .18;
  }
}

.hero .container,
.hero__inner{
  position: relative;
  z-index: 2;
}

.hero__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-content: start;
}

.hero__content{
  width: 100%;
  max-width: 1200px;
}

/* ===== HERO tiles: premium "spec-rail" + calm reveal (no cards) ===== */

.hero .reveal-item{
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .42s ease,
    transform .46s cubic-bezier(.2,.85,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible .reveal-item,
.is-visible .reveal-item{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .hero .reveal-item{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero .tiles{
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.06);
}
html[data-theme="dark"] .hero .tiles{
  border-top-color: rgba(255,255,255,.10);
}

.hero .tiles .tile{
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 14px;
  background: transparent;
  border: 0;
}

.hero .tiles .tile::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(15,23,42,.22), rgba(15,23,42,.06));
  opacity: .9;
}
html[data-theme="dark"] .hero .tiles .tile::before{
  background: linear-gradient(180deg, rgba(148,163,184,.22), rgba(148,163,184,.06));
}

.hero .tiles .tile strong{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: normal;
}

.hero .tiles .tile span{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 960px){
  .hero .tiles{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    max-width: 1200px;
  }
  .hero .tiles .tile{ padding-left: 14px; }
}

@media (max-width: 640px){
  .hero{
    padding-top: calc(10px + var(--header-h, 64px));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    min-height: unset;
  }

  .hero__inner{ gap: 22px; }

  .hero .hero-kicker{ gap: 8px; margin-bottom: 12px; }
  .hero .kicker-pill{
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.05;
    border-radius: 999px;
  }

  .hero .h1{ margin-top: 0; margin-bottom: 10px; }
  .hero .lead{ margin-top: 0; }

  .hero .tiles .tile{ gap: 6px; }

  .hero .hero-cta{ margin-top: 34px; }
}

/* ===== HERO CTA: subtle (link-like), not a heavy button ===== */
.hero .hero-cta{ margin-top: 36px; }

.hero .hero-cta .btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;

  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.hero .hero-cta .btn::after{
  content: "→";
  display: inline-block;
  transform: translateY(-1px);
  opacity: .9;
  transition: transform .18s ease, opacity .18s ease;
}

.hero .hero-cta .btn:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.hero .hero-cta .btn:hover::after{
  transform: translate(2px, -1px);
  opacity: 1;
}

@media (max-width: 640px){
  .hero .hero-cta{ margin-top: 28px; }
  .hero .hero-cta .btn{ font-size: 14px; }
  .hero .tiles{ margin-bottom: 6px; }
}

/* ===== Portrait ===== */
.portrait{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.32);
}

.portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.01);
  transition: transform .4s ease, filter .4s ease;
}

.portrait:hover img{
  filter: grayscale(0);
  transform: scale(1.055);
}

@media (max-width: 640px){
  .portrait--lg{
    width: 96px;
    height: 120px;
    border-radius: 18px;
  }

  .portrait--lg img{ object-position: 50% 25%; }
}

/* ===== About section: mobile avatar layout (keeps desktop untouched) ===== */
@media (max-width: 640px){
  #o-mnie .about-grid,
  #o-mnie .about-split,
  #o-mnie .about__grid,
  #o-mnie .about__wrap{
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  #o-mnie .portrait{ justify-self: start; }

  #o-mnie .portrait--lg{
    width: 112px;
    height: 140px;
    border-radius: 18px;
  }

  #o-mnie .portrait--lg img{ object-position: 50% 25%; }

  #o-mnie .about-text,
  #o-mnie .about__text,
  #o-mnie .about-copy{
    margin-top: 0 !important;
  }

  #o-mnie h2{ margin-bottom: 12px; }
}

@media (max-width: 640px){
  .about-grid .portrait--lg,
  .about-split .portrait--lg,
  .about__grid .portrait--lg,
  .about__wrap .portrait--lg{
    width: 112px;
    height: 140px;
    border-radius: 18px;
  }
}
.hero .h1{
  /* existing styles for .hero .h1 are mobile only, desktop styles below */
}

@media (min-width: 1024px){
  .hero .h1{
    white-space: nowrap;
    font-size: clamp(36px, 4vw, 44px);
  }
}