:root {
  --ink: #10241f;
  --ink-soft: #2a4038;
  --muted: #5e736a;
  --paper: #f4f7f5;
  --paper-deep: #e6eee9;
  --line: rgba(16, 36, 31, 0.1);
  --accent: #1f7a5c;
  --accent-deep: #145c45;
  --accent-glow: #7ec9a8;
  --sand: #d9c4a0;
  --nav: rgba(244, 247, 245, 0.82);
  --shadow: 0 24px 60px rgba(16, 36, 31, 0.12);
  --radius: 4px;
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(126, 201, 168, 0.28), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(217, 196, 160, 0.22), transparent 50%),
    linear-gradient(180deg, #eef4f0 0%, var(--paper) 40%, #eaf1ed 100%);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  backdrop-filter: blur(16px);
  background: var(--nav);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 245, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* —— Hero: full-bleed visual plane —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 0;
  border: 0;
  color: #f6faf8;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 28, 24, 0.78) 0%, rgba(10, 28, 24, 0.42) 48%, rgba(10, 28, 24, 0.55) 100%),
    linear-gradient(to top, rgba(8, 20, 17, 0.72) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 22vh 6vw 10vh;
  max-width: 920px;
}

.hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.kicker {
  color: var(--accent-glow);
  letter-spacing: 0.24em;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero .kicker {
  opacity: 0;
  animation: rise 0.9s ease forwards 0.28s;
}

h1,
h2,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.08;
  max-width: 12em;
  opacity: 0;
  animation: rise 1s ease forwards 0.4s;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  color: rgba(246, 250, 248, 0.82);
  font-size: 16px;
  opacity: 0;
  animation: rise 1s ease forwards 0.55s;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  opacity: 0;
  animation: rise 1s ease forwards 0.7s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #f6faf8;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.ghost {
  border-color: rgba(246, 250, 248, 0.45);
  color: #f6faf8;
}

.btn.ghost:hover {
  border-color: #f6faf8;
}

.btn.ink {
  background: var(--ink);
  color: #f6faf8;
}

.btn.outline {
  border-color: var(--line);
  color: var(--ink);
}

section {
  padding: 100px 6vw;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
}

/* Products: image-led rows, not card grids */
.product-stack {
  display: grid;
  gap: 28px;
}

.product-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.product-row.reverse .product-copy {
  order: 2;
}

.product-row.reverse .product-visual {
  order: 1;
}

.product-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-row:hover .product-visual img {
  transform: scale(1.05);
}

.product-copy {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.product-copy .tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.product-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.product-copy p {
  color: var(--muted);
  max-width: 34em;
}

.product-copy .more {
  margin-top: 10px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(16, 36, 31, 0.35), transparent);
  z-index: 1;
  pointer-events: none;
}

.about-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  margin: 12px 0 18px;
}

.about-copy > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.list {
  display: grid;
  gap: 14px;
}

.list li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.list li span:last-child {
  color: var(--muted);
}

.atmosphere {
  position: relative;
  padding: 0;
  border: 0;
  min-height: 52vh;
  display: grid;
  place-items: end start;
  color: #f6faf8;
  overflow: hidden;
}

.atmosphere img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 24, 0.72), rgba(10, 28, 24, 0.2));
}

.atmosphere-copy {
  position: relative;
  z-index: 1;
  padding: 8vh 6vw;
  max-width: 560px;
}

.atmosphere-copy h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 10px 0 14px;
}

.atmosphere-copy p {
  color: rgba(246, 250, 248, 0.82);
}

.contact {
  background:
    linear-gradient(135deg, rgba(126, 201, 168, 0.16), transparent 40%),
    var(--paper-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(31, 122, 92, 0.25);
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  font-size: 13px;
  color: var(--accent-deep);
}

.footer {
  padding: 32px 6vw 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

/* Product detail pages */
.page-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: 0;
  border: 0;
  color: #f6faf8;
  overflow: hidden;
}

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

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 28, 24, 0.78), rgba(10, 28, 24, 0.35));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 28vh 6vw 10vh;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-top: 10px;
}

.page-hero .prose {
  color: rgba(246, 250, 248, 0.84);
  margin-top: 18px;
  max-width: 36em;
}

.prose {
  color: var(--muted);
}

.prose p + p {
  margin-top: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  padding: 8px 0 24px;
  border-top: 2px solid var(--accent);
}

.feature h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-links {
    gap: 14px;
    font-size: 12px;
  }

  .hero-content,
  .page-hero-content {
    padding-top: 26vh;
  }

  .product-row,
  .product-row.reverse,
  .about,
  .contact-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .product-row.reverse .product-copy,
  .product-row.reverse .product-visual {
    order: unset;
  }

  .product-copy {
    padding: 32px 24px;
  }

  .about-visual {
    min-height: 280px;
  }

  .atmosphere {
    min-height: 42vh;
  }
}
