:root {
  --ivory: #f7f3ec;
  --forest: #14352c;
  --forest-soft: #245246;
  --terracotta: #c4816a;
  --muted: #4a6158;
  --muted-light: #d7d1c6;
  --line: rgba(20, 53, 44, 0.16);
  --line-light: rgba(247, 243, 236, 0.18);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --sans: "Noto Sans Hebrew", "Arial Hebrew", "Arial", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #e4cfc4;
  color: var(--forest);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ivory);
}

.skip {
  position: absolute;
  z-index: 30;
  inset-inline-start: var(--pad);
  top: 0.8rem;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  background: var(--ivory);
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-inline: var(--pad);
  background: var(--forest);
  color: var(--ivory);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: calc(1.05rem + env(safe-area-inset-top));
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line-light);
}

.wordmark {
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1.45rem;
}

.nav a,
.foot a {
  color: var(--ivory);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: calc(100svh - 4.4rem);
  padding: clamp(2.4rem, 7vh, 4.5rem) var(--pad) clamp(2.8rem, 8vh, 5rem);
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 44rem;
}

.kicker,
.eyebrow {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.kicker {
  color: var(--muted-light);
}

.hero h1,
.path h2,
.contact h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 5.6vw, 5.5rem);
  line-height: 1.12;
}

.line {
  display: block;
}

.lede,
.path-copy p,
.contact p,
.steps p {
  margin: 0;
}

.lede {
  max-width: 36rem;
  margin-top: 1.4rem;
  color: var(--muted-light);
  font-size: 1.15rem;
  line-height: 1.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  margin-top: 1.9rem;
  padding: 0.85rem 1.45rem;
  background: var(--ivory);
  color: var(--forest);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: #fffaf4;
  transform: translateY(-1px);
}

.ascent {
  position: relative;
  justify-self: start;
  width: min(100%, 340px);
  height: min(46vh, 420px);
  min-height: 240px;
}

.ascent span {
  position: absolute;
  width: 46%;
  height: 30%;
  border: 1.5px solid rgba(247, 243, 236, 0.78);
}

.ascent span:nth-child(1) {
  inset-inline-start: 0;
  bottom: 0;
}

.ascent span:nth-child(2) {
  inset-inline-start: 18%;
  bottom: 22%;
}

.ascent span:nth-child(3) {
  inset-inline-start: 36%;
  bottom: 44%;
}

.ascent span:nth-child(4) {
  inset-inline-start: 54%;
  bottom: 66%;
  background: var(--terracotta);
  border-color: var(--terracotta);
}

#path,
#contact {
  scroll-margin-top: 5rem;
}

.path {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.2rem, 5vw, 5.5rem);
  align-items: start;
  padding: clamp(4.75rem, 12vh, 8rem) var(--pad);
}

.eyebrow {
  color: var(--forest-soft);
}

.path h2,
.contact h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  line-height: 1.2;
}

.path-copy p,
.contact p {
  margin-top: 1.05rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.3rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(4.75rem, 12vh, 8rem) var(--pad);
  background: var(--forest);
  color: var(--ivory);
  box-shadow: inset 0 3px 0 var(--terracotta);
}

.contact .eyebrow {
  color: var(--muted-light);
}

.contact p {
  color: var(--muted-light);
}

.contact .cta {
  margin-top: 1.6rem;
}

.mail {
  margin-top: 1.35rem;
  color: var(--ivory);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--terracotta);
  unicode-bidi: isolate;
}

.mail:hover {
  color: var(--ivory);
}

.foot {
  padding-top: 1.2rem;
  padding-bottom: calc(1.35rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  font-size: 0.95rem;
}

.foot a[href^="mailto"] {
  unicode-bidi: isolate;
}

@media (max-width: 900px) {
  .hero,
  .path {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    align-items: start;
  }

  .ascent {
    order: -1;
    width: min(220px, 62vw);
    height: 180px;
    min-height: 0;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .cta {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 0.8rem;
  }

  .wordmark {
    letter-spacing: 0.08em;
    font-size: 0.72rem;
  }

  .nav a {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .ascent span {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .kicker,
  .hero h1 .line,
  .lede,
  .hero .cta {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero h1 .line:nth-child(2) {
    animation-delay: 0.08s;
  }

  .lede {
    animation-delay: 0.16s;
  }

  .hero .cta {
    animation-delay: 0.22s;
  }

  .ascent span {
    animation: lift 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .ascent span:nth-child(2) {
    animation-delay: 0.08s;
  }

  .ascent span:nth-child(3) {
    animation-delay: 0.16s;
  }

  .ascent span:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
