/*
Theme Name: Ermey House of Sante
Theme URI: https://ermeyhos.com
Author: themafis
Description: Corporate portfolio theme for Ermey House of Sante. Designed for atelier storytelling, product presentation, and WhatsApp-led custom order enquiries.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ermey-hos
Tags: portfolio, custom-background, featured-images, custom-menu, one-column
*/

:root {
  --color-porcelain: #f7f3ec;
  --color-paper: #fffdf8;
  --color-ink: #1f1b18;
  --color-muted: #706862;
  --color-line: #d9d0c4;
  --color-oxblood: #651b24;
  --color-oxblood-dark: #421116;
  --color-brass: #b39a66;
  --color-olive: #2f3d34;
  --color-blue: #123d55;
  --shadow-soft: 0 24px 70px rgba(31, 27, 24, 0.13);
  --shadow-tight: 0 12px 34px rgba(31, 27, 24, 0.1);
  --max-page: 1240px;
  --header-height: 78px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-porcelain);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: var(--color-paper);
  background: var(--color-oxblood);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  color: var(--color-paper);
  background: var(--color-ink);
  clip: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(217, 208, 196, 0.72);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--max-page));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.brand__sub {
  color: var(--color-muted);
  font-size: 11px;
}

.nav-menu,
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a,
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #39322d;
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.site-nav a:hover,
.nav-menu a:focus-visible,
.site-nav a:focus-visible {
  color: var(--color-paper);
  outline: none;
  background: var(--color-ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  color: var(--color-paper);
  background: var(--color-ink);
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--color-ink);
  outline: none;
  background: transparent;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

body.home-sequence .site-header,
body.home .site-header {
  position: fixed;
  right: 0;
  left: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

body.home-sequence .site-header__inner,
body.home .site-header__inner {
  width: min(calc(100% - 32px), 1380px);
  min-height: 64px;
  margin-top: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.72);
  box-shadow: 0 18px 58px rgba(22, 17, 14, 0.16);
  backdrop-filter: blur(18px) saturate(132%);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

body.home-sequence.has-solid-header .site-header__inner,
body.home.has-solid-header .site-header__inner {
  border-color: rgba(217, 208, 196, 0.78);
  background: rgba(247, 243, 236, 0.94);
  box-shadow: 0 16px 44px rgba(22, 17, 14, 0.12);
}

body.home-sequence .brand,
body.home .brand {
  min-width: 214px;
}

.sequence-stage {
  --sequence-pad-x: clamp(20px, 5vw, 84px);
  position: relative;
  height: 500svh;
  min-height: 100svh;
  color: var(--color-paper);
  background: #17110d;
  isolation: isolate;
}

.sequence-stage--bag {
  height: 400svh;
  margin-top: -1px;
  background: #120d0b;
}

.sequence-canvas {
  position: sticky;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100svh;
  display: block;
  background: #17110d;
  filter: saturate(1.2) contrast(1.04) brightness(1.07);
}

.sequence-stage--bag .sequence-canvas {
  filter: saturate(1.12) contrast(1.05) brightness(1.02);
}

.sequence-vignette {
  position: sticky;
  z-index: 1;
  top: 0;
  height: 100svh;
  margin-top: -100svh;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 253, 248, 0) 0%, rgba(22, 17, 14, 0.1) 46%, rgba(22, 17, 14, 0.48) 100%),
    linear-gradient(90deg, rgba(14, 10, 8, 0.58) 0%, rgba(14, 10, 8, 0.18) 32%, rgba(14, 10, 8, 0.16) 68%, rgba(14, 10, 8, 0.56) 100%),
    linear-gradient(180deg, rgba(14, 10, 8, 0.36) 0%, rgba(14, 10, 8, 0.04) 22%, rgba(14, 10, 8, 0.58) 100%);
}

.sequence-stage--home .sequence-vignette {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 253, 248, 0) 0%, rgba(22, 17, 14, 0.03) 50%, rgba(22, 17, 14, 0.24) 100%),
    linear-gradient(90deg, rgba(14, 10, 8, 0.34) 0%, rgba(14, 10, 8, 0.08) 34%, rgba(14, 10, 8, 0.06) 68%, rgba(14, 10, 8, 0.24) 100%),
    linear-gradient(180deg, rgba(14, 10, 8, 0.18) 0%, rgba(14, 10, 8, 0.01) 28%, rgba(14, 10, 8, 0.42) 100%);
}

.sequence-scenes {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 100svh;
  margin-top: -100svh;
  pointer-events: none;
}

.sequence-scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 46px) var(--sequence-pad-x) 62px;
}

.sequence-scene--right {
  justify-content: flex-end;
  text-align: right;
}

.sequence-scene--left,
.sequence-scene--start {
  justify-content: flex-start;
}

.sequence-scene--center {
  justify-content: center;
  text-align: center;
}

.sequence-copy {
  width: min(620px, 100%);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.44);
}

.sequence-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sequence-copy--home {
  width: min(760px, 100%);
}

.sequence-copy--centered {
  width: min(760px, 100%);
}

.sequence-lockup {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 999px;
  color: var(--color-paper);
  background: rgba(23, 17, 13, 0.42);
  backdrop-filter: blur(14px);
}

.sequence-lockup img {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
}

.sequence-lockup span {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
}

.sequence-lockup small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 11px;
  line-height: 1;
}

.sequence-kicker {
  margin: 0 0 14px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.98;
}

.sequence-scene:not(.sequence-scene--start) .sequence-title {
  font-size: clamp(40px, 5vw, 70px);
}

.sequence-text {
  width: min(560px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 18px;
}

.sequence-scene--right .sequence-text {
  margin-left: auto;
}

.sequence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  pointer-events: auto;
  text-shadow: none;
}

.sequence-scene--center .sequence-actions {
  justify-content: center;
}

.sequence-mark {
  position: absolute;
  z-index: 4;
  top: 108px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.78);
  background: rgba(23, 17, 13, 0.28);
  backdrop-filter: blur(12px);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.sequence-mark img {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
}

.sequence-mark--left {
  left: var(--sequence-pad-x);
}

.sequence-mark--right {
  right: var(--sequence-pad-x);
}

.sequence-stage + .section {
  padding-top: 58px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 210px);
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: var(--color-ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  background-image: var(--hero-image);
  background-position: center center;
  background-size: cover;
  transform: scale(1.035) translate3d(-0.3%, 0, 0);
  animation: hero-live-pan 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.9) 0%, rgba(12, 9, 8, 0.78) 35%, rgba(16, 11, 9, 0.3) 62%, rgba(16, 11, 9, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.06) 54%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 43%, rgba(255, 238, 196, 0.13) 52%, rgba(255, 255, 255, 0) 62%);
  background-size: 100% 100%, 100% 100%, 180% 100%;
  background-position: 0 0, 0 0, -45% 0;
  animation: hero-light-drift 12s ease-in-out infinite alternate;
}

@keyframes hero-live-pan {
  from {
    transform: scale(1.035) translate3d(-0.3%, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(0.6%, -0.7%, 0);
  }
}

@keyframes hero-light-drift {
  from {
    background-position: 0 0, 0 0, -45% 0;
  }

  to {
    background-position: 0 0, 0 0, 85% 0;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  padding: 78px 0 38px;
  color: var(--color-paper);
}

.hero__content {
  width: min(860px, 100%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 500;
  line-height: 0.98;
}

.hero__copy {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  text-shadow: none;
}

.button,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  color: var(--color-paper);
  background: var(--color-ink);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible {
  transform: translateY(-1px);
  color: var(--color-ink);
  outline: none;
  background: transparent;
}

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

.button--light:hover,
.button--light:focus-visible {
  color: var(--color-paper);
  background: transparent;
}

.button--ghost {
  color: var(--color-paper);
  border-color: rgba(255, 253, 248, 0.58);
  background: transparent;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  color: var(--color-ink);
  background: var(--color-paper);
}

.button--outline {
  color: var(--color-ink);
  background: transparent;
}

.button--outline:hover,
.button--outline:focus-visible {
  color: var(--color-paper);
  background: var(--color-ink);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 42px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  background: rgba(255, 253, 248, 0.16);
}

.hero__meta span {
  min-height: 78px;
  padding: 16px 18px;
  display: grid;
  align-items: center;
  color: rgba(255, 253, 248, 0.9);
  background: rgba(22, 17, 14, 0.34);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section--paper {
  background: var(--color-paper);
}

.section--ink {
  color: var(--color-paper);
  background: var(--color-ink);
}

.hero + .section {
  padding-top: 58px;
}

.section__inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-paper);
  background: var(--color-ink);
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--subpage-image);
  background-position: center;
  background-size: cover;
  opacity: 0.42;
  filter: saturate(0.96);
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 9, 0.54);
}

.subpage-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  padding: 108px 0 88px;
}

.subpage-hero__content {
  width: min(760px, 100%);
}

.subpage-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.02;
}

.subpage-hero p {
  width: min(640px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 18px;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
}

.editorial-split__media {
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-tight);
}

.editorial-split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.editorial-list {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--color-line);
  background: var(--color-line);
}

.editorial-list__item {
  padding: 22px;
  background: var(--color-paper);
}

.editorial-list__item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

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

.category-detail-grid {
  display: grid;
  gap: 24px;
}

.category-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}

.category-detail__image {
  height: 100%;
  min-height: 330px;
  overflow: hidden;
}

.category-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-detail__body {
  padding: 34px 34px 34px 0;
}

.category-detail__body h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.08;
}

.category-detail__body p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.58fr);
  gap: 44px;
  align-items: start;
}

.contact-card {
  padding: 32px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-tight);
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
}

.contact-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.contact-options {
  display: grid;
  gap: 14px;
}

.contact-option {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-line);
  background: rgba(247, 243, 236, 0.56);
}

.contact-option strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--color-oxblood);
  font-size: 14px;
}

.section--ink .section-kicker {
  color: var(--color-brass);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
}

.section-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 17px;
}

.section--ink .section-copy {
  color: rgba(255, 253, 248, 0.72);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 52px;
  align-items: center;
}

.intro-copy {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.28;
}

.intro-copy p {
  margin: 0;
}

.intro-copy strong {
  color: var(--color-oxblood);
  font-weight: 500;
}

.atelier-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-line);
  background: var(--color-line);
}

.stat {
  min-height: 148px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  background: var(--color-paper);
}

.stat__number {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.stat__label {
  color: var(--color-muted);
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(31, 27, 24, 0.1);
  background: var(--color-ink);
  box-shadow: var(--shadow-tight);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 500ms ease;
}

.category-tile:hover img {
  transform: scale(1.04);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.42);
}

.category-tile__content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 28px;
  color: var(--color-paper);
}

.category-tile__number {
  color: rgba(255, 253, 248, 0.68);
  font-size: 14px;
}

.category-tile h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.05;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 15px;
}

.collection-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--color-muted);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--color-paper);
  outline: none;
  background: var(--color-ink);
}

.catalog-link {
  color: var(--color-oxblood);
  font-size: 14px;
  border-bottom: 1px solid currentColor;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: 0 1px 0 rgba(31, 27, 24, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(101, 27, 36, 0.34);
  box-shadow: var(--shadow-tight);
}

.product-card.is-hidden {
  display: none;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fbfaf6;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  color: var(--color-paper);
  background: var(--color-oxblood);
  font-size: 12px;
}

.product-card__body {
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 20px;
}

.product-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.product-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: #504841;
  font-size: 12px;
  background: rgba(247, 243, 236, 0.7);
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.product-card .button {
  width: 100%;
}

.atelier-band {
  position: relative;
  overflow: hidden;
}

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.atelier-photo {
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.12);
}

.atelier-photo img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
}

.process-list {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  background: rgba(255, 253, 248, 0.14);
}

.process-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.05);
}

.process-item__step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 999px;
  color: var(--color-brass);
  font-family: var(--serif);
  font-size: 21px;
}

.process-item h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.process-item p {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
}

.certificate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: center;
}

.certificate-copy {
  display: grid;
  gap: 24px;
}

.certificate-copy blockquote {
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--color-oxblood);
  color: #4f4740;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
}

.signature {
  width: 220px;
  mix-blend-mode: multiply;
}

.certificate-preview {
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.certificate-preview img {
  width: 100%;
  object-fit: cover;
}

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

.journal-item {
  display: grid;
  gap: 18px;
  align-content: start;
}

.journal-item__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}

.journal-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

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

.contact-band {
  padding: 76px 0;
  color: var(--color-paper);
  background: var(--color-oxblood-dark);
}

.contact-inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
}

.contact-inner p {
  margin: 10px 0 0;
  color: rgba(255, 253, 248, 0.76);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--color-line);
  background: #efe8dd;
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-brand {
  color: var(--color-ink);
  font-family: var(--serif);
  font-size: 22px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-separator {
  color: var(--color-line);
}

.footer-powered a {
  color: var(--color-oxblood);
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-powered a:hover,
.footer-powered a:focus-visible {
  color: var(--color-oxblood-dark);
  text-decoration: underline;
}

.wa-float {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--color-paper);
  background: #1f6f4a;
  box-shadow: 0 14px 34px rgba(24, 78, 54, 0.28);
  font-size: 14px;
}

.wa-float:hover,
.wa-float:focus-visible {
  outline: none;
  background: #18563a;
}

.page-main {
  background: var(--color-paper);
}

.content-page {
  width: min(calc(100% - 40px), 880px);
  margin: 0 auto;
  padding: 84px 0;
}

.content-page h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.08;
}

.content-page :where(p, li) {
  color: var(--color-muted);
}

.single-product {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
  padding: 74px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: start;
}

.single-product__media {
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-tight);
}

.single-product__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 28px;
}

.single-product__content {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.single-product h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1.04;
}

.single-product__lead {
  margin: 0 0 26px;
  color: var(--color-muted);
  font-size: 18px;
}

.single-product__meta {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.archive-hero {
  padding: 88px 0 56px;
  color: var(--color-paper);
  background: var(--color-ink);
}

.archive-hero__inner {
  width: min(calc(100% - 40px), var(--max-page));
  margin: 0 auto;
}

.archive-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1.05;
}

.archive-hero p {
  width: min(620px, 100%);
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.hero__content.reveal,
.subpage-hero__content.reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media (max-width: 1120px) {
  .site-header__inner {
    gap: 14px;
  }

  .brand {
    min-width: 190px;
  }

  .nav-menu a,
  .site-nav a {
    padding: 9px 10px;
  }

  body.home-sequence .site-header__inner,
  body.home .site-header__inner {
    gap: 12px;
  }

  body.home-sequence .brand,
  body.home .brand {
    min-width: 184px;
  }

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

@media (max-width: 920px) {
  .site-header__inner {
    width: min(calc(100% - 28px), var(--max-page));
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    padding: 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-porcelain);
  }

  body.home-sequence .site-nav,
  body.home .site-nav {
    top: 88px;
    inset-inline: 14px;
    border: 1px solid rgba(217, 208, 196, 0.78);
    border-radius: 24px;
    background: rgba(247, 243, 236, 0.96);
    box-shadow: 0 18px 44px rgba(22, 17, 14, 0.14);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .nav-menu,
  .site-nav ul {
    display: grid;
    gap: 8px;
    justify-content: stretch;
    width: 100%;
  }

  .nav-menu li,
  .site-nav li {
    width: 100%;
  }

  .nav-menu a,
  .site-nav a {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 0;
    background: var(--color-paper);
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 110px);
  }

  .sequence-scene {
    padding-top: calc(var(--header-height) + 70px);
  }

  .sequence-stage {
    height: 480svh;
  }

  .sequence-stage--bag {
    height: 360svh;
  }

  .sequence-mark--right {
    display: none;
  }

  .display-title {
    font-size: 54px;
  }

  .hero__copy {
    font-size: 17px;
  }

  .hero__meta,
  .section-head,
  .intro-grid,
  .atelier-grid,
  .certificate-grid,
  .contact-inner,
  .single-product,
  .editorial-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-detail {
    grid-template-columns: 1fr;
  }

  .category-detail__body {
    padding: 0 26px 28px;
  }

  .category-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .category-tile img {
    min-height: 430px;
  }

  .atelier-photo,
  .atelier-photo img {
    min-height: 440px;
  }

  .single-product__content {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .site-header__inner,
  .section__inner,
  .contact-inner,
  .site-footer__inner,
  .single-product,
  .content-page,
  .archive-hero__inner {
    width: min(calc(100% - 28px), var(--max-page));
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__sub {
    display: none;
  }

  body.home-sequence .site-header__inner,
  body.home .site-header__inner {
    width: min(calc(100% - 18px), var(--max-page));
    min-height: 58px;
    margin-top: 8px;
    padding: 0 8px 0 10px;
  }

  body.home-sequence .brand,
  body.home .brand {
    min-width: auto;
  }

  .hero__inner {
    width: min(calc(100% - 28px), var(--max-page));
    padding: 38px 0 92px;
  }

  .sequence-stage {
    --sequence-pad-x: 18px;
    height: 440svh;
  }

  .sequence-stage--bag {
    height: 340svh;
  }

  .sequence-canvas {
    filter: saturate(1.12) contrast(1.03) brightness(1.04);
  }

  .sequence-vignette,
  .sequence-stage--home .sequence-vignette {
    background:
      radial-gradient(circle at 50% 34%, rgba(255, 253, 248, 0) 0%, rgba(22, 17, 14, 0.08) 42%, rgba(22, 17, 14, 0.48) 100%),
      linear-gradient(180deg, rgba(14, 10, 8, 0.18) 0%, rgba(14, 10, 8, 0.08) 32%, rgba(14, 10, 8, 0.72) 100%);
  }

  .sequence-scene {
    min-height: 100svh;
    align-items: end;
    padding: 110px var(--sequence-pad-x) 76px;
  }

  .sequence-scene--right,
  .sequence-scene--center {
    justify-content: flex-start;
    text-align: left;
  }

  .sequence-scene--center .sequence-actions {
    justify-content: flex-start;
  }

  .sequence-title {
    font-size: 42px;
    line-height: 1.02;
  }

  .sequence-scene:not(.sequence-scene--start) .sequence-title {
    font-size: 36px;
  }

  .sequence-text {
    font-size: 16px;
  }

  .sequence-lockup {
    margin-bottom: 18px;
  }

  .sequence-lockup span {
    font-size: 22px;
  }

  .sequence-mark {
    top: 86px;
  }

  .hero {
    align-items: center;
    min-height: calc(100svh - 150px);
  }

  .hero::before {
    background-position: 66% center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(15, 10, 8, 0.34) 0%, rgba(15, 10, 8, 0.76) 48%, rgba(15, 10, 8, 0.86) 100%),
      linear-gradient(112deg, rgba(255, 255, 255, 0) 38%, rgba(255, 238, 196, 0.1) 52%, rgba(255, 255, 255, 0) 68%);
    background-size: 100% 100%, 180% 100%;
  }

  .display-title {
    font-size: 40px;
    line-height: 1.04;
  }

  .hero__copy {
    font-size: 16px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__meta {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    gap: 20px;
    margin-bottom: 30px;
  }

  .section-title,
  .content-page h1,
  .single-product h1,
  .archive-hero h1,
  .subpage-hero h1 {
    font-size: 38px;
  }

  .subpage-hero__inner {
    width: min(calc(100% - 28px), var(--max-page));
    padding: 72px 0 64px;
  }

  .intro-copy {
    font-size: 26px;
  }

  .atelier-stats,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .collection-tools {
    align-items: stretch;
  }

  .filter-bar {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    border-radius: 22px;
  }

  .filter-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 132px;
    white-space: normal;
  }

  .contact-inner h2 {
    font-size: 34px;
  }

  .site-footer__inner {
    display: grid;
  }

  .wa-float {
    display: none;
  }
}
