:root {
  --bark: #1c1410;
  --soil: #2a1f18;
  --fiber: #c4a574;
  --sand: #e8dcc8;
  --mist: #f3ebe0;
  --leaf: #5c7a4a;
  --ember: #b85c38;
  --ink: #1c1410;
  --muted: rgba(28, 20, 16, 0.62);
  --radius: 18px;
  --pad: clamp(1.1rem, 4vw, 1.75rem);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, #3a2a20 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, #4a3528 0%, transparent 45%),
    linear-gradient(180deg, var(--bark) 0%, #241a14 28%, var(--mist) 28.05%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero {
  position: relative;
  isolation: isolate;
  margin-bottom: 0.6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 20, 16, 0.5) 0%, rgba(28, 20, 16, 0.66) 55%, var(--bark) 100%),
    url("images/hero-catalogs.jpg?v=12") center 30% / cover no-repeat;
}

.hero .top {
  padding-top: calc(2.25rem + env(safe-area-inset-top));
}

.hero .intro {
  padding: 0 var(--pad);
}

.hero .chips {
  padding: 0.25rem var(--pad) 1.6rem;
  margin-bottom: 0;
}

.hero .brand,
.hero .intro h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero .tag,
.hero .intro p {
  color: rgba(243, 235, 224, 0.86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero .chips a {
  background: rgba(28, 20, 16, 0.45);
  border-color: rgba(232, 220, 200, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.top {
  padding: calc(1.5rem + env(safe-area-inset-top)) var(--pad) 1.25rem;
  color: var(--sand);
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tag {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(232, 220, 200, 0.72);
  font-weight: 400;
}

main {
  padding: 0 var(--pad) 2rem;
}

.intro {
  margin-bottom: 1.25rem;
  animation: rise 0.75s 0.08s ease both;
}

.intro h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--sand);
}

.intro p {
  margin: 0.75rem 0 0;
  max-width: 36ch;
  color: rgba(232, 220, 200, 0.7);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.35rem;
  margin: 0 0 0.5rem;
  scrollbar-width: none;
  animation: rise 0.8s 0.14s ease both;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips a {
  flex: 0 0 auto;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(232, 220, 200, 0.28);
  border-radius: 999px;
  color: var(--sand);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chips a:hover,
.chips a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(232, 220, 200, 0.55);
  outline: none;
}

.chips a:active {
  transform: scale(0.97);
}

.product {
  display: grid;
  gap: 0;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffdf9;
  box-shadow: 0 18px 40px rgba(20, 12, 8, 0.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.product.is-in {
  opacity: 1;
  transform: translateY(0);
}

.visual {
  min-height: 168px;
  position: relative;
  display: block;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  object-position: center;
}

a.visual {
  cursor: pointer;
  padding: 0;
}

a.visual:focus-visible {
  outline: 2px solid var(--fiber);
  outline-offset: -2px;
}

.visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255, 253, 249, 0.35), transparent);
  pointer-events: none;
}

.wallpanel-visual {
  background-color: #3d2c22;
}

.sofa-visual {
  background-color: #4a5c38;
}

.sofa-visual::before {
  display: none;
}

.coco-visual {
  background-color: #3d2c22;
}

.door-visual {
  background-color: #3d2c22;
}

.sauna-visual {
  background-color: #5c3d28;
}

.copy {
  padding: 1.15rem 1.2rem 1.3rem;
}

.label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.copy h2 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.copy ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.copy li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--soil);
}

.copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fiber);
}

.product[data-tone="bamboo"] .copy li::before { background: var(--leaf); }
.product[data-tone="sauna"] .copy li::before { background: var(--ember); }
.product[data-tone="coco"] .copy li::before { background: #8b5a3c; }
.product[data-tone="door"] .copy li::before { background: #6e4228; }

.cta {
  margin: 0.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #2a1f18, #1c1410 60%, #3a2418);
  color: var(--sand);
  text-align: center;
  animation: rise 0.7s 0.2s ease both;
}

.cta-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.65);
  font-weight: 600;
}

.cta h2 {
  margin: 0.4rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.actions {
  display: grid;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--sand);
  color: var(--bark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  outline: none;
}

.btn-ghost {
  border: 1px solid rgba(232, 220, 200, 0.35);
  color: var(--sand);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(232, 220, 200, 0.7);
  outline: none;
}

.fine {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: rgba(232, 220, 200, 0.5);
}

.inline-dl {
  margin: 1rem 0 0;
}

.inline-dl a {
  color: var(--soil);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-block {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  animation: rise 0.75s 0.12s ease both;
}

.section-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(232, 220, 200, 0.7);
}

.download-visual {
  min-height: 118px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
}

.download-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(255, 253, 249, 0.12));
  pointer-events: none;
}

.download-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffdf9;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 32px rgba(20, 12, 8, 0.16);
  transition: transform 0.18s ease;
  position: relative;
}

.download-card:active {
  transform: scale(0.985);
}

.download-card .download-visual {
  position: relative;
}

.download-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.95rem 1rem 1.05rem;
}

.download-type {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.download-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.download-desc {
  font-size: 0.86rem;
  color: var(--muted);
}

.download-cta {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soil);
}

.more-note {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .product {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(70% 50% at 20% 0%, #3a2a20 0%, transparent 55%),
      linear-gradient(180deg, var(--bark) 0%, #241a14 22%, var(--mist) 22.05%);
  }

  .top,
  main,
  .cta,
  .hero .intro,
  .hero .chips {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(28, 20, 16, 0.5) 0%, rgba(28, 20, 16, 0.66) 55%, var(--bark) 100%),
      url("images/hero-catalogs-wide.jpg?v=12");
    background-position: center, center 45%;
  }

  .product {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  .visual {
    min-height: 100%;
  }

  .visual::after {
    display: none;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}
