:root {
  --forest: #0c241c;
  --forest-2: #16382c;
  --ivory: #f6f1e6;
  --lime: #c6f04d;
  --ink: #14241c;
  --muted: #3e5248;
  --muted-light: #d5ddd4;
  --line: rgba(20, 36, 28, 0.14);
  --line-light: rgba(246, 241, 230, 0.16);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --display: "Secular One", "Arial Hebrew", sans-serif;
  --sans: "Assistant", "Arial Hebrew", "Arial", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #e4f5b8;
  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,
.hero,
.contact {
  background: var(--forest);
  color: var(--ivory);
}

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

.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.5rem;
}

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

.nav a:hover,
.foot a:hover {
  color: var(--lime);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr);
  align-items: end;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  min-height: calc(100svh - 4.4rem);
  padding: clamp(2.4rem, 7vh, 4.5rem) var(--pad) clamp(2.6rem, 8vh, 4.8rem);
  overflow: hidden;
}

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

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

.kicker,
.contact .eyebrow {
  color: var(--lime);
}

.hero h1,
.service h2,
.contact h2 {
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 0.7rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.15;
}

.line {
  display: block;
}

.lede,
.service-copy p,
.contact p,
.streams p {
  margin: 0;
}

.lede {
  max-width: 34rem;
  margin-top: 1.3rem;
  color: var(--muted-light);
  font-size: 1.14rem;
  line-height: 1.8;
}

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

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

.current {
  align-self: center;
  width: min(100%, 460px);
}

.current svg {
  display: block;
  width: 100%;
  height: auto;
}

.flow {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.flow-soft {
  stroke: rgba(246, 241, 230, 0.45);
  stroke-width: 1.5;
}

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

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad);
  background: var(--ivory);
}

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

.service h2,
.contact h2 {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.25;
}

.service-copy p,
.streams p {
  color: var(--muted);
}

.service-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 1.125rem;
}

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

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

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

.streams h3 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad);
  box-shadow: inset 0 3px 0 var(--lime);
}

.contact p {
  max-width: 32rem;
  margin-top: 1rem;
  color: var(--muted-light);
  font-size: 1.125rem;
}

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

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

.foot {
  padding-top: 1.15rem;
  padding-bottom: calc(1.3rem + 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,
  .service {
    grid-template-columns: 1fr;
  }

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

  .current {
    order: -1;
    width: min(280px, 78vw);
    justify-self: end;
  }
}

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

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

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

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

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

  .cta,
  .flow {
    transition: none;
    animation: none;
  }

  .flow {
    stroke-dashoffset: 0;
  }
}

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

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

  .lede {
    animation-delay: 0.14s;
  }

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

  .flow {
    animation: draw 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
  }

  .flow-soft {
    animation-delay: 0.2s;
  }
}

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

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
