:root {
  --navy: #0a2342;
  --navy-2: #143263;
  --ink: #0e1f3a;
  --accent: #2c8a9c;
  --accent-2: #4faab5;
  --sand: #f6efe1;
  --aqua: #eef4f6;
  --paper: #fbf9f5;
  --line: #e2e7ec;
  --line-2: #d6dee5;
  --muted: #6b7c93;
  --muted-strong: #3f4e66;
  --white: #ffffff;
  --shadow-soft: 0 12px 40px rgba(10, 35, 66, 0.06);
  --shadow-md: 0 22px 60px rgba(10, 35, 66, 0.09);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Page transitions + reveals ---------- */
html.is-animating .transition-fade { opacity: 0; }
.transition-fade { opacity: 1; transition: opacity 0.16s ease-in-out; }

.page-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 0; height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: width 0.25s ease, opacity 0.2s ease;
}
.page-progress.active { width: 76%; opacity: 1; }
.page-progress.done { width: 100%; opacity: 0; }

.reveal, .reveal-stagger > * {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(22px); }
.reveal-stagger > * { transform: translateY(16px); }
.reveal.visible, .reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 72px;
  padding: 0.7rem var(--gutter);
  border-bottom: 1px solid rgba(10, 35, 66, 0.08);
  background: var(--paper);
  transition:
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 220ms ease,
    border-color 220ms ease;
}
.site-header > * { position: relative; z-index: 1; }
.site-header > .brand { margin-right: auto; }

.site-header.is-hidden { transform: translateY(-102%); }
.site-header.is-scrolled {
  border-bottom-color: rgba(10, 35, 66, 0.12);
  box-shadow: 0 12px 28px rgba(10, 35, 66, 0.045);
}

.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img {
  display: block;
  width: clamp(170px, 14vw, 220px);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.main-nav a { position: relative; padding: 0.4rem 0; transition: color 180ms ease; }
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: center;
  transition: transform 200ms ease;
}
.main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav a[aria-current="page"]::after,
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.1rem;
}
.header-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: color 180ms ease;
}
.header-actions a:hover { color: var(--accent); }
.header-actions svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-width: 1.7;
}

.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -10px;
  display: grid; place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.66rem; font-weight: 700;
  font-feature-settings: "tnum";
  transition: transform 180ms ease;
}
.cart-count.is-empty { display: none; }

.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-toggle[aria-expanded="true"] .menu-toggle-open { display: none; }
.menu-toggle .menu-toggle-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-close { display: block; }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0;
  z-index: 25;
  display: none;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu nav a::after {
  content: "→";
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 2px;
  padding: 0.95rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(10, 35, 66, 0.18);
}
.button-primary:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(10, 35, 66, 0.22);
}
.button-ghost {
  border: 1px solid rgba(10, 35, 66, 0.22);
  background: transparent;
  color: var(--navy);
}
.button-ghost:hover {
  background: var(--white);
  border-color: rgba(10, 35, 66, 0.42);
}

.text-button {
  border: 0; padding: 0; background: transparent;
  color: var(--accent); font: inherit;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
}
.text-button:hover { color: var(--navy); }

/* ---------- Eyebrow + section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.section {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-heading {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 720px;
}
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.section-heading p.lede {
  max-width: 560px;
  margin: 1.1rem auto 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 5rem);
}
.hero h1 {
  margin: 0 0 1.3rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.008em;
}
.hero-support {
  max-width: 460px;
  margin: 0 0 1.8rem;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-credentials {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.6rem;
  margin-top: 2.4rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-credentials span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-credentials svg {
  width: 16px; height: 16px;
  color: var(--accent);
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero-product {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
}
.hero-product img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  object-fit: contain;
}

/* ---------- Values band ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.values article {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.7rem;
  padding: 2rem clamp(1.2rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
}
.values article:last-child { border-right: 0; }
.values svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.values h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.values p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Shop / product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 138, 156, 0.32);
  box-shadow: var(--shadow-md);
}
.product-card a.product-art { display: flex; }

.product-art {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 260px;
  background: linear-gradient(180deg, #f4f7f9 0%, #e9eff2 100%);
}
.product-art img {
  display: block;
  width: 92%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.product-info {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.5rem 1.7rem;
}
.product-info h2, .product-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}
.product-info h2 a, .product-info h3 a { color: inherit; }
.product-info h2 a:hover, .product-info h3 a:hover { color: var(--accent); }
.product-info .product-size { margin: 0; color: var(--muted); font-size: 0.9rem; }
.product-info > strong {
  display: block;
  margin: 0.4rem 0 0.9rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- Quantity control ---------- */
.quantity-control {
  display: inline-grid;
  grid-template-columns: 2.4rem 2.6rem 2.4rem;
  align-items: center;
  height: 42px;
  margin: 0 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  overflow: hidden;
}
.quantity-control button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 180ms ease;
}
.quantity-control button:hover { background: var(--aqua); }
.quantity-control span {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}
.quantity-control.compact { margin: 0; }

.add-cart {
  width: min(100%, 220px);
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  font-size: 0.72rem;
}

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.story h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
}
.story-body p {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.85;
}
.story-body p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.steps-grid article {
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.steps-grid article:hover {
  border-color: rgba(44, 138, 156, 0.32);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.steps-grid .step-num {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.steps-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
}
.steps-grid p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  width: min(100% - 2 * var(--gutter), 880px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; margin-bottom: 1.1rem; }
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.006em;
}
.page-hero p {
  max-width: 560px;
  margin: 1.2rem auto 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.product-detail-media {
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
  background: linear-gradient(180deg, #f4f7f9 0%, #e9eff2 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.product-detail-media img {
  display: block;
  width: 88%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
}
.product-detail-copy h1 {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.006em;
}
.product-detail-copy .product-size {
  margin: 0 0 0.3rem;
  color: var(--muted);
}
.product-detail-copy .product-price {
  display: block;
  margin: 0.4rem 0 1.4rem;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
}
.product-detail-copy > p:not(.product-size) {
  margin: 0 0 1.4rem;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.8;
}
.product-detail-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem;
  margin-top: 0.4rem;
}
.product-detail-actions .quantity-control { margin: 0; }
.product-notes {
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
}
.product-notes div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.product-notes dt {
  margin: 0;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy);
}
.product-notes dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------- Formulation strip (product page credibility) ---------- */
.formulation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.formulation .col h3 {
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.formulation .col p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem; line-height: 1.8;
}
.formulation .col ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 0.45rem;
}
.formulation .col li {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--muted-strong);
  font-size: 0.96rem;
}
.formulation .col li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
  flex: 0 0 auto;
  display: inline-block;
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
.cart-items, .cart-summary {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
}
.cart-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 130px; height: 96px;
  object-fit: cover;
  background: #eaeff2;
  border-radius: 2px;
}
.cart-item h2 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
}
.cart-item p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.9rem; }
.cart-item > strong { color: var(--navy); font-weight: 600; }

.cart-summary {
  padding: 1.5rem;
  position: sticky; top: 92px;
}
.cart-summary .eyebrow { margin-bottom: 0.9rem; }
.cart-summary > div {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.93rem;
}
.cart-summary > div strong { color: var(--navy); font-size: 1rem; font-weight: 600; }
.cart-summary .button { width: 100%; margin-top: 1.4rem; }

.empty-state {
  max-width: 540px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  text-align: center;
}
.empty-state h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--navy);
}
.empty-state p {
  margin: 0 0 1.5rem;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Profile ---------- */
.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.profile-form, .profile-panel aside {
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.profile-form { display: grid; gap: 1.1rem; }
.profile-form label {
  display: grid; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy);
}
.profile-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 180ms ease, background 180ms ease;
}
.profile-form input:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--white);
}
.profile-panel aside h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
}
.profile-panel aside .eyebrow { margin-bottom: 0.9rem; }
.profile-panel aside p {
  margin: 0.6rem 0 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

/* ---------- Editorial (about) ---------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.editorial h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
}
.editorial-body p {
  margin: 0 0 1.1rem;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.85;
}
.editorial-body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0a2342, #061a36);
  color: rgba(255, 255, 255, 0.86);
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter) 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.footer-brand img {
  display: block;
  width: 200px; height: 50px;
  object-fit: contain; object-position: left;
}
.footer-brand p {
  max-width: 280px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.75;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.footer-links > div { display: grid; gap: 0.55rem; align-content: start; }
.footer-links h2 {
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.footer-links a, .footer-links span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--white); }

.footer-signup { display: grid; gap: 0.9rem; }
.footer-signup label {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.footer-signup-field {
  display: grid; grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-signup input, .footer-signup button {
  min-height: 44px;
  border: 0; background: transparent;
  color: var(--white); font: inherit;
}
.footer-signup input { min-width: 0; outline: none; }
.footer-signup input::placeholder { color: rgba(255, 255, 255, 0.42); }
.footer-signup button {
  padding-left: 1rem;
  color: var(--accent-2);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}
.footer-signup button:hover { color: var(--white); }
.footer-signup-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: var(--container-wide);
  margin: 2.5rem auto 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(2rem, 5vw, 3rem);
  }
  .hero-product { min-height: auto; margin-top: 1.5rem; }
  .hero-product img { max-width: 560px; }

  .product-grid { grid-template-columns: 1fr; }
  .product-detail, .story, .editorial, .cart-layout, .profile-panel {
    grid-template-columns: 1fr;
  }
  .product-detail-media { min-height: 360px; }
  .cart-summary { position: static; }
  .formulation { grid-template-columns: 1fr; }

  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { grid-template-columns: auto 1fr auto auto; }
}

@media (max-width: 760px) {
  .site-header { gap: 0.5rem; padding: 0.7rem 1rem; }
  .brand img { width: 168px; height: 40px; }
  .header-actions { gap: 0.6rem; }

  .values { grid-template-columns: repeat(2, 1fr); }
  .values article { border-right: 1px solid var(--line); }
  .values article:nth-child(2n) { border-right: 0; }
  .values article:nth-child(1), .values article:nth-child(2) { border-bottom: 1px solid var(--line); }

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

  .footer-inner, .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }

  .product-card { grid-template-columns: 1fr; }
  .product-art { min-height: 240px; }

  .cart-item {
    grid-template-columns: 96px 1fr;
    grid-template-areas:
      "img info"
      "img qty"
      "total total";
    row-gap: 0.7rem;
  }
  .cart-item img { width: 96px; height: 80px; grid-area: img; }
  .cart-item > div:first-of-type { grid-area: info; }
  .cart-item .quantity-control { grid-area: qty; justify-self: start; }
  .cart-item > strong { grid-area: total; justify-self: start; }

  .mobile-menu { inset: 64px 0 0 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.1rem); }
  .page-hero h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .header-actions { display: none; }
}
