:root {
  --ink: #1a2e24;
  --ink-soft: #3d5348;
  --paper: #f3efe6;
  --paper-deep: #e6e0d4;
  --moss: #2f5d45;
  --moss-bright: #3f7a58;
  --leaf: #8fbc8f;
  --sun: #e8c97a;
  --white: #faf8f3;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "PingFang SC", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  mix-blend-mode: difference;
  color: var(--white);
  pointer-events: none;
}

.site-nav a {
  pointer-events: auto;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.88;
  transition: opacity 0.25s var(--ease);
}

.nav-links a:hover {
  opacity: 1;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(18, 36, 28, 0.28) 0%,
      rgba(18, 36, 28, 0.15) 38%,
      rgba(18, 36, 28, 0.72) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  max-width: 42rem;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.95;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(250, 248, 243, 0.88);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.55rem;
  background: var(--white);
  color: var(--moss);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

/* ——— About ——— */
.about {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(143, 188, 143, 0.18), transparent 55%),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-deep) 100%);
  padding: clamp(4.5rem, 12vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.about-inner {
  max-width: 36rem;
}

.about h2,
.contact h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  color: var(--moss);
}

.about p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ——— Contact ——— */
.contact {
  background: var(--moss);
  color: var(--white);
  padding: clamp(4.5rem, 12vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.contact h2 {
  color: var(--sun);
}

.contact p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  font-weight: 650;
  border-bottom: 1px solid rgba(232, 201, 122, 0.55);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-mail:hover {
  color: var(--sun);
  border-color: var(--sun);
}

/* ——— Footer ——— */
.site-footer {
  background: #234233;
  color: rgba(250, 248, 243, 0.65);
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.9s var(--ease) forwards;
}

.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.24s; }
.reveal.delay-3 { animation-delay: 0.36s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-on-scroll,
  .hero-media img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: 3.25rem;
  }

  .nav-links {
    gap: 1.1rem;
    font-size: 0.9rem;
  }
}
