/* itamarlev.com homepage — personal lab */

body.home-page {
  --home-bg: #08110f;
  --home-bg-soft: #0d1714;
  --home-surface: rgba(255, 255, 255, 0.075);
  --home-surface-strong: rgba(255, 255, 255, 0.11);
  --home-line: rgba(255, 255, 255, 0.13);
  --home-text: #f6f3e9;
  --home-muted: #aab9b3;
  --home-lime: #d6ff6b;
  --home-mint: #76e2b7;
  --home-sky: #7dc9ff;
  --home-coral: #ff9b7a;
  --home-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 12%, rgba(118, 226, 183, .14), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(125, 201, 255, .13), transparent 36rem),
    radial-gradient(circle at 72% 82%, rgba(214, 255, 107, .08), transparent 30rem),
    var(--home-bg);
  color: var(--home-text);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page a {
  color: inherit;
}

.home-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.home-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--home-text);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.home-brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--home-lime);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.home-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.home-nav__links a {
  color: var(--home-muted);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.home-nav__links a:hover {
  color: var(--home-text);
}

.home-hero {
  position: relative;
  padding: clamp(74px, 10vw, 140px) 0 clamp(92px, 12vw, 160px);
}

.home-hero::before {
  position: absolute;
  inset: -120px -18vw auto auto;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 110px rgba(255,255,255,.018),
    0 0 0 220px rgba(255,255,255,.012);
  pointer-events: none;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: end;
}

.home-kicker,
.home-section__kicker,
.project-card__label,
.home-now__label {
  margin: 0;
  color: var(--home-lime);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 860px;
  margin: 18px 0 28px;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 780;
  letter-spacing: -.06em;
  line-height: .91;
  text-wrap: balance;
}

.home-hero h1 em {
  color: var(--home-lime);
  font-style: normal;
}

.home-hero__copy {
  max-width: 660px;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.home-action:hover {
  transform: translateY(-2px);
}

.home-action--primary {
  background: var(--home-lime);
  color: #13200f;
}

.home-action--primary:hover {
  background: #e2ff95;
  color: #13200f;
}

.home-action--ghost {
  border: 1px solid var(--home-line);
  background: rgba(255,255,255,.045);
  color: var(--home-text);
}

.home-action--ghost:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.085);
  color: var(--home-text);
}

.home-now {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, transparent 5%, rgba(8,17,15,.22) 40%, rgba(8,17,15,.94) 100%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Rohrhardsberg%20Panorama.jpg") center / cover;
  box-shadow: var(--home-shadow);
  isolation: isolate;
}

.home-now::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(118,226,183,.17), transparent 38%, rgba(214,255,107,.08));
  content: "";
}

.home-now__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.home-now__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.home-now__date {
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  font-weight: 700;
}

.home-now h2 {
  max-width: 460px;
  margin: 0 0 10px;
  color: white;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  letter-spacing: -.04em;
  line-height: 1;
}

.home-now p {
  max-width: 480px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.home-now__route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.home-now__route span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(8,17,15,.42);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.home-now__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--home-lime);
  font-weight: 850;
  text-decoration: none;
}

.home-now__link span {
  transition: transform .2s ease;
}

.home-now__link:hover span {
  transform: translateX(4px);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--home-line);
}

.home-stat {
  padding: 24px clamp(12px, 3vw, 34px);
  border-inline-end: 1px solid var(--home-line);
}

.home-stat:last-child {
  border-inline-end: 0;
}

.home-stat strong {
  display: block;
  margin-bottom: 5px;
  color: var(--home-text);
  font-size: 1.5rem;
  letter-spacing: -.035em;
}

.home-stat span {
  color: var(--home-muted);
  font-size: .9rem;
}

.home-main {
  padding-block: clamp(90px, 11vw, 150px);
}

.home-section + .home-section {
  margin-top: clamp(100px, 12vw, 170px);
}

.home-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.home-section__head h2 {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -.05em;
  line-height: .98;
}

.home-section__head p:last-child {
  max-width: 410px;
  margin: 0;
  color: var(--home-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background: var(--home-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, background-color .25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.26);
  color: inherit;
}

.project-card::before {
  position: absolute;
  inset: auto -15% -35% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--card-glow, rgba(255,255,255,.06));
  filter: blur(4px);
  content: "";
  opacity: .75;
  pointer-events: none;
}

.project-card--wide {
  grid-column: span 7;
}

.project-card--tall {
  grid-column: span 5;
}

.project-card--half {
  grid-column: span 6;
}

.project-card__top,
.project-card__bottom {
  position: relative;
  z-index: 1;
}

.project-card__number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-muted);
  font-size: .78rem;
  font-weight: 850;
}

.project-card h3 {
  max-width: 520px;
  margin: 16px 0 12px;
  color: var(--home-text);
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.project-card p:not(.project-card__label) {
  max-width: 560px;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.65;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.project-card__meta span {
  padding: 6px 9px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-muted);
  font-size: .74rem;
  font-weight: 750;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--home-text);
  font-weight: 850;
}

.project-card--travel {
  --card-glow: rgba(125, 201, 255, .16);
  background:
    linear-gradient(145deg, rgba(125,201,255,.11), rgba(255,255,255,.055) 58%),
    var(--home-surface);
}

.project-card--bulgaria {
  --card-glow: rgba(255, 155, 122, .15);
  background:
    linear-gradient(145deg, rgba(255,155,122,.105), rgba(255,255,255,.05) 60%),
    var(--home-surface);
}

.project-card--health {
  --card-glow: rgba(118, 226, 183, .15);
  background:
    linear-gradient(145deg, rgba(118,226,183,.095), rgba(255,255,255,.05) 58%),
    var(--home-surface);
}

.project-card--interview {
  --card-glow: rgba(214, 255, 107, .12);
  background:
    linear-gradient(145deg, rgba(214,255,107,.09), rgba(255,255,255,.05) 58%),
    var(--home-surface);
}

.home-manifesto {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  padding: clamp(46px, 7vw, 88px);
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(214,255,107,.07), rgba(118,226,183,.04) 45%, rgba(255,255,255,.035)),
    var(--home-surface);
}

.home-manifesto h2 {
  margin: 10px 0 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  letter-spacing: -.05em;
  line-height: .98;
}

.home-manifesto__copy {
  display: grid;
  gap: 24px;
  color: var(--home-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
}

.home-manifesto__copy p {
  margin: 0;
}

.home-manifesto__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.home-manifesto__principles div {
  padding: 18px;
  border-top: 1px solid var(--home-line);
}

.home-manifesto__principles strong,
.home-manifesto__principles span {
  display: block;
}

.home-manifesto__principles strong {
  color: var(--home-text);
  font-size: .95rem;
}

.home-manifesto__principles span {
  margin-top: 4px;
  color: var(--home-muted);
  font-size: .82rem;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 34px 46px;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: .9rem;
}

.home-footer a {
  color: var(--home-text);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .home-hero__grid,
  .home-manifesto {
    grid-template-columns: 1fr;
  }

  .home-now {
    min-height: 440px;
  }

  .project-card--wide,
  .project-card--tall,
  .project-card--half {
    grid-column: span 6;
  }

  .home-section__head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .home-shell {
    width: min(100% - 28px, 1240px);
  }

  .home-nav__links {
    display: none;
  }

  .home-hero {
    padding-top: 54px;
  }

  .home-hero h1 {
    font-size: clamp(3.65rem, 17vw, 5.4rem);
  }

  .home-now {
    min-height: 420px;
    border-radius: 22px;
  }

  .home-now__content {
    padding: 22px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stat {
    border-inline-end: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .home-stat:last-child {
    border-bottom: 0;
  }

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

  .project-card--wide,
  .project-card--tall,
  .project-card--half {
    grid-column: auto;
  }

  .project-card {
    min-height: 300px;
  }

  .home-manifesto {
    padding: 28px;
  }

  .home-manifesto__principles {
    grid-template-columns: 1fr;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
