:root {
  --ivory: #f3eee4;
  --forest: #1b3a32;
  --forest-soft: #2c5348;
  --terracotta: #c17a62;
  --muted: #3e544a;
  --line: rgba(27, 58, 50, 0.16);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --serif: "David Libre", "Times New Roman", 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(--forest);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  z-index: 30;
  inset-inline-start: var(--pad);
  top: 0.8rem;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  background: var(--forest);
  color: var(--ivory);
  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);
}

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

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

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

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

.nav a:hover,
.foot a:hover,
.mail:hover .mail-addr {
  color: var(--forest-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  min-height: calc(100svh - 4.4rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(2.2rem, 6vh, 4rem) var(--pad) clamp(2.4rem, 7vh, 4.4rem);
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--forest-soft);
  font-size: 0.98rem;
  font-weight: 600;
}

.hero h1,
.approach h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.55rem, 4.7vw, 4.9rem);
  line-height: 1.18;
}

.line {
  display: block;
}

.line-rule {
  width: fit-content;
  max-width: 100%;
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-position: 100% 92%;
  background-size: 2.4em 3px;
}

.lede,
.approach-copy p,
.contact-copy p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.lede {
  max-width: 34rem;
  margin-top: 1.35rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

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

.cta:hover {
  background: var(--forest-soft);
  color: var(--ivory);
  transform: translateY(-1px);
}

.hero-figure {
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  background: #d9cfc2;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

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

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

.approach {
  border-top: 1px solid var(--line);
}

.approach h2,
.contact h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.1rem, 3.8vw, 3.45rem);
  font-weight: 500;
  line-height: 1.25;
}

.approach-copy p,
.contact-copy p {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.125rem;
}

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

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

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

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.steps h3::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-inline-end: 0.55rem;
  background: var(--terracotta);
  vertical-align: 0.12em;
}

.mails {
  display: flex;
  flex-direction: column;
  align-self: end;
}

.mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

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

.mail-label {
  color: var(--forest-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.mail-addr {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--terracotta);
  unicode-bidi: isolate;
}

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

.foot-mails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
}

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

@media (min-width: 901px) {
  .hero-figure img {
    position: absolute;
    inset: 0;
  }

  .hero-figure {
    position: relative;
  }
}

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

  .hero {
    min-height: 0;
  }

  .hero-figure {
    order: -1;
    height: min(52vh, 420px);
  }

  .hero-copy {
    justify-content: flex-start;
  }
}

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

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

  .wordmark {
    letter-spacing: 0.12em;
    font-size: 0.84rem;
  }

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

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

  .cta,
  .hero-figure img {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .kicker,
  .hero h1 .line,
  .lede,
  .hero .cta {
    animation: rise 0.85s 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;
  }

  .hero-figure img {
    animation: settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

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

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

@keyframes settle {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}
