:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1c1e1b;
  --olive: #3e4a36;
  --olive-soft: #5b6754;
  --muted: #5c6058;
  --line: #e6e4dc;
  --line-strong: #d5d3cb;
  --focus: #9b8b55;
  --pad: clamp(20px, 5vw, 56px);
  --wrap: 1180px;
  --header: 72px;
  --radius: 10px;
  --font: "DM Sans", Arial, Helvetica, sans-serif;
  --display: "Outfit", Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

.bar,
.section,
.footer-inner {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

em {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  width: 186px;
  height: 50px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand img {
  width: 186px;
  height: 50px;
  object-fit: contain;
  object-view-box: inset(32% 3% 40% 3%);
}

footer .brand {
  width: 164px;
  height: 44px;
}

footer .brand img {
  width: 164px;
  height: 44px;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

nav a {
  color: var(--muted);
}

nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.button:hover {
  transform: translateY(-1px);
}

.dark {
  background: var(--ink);
  color: #fff;
}

.dark:hover {
  background: var(--olive);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.ghost.on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.ghost.on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.button.light {
  background: var(--bg);
  color: var(--ink);
}

.button.light:hover {
  background: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 45%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 10, 0.12) 0%, rgba(12, 14, 10, 0.2) 38%, rgba(12, 14, 10, 0.82) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 0 0 10vh;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-soft);
}

.eyebrow.light {
  color: #d7ddce;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  max-width: 11ch;
  color: #fff;
}

.hero .lead {
  max-width: 34ch;
  margin: 18px 0 28px;
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 36px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.hero-scroll:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Scenes */

.scenes {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  height: min(78vh, 760px);
  align-items: stretch;
}

.scene {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  color: #fff;
  background: #1a1c18;
}

.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.8s ease;
}

.scene:hover img {
  transform: scale(1.05);
}

.scene-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 40px 32px 32px;
  background: linear-gradient(transparent, rgba(10, 12, 9, 0.88));
}

.scene-copy span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #d7ddce;
}

.scene-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  max-width: 12ch;
  color: #fff;
}

/* Catalog */

.section {
  padding: 80px 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 36px;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.section-description {
  max-width: 340px;
}

.section-description p {
  margin-bottom: 12px;
  font-size: 15px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.filters button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filters .active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filters span {
  margin-left: 6px;
  opacity: 0.7;
}

.catalog-tools > span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1c1e1b;
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  background: #1c1e1b;
}

.product-media .pill {
  position: absolute;
  top: auto;
  bottom: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.94);
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  border-top: 1px solid var(--line);
  flex: 1;
}

.product h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-dim {
  font-size: 13px;
  color: var(--muted);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.text-btn:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.plus {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
}

.plus:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.catalog-note {
  font-size: 12px;
  margin-top: 24px;
}

/* Essence */

.essence {
  position: relative;
  min-height: min(72vh, 700px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.essence > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.essence::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 10, 0.08), rgba(12, 14, 10, 0.78));
}

.essence-copy {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 80px 0 72px;
}

.essence-copy h2 {
  max-width: 16ch;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.essence-copy > p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

/* Distributors */

.distributors {
  width: 100%;
  background: var(--olive);
  color: var(--bg);
  padding: 88px 0;
  text-align: left;
}

.distributors .section {
  padding-top: 0;
  padding-bottom: 0;
}

.distributors h2 {
  max-width: 16ch;
  margin-bottom: 16px;
}

.distributors p:not(.eyebrow) {
  color: #d4dacb;
  max-width: 48ch;
  margin-bottom: 28px;
}

.last {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.last h2 {
  max-width: 16ch;
}

/* Footer */

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 36px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner a:not(.brand):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dialogs */

dialog {
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 36px;
  width: min(720px, 93vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(28, 30, 27, 0.28);
}

dialog::backdrop {
  background: rgba(24, 32, 20, 0.62);
  backdrop-filter: blur(4px);
}

.close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 28px;
  border: 0;
  background: transparent;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
}

.close:hover {
  background: var(--bg);
}

dialog h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

dialog > p {
  margin-bottom: 8px;
  font-size: 14px;
}

.sheet-photo {
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sheet-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #fff;
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 20px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.thumb.active {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.sheet-actions {
  margin-top: 22px;
}

dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  font-size: 14px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

dd {
  margin: 4px 0 0;
  font-weight: 600;
}

form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.qitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.qitem input {
  width: 80px;
  margin: 0;
}

.qitem label {
  margin: 0;
  font-weight: 500;
}

#status {
  font-size: 13px;
  color: #405d30;
  margin-top: 12px;
}

#copy-fallback {
  margin-top: 10px;
}

body:has(dialog[open]) {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

/* Mobile menu */

@media (max-width: 800px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  body.menu-open nav {
    display: flex;
  }

  nav a {
    padding: 14px var(--pad);
    font-size: 16px;
    color: var(--ink);
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .scenes {
    grid-template-columns: 1fr;
    height: auto;
  }

  .scene {
    height: 54vh;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .essence {
    min-height: 58vh;
  }

  .essence-copy {
    padding: 48px 0 40px;
  }

  .section {
    padding: 64px 0;
  }

  .last {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .brand {
    width: 148px;
    height: 40px;
  }

  .brand img {
    width: 148px;
    height: 40px;
  }

  header .button {
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero {
    min-height: calc(100svh - var(--header));
  }

  .hero-copy {
    padding-bottom: 12vh;
  }

  .hero-scroll {
    display: none;
  }

  .section-top {
    display: block;
  }

  .section-description {
    max-width: none;
    margin-top: 12px;
  }

  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .footer-inner .brand {
    grid-column: 1 / -1;
  }

  dialog {
    padding: 32px 20px 24px;
  }

  dialog h2 {
    font-size: 24px;
  }

  dl {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
