:root {
  --ivory: #f6f1e6;
  --sand: #e4d2b8;
  --forest: #1e4638;
  --forest-soft: #2f5c4a;
  --terracotta: #8c4536;
  --charcoal: #1c1916;
  --muted: #4e4a44;
  --muted-light: #d9e3dc;
  --line: rgba(28, 25, 22, 0.14);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --display: "Rozha One", "Noto Serif Devanagari", serif;
  --sans: "Assistant", "Noto Sans Devanagari", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #ead9c4;
  color: var(--charcoal);
}

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

.skip {
  position: absolute;
  z-index: 30;
  left: 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);
  background: var(--ivory);
}

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

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

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

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

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

.frame {
  margin: 0;
  background: var(--sand);
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: min(70vh, 740px);
  object-fit: cover;
  object-position: center 45%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2.2rem, 6vh, 4rem) var(--pad) clamp(2.4rem, 6vh, 4.2rem);
  background: var(--sand);
  border-inline-start: 6px solid var(--terracotta);
}

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

.hero h1,
.home h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  line-height: 1.28;
}

.line {
  display: block;
}

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

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.14rem;
}

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

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

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

.home {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(4.2rem, 10vh, 7rem) var(--pad);
}

.home h2,
.contact h2 {
  margin-top: 0.4rem;
  font-size: clamp(2.05rem, 3.8vw, 3.2rem);
  line-height: 1.35;
}

.home-copy p,
.contact p {
  margin-top: 0.85rem;
  max-width: 34rem;
  font-size: 1.12rem;
}

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

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

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

.steps h3 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.35;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(4.2rem, 10vh, 6.5rem) var(--pad);
  background: var(--forest);
  color: var(--ivory);
}

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

.mail {
  margin-top: 1.15rem;
  color: var(--ivory);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--sand);
}

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

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem var(--pad) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

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

  .frame img {
    height: min(48vh, 380px);
  }
}

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

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

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

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

  .cta,
  .frame img {
    transition: none;
    animation: none;
  }
}

@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.06s;
  }

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

  .lede {
    animation-delay: 0.16s;
  }

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

  .frame img {
    animation: settle 1.3s 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.04);
  }

  to {
    transform: scale(1);
  }
}
