/*
 * SCENTIVOIRE · Porcelana «Los Tres Salones» · Home (front-page.php)
 * Tokens come from porcelana-base.css; each var() keeps its value as fallback.
 * Radius 0 except the Women arch. No shadows except the bottles' contact shadow.
 * 0.4.1: the hero is a full-bleed scene with the title on the photo (owner's brief, 29/09).
 */

.pc-home {
  --pc-home-ink: var(--pc-grafito, #1D1E20);
  --pc-home-muted: var(--pc-pizarra, #5A5D62);
  --pc-home-rule: var(--pc-filete, #D4D2CD);
  --pc-home-rule-strong: var(--pc-filete-activo, #83858A);
  --pc-home-paper: var(--pc-porcelana, #F4F3F0);
  --pc-home-plaster: var(--pc-yeso, #E8E6E1);
  --pc-home-font: var(--pc-font, "Albert Sans", "Helvetica Neue", Arial, sans-serif);
  --pc-home-gutter: var(--pc-gutter, clamp(24px, 5.5vw, 80px));
  --pc-home-max: var(--pc-wrap, 1440px);
  --pc-home-space: clamp(88px, 9vw, 144px);
  --pc-home-gap: clamp(16px, 2.2vw, 32px);
  --pc-home-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  display: block;
  overflow-x: clip;
  background: var(--pc-home-paper);
  color: var(--pc-home-ink);
  font-family: var(--pc-home-font);
  font-weight: 400;
}

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

.pc-home img { max-width: 100%; }

.pc-home-wrap {
  width: 100%;
  max-width: var(--pc-home-max);
  margin-inline: auto;
  padding-inline: var(--pc-home-gutter);
}

/* Shared. Labels, text links and the button take their look from porcelana-base.css
   (.pc-label, .pc-link, .pc-button); these rules only place them. */
.pc-home-label { margin: 0; }

.pc-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}

.pc-home-h2 {
  margin: 0;
  font-size: var(--pc-h2, clamp(1.625rem, 1.25rem + 1.2vw, 2.5rem));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--pc-home-ink);
  text-wrap: balance;
}

.pc-home-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--pc-home-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--pc-home-rule-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s var(--pc-home-ease);
}

.pc-home a:focus-visible,
.pc-home button:focus-visible {
  outline: 1px solid var(--pc-home-ink);
  outline-offset: 4px;
}

.pc-home-empty {
  margin: 32px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pc-home-muted);
}

/* ---------------------------------------------------------------
   1 · Threshold (hero) — the house image at full bleed, the title on it.
   hero-maison.webp is 2172 x 724 (ratio 3:1). The bottle ends at 81.5 % of
   the width (2.4448 x the height) and is 0.3771 x the height wide: on desktop
   the photo is placed with those numbers so the bottle always keeps the right
   of the frame, whole, and the title rests on the light wall.
   Never enlarged beyond ~1.25x (hero height capped at 900px).
   --------------------------------------------------------------- */
.pc-home-hero {
  --pc-hero-top: 64px;                 /* header height: 63 + 1px rule */
  --pc-hero-veil: 241, 237, 230;       /* warm porcelain sampled from the lit travertine */
  --pc-hero-m: var(--pc-home-gutter);  /* distance from the bottle to the right edge */
  --pc-hero-mh: clamp(440px, 74svh, 700px); /* stacked layouts: photo height */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pc-home-paper);
  color: var(--pc-home-ink);
}

.pc-home .pc-home-hero__media {
  position: relative;
  height: var(--pc-hero-mh);
  margin: 0;
  overflow: hidden;
  background: #B89A7C; /* average tone of the photo while it loads */
}

.pc-home .pc-home-hero__img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 81% 50%;
  filter: saturate(0.84) brightness(1.03) contrast(0.97);
  transform-origin: 76% 58%;
}

/* Mobile veil: rubric and title rest on the travertine block (its texture stays
   visible), then the photo melts into porcelain under the lead. */
.pc-home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(var(--pc-hero-veil), 0) 56%,
    rgba(var(--pc-hero-veil), 0.36) 72%,
    rgba(var(--pc-hero-veil), 0.7) 88%,
    var(--pc-home-paper) 100%);
}

/* Museum label for the scene: a vertical strip on phones, a two-line card under the bottle on desktop */
.pc-home .pc-home-hero__caption {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 12px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px 7px;
  writing-mode: vertical-rl;
  text-orientation: sideways;
  background: rgba(244, 243, 240, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pc-home-ink);
  white-space: nowrap;
}

.pc-home .pc-home-hero__caption::before {
  content: "";
  flex: none;
  inline-size: 18px;
  block-size: 1px;
  margin-inline-end: 10px;
  background: currentColor;
}

.pc-home-hero__caption-sep { white-space: pre; }

.pc-home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: calc(var(--pc-hero-mh) * -0.21); /* text starts at 79 %: on the stone, just under the bottle (which ends at 75 %) */
  padding-bottom: clamp(40px, 6vw, 64px);
}

/* Rubric: what this is, and how much is really published */
.pc-home-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  font-size: var(--pc-label, 0.6875rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--pc-label-track, 0.3em);
  text-transform: uppercase;
  color: var(--pc-home-ink);
}

.pc-home-hero__rule {
  display: none;
  flex: none;
  width: 40px;
  height: 1px;
  background: currentColor;
}

.pc-home-hero__kicker-text,
.pc-home-hero__count { flex: 1 0 100%; }
.pc-home-hero__count { font-variant-numeric: tabular-nums lining-nums; }

/* The title: giant, weight 200, never broken inside a word. */
.pc-home .pc-home-hero__title {
  max-width: 100%;
  margin: clamp(18px, 2.4vw, 36px) 0 0;
  font-family: var(--pc-home-font);
  font-size: clamp(2.875rem, 12.4vw + 0.25rem, 5.5rem);
  font-weight: 200;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--pc-home-ink);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.pc-home-hero__lead {
  max-width: 30ch;
  margin: clamp(18px, 2vw, 36px) 0 0;
  font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.625rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--pc-home-ink);
  text-wrap: balance;
}

.pc-home-hero__lead-s { display: block; } /* one sentence per line */

.pc-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
  width: 100%;
  margin-top: clamp(28px, 3.2vw, 48px);
}

/* Search: one field on translucent porcelain glass, 1px graphite rule */
.pc-home-search {
  flex: 1 1 320px;
  max-width: 520px;
  margin: 0;
}

.pc-home-search__field {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--pc-home-ink);
  transition: background-color 0.3s var(--pc-home-ease), box-shadow 0.3s var(--pc-home-ease);
}

.pc-home-search__field:focus-within { box-shadow: 0 1px 0 0 var(--pc-home-ink); }

.pc-home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  margin: 0;
  padding: 18px 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--pc-home-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--pc-home-ink);
  text-align: left;
}

.pc-home-search__input:focus { outline: none; }
.pc-home-search__input::placeholder { color: transparent; }
.pc-home-search__input::-webkit-search-decoration,
.pc-home-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.pc-home-search__label {
  position: absolute;
  top: 30px;
  left: 0;
  right: 44px;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pc-home-ink);
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  pointer-events: none;
  transition: top 0.3s var(--pc-home-ease), font-size 0.3s var(--pc-home-ease), letter-spacing 0.3s var(--pc-home-ease);
}

.pc-home-search__input:focus + .pc-home-search__label,
.pc-home-search__input:not(:placeholder-shown) + .pc-home-search__label {
  top: 16px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pc-home-search__submit {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--pc-home-ink);
  cursor: pointer;
}

.pc-home-icon { display: block; }

/* Secondary call: down to the three salons */
.pc-home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: var(--pc-label, 0.6875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pc-home-ink);
  text-decoration: none;
}

.pc-home-hero__cta span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--pc-home-ink);
  text-underline-offset: 7px;
  transition: text-decoration-color 0.3s var(--pc-home-ease);
}

.pc-home-hero__arrow { display: block; transition: transform 0.4s var(--pc-home-ease); }

/* Entrance: the text rises in steps, the photo settles slowly. */
@media (prefers-reduced-motion: no-preference) {
  .pc-home .pc-home-hero__img { animation: pc-home-hero-settle 12s cubic-bezier(0.16, 0.5, 0.3, 1) both; }
  .pc-home-hero__kicker,
  .pc-home .pc-home-hero__title,
  .pc-home-hero__lead,
  .pc-home-hero__actions,
  .pc-home .pc-home-hero__caption { animation: pc-home-hero-rise 0.9s var(--pc-home-ease) both; }
  .pc-home-hero__kicker { animation-delay: 0.1s; }
  .pc-home .pc-home-hero__title { animation-delay: 0.22s; }
  .pc-home-hero__lead { animation-delay: 0.42s; }
  .pc-home-hero__actions { animation-delay: 0.56s; }
  .pc-home .pc-home-hero__caption { animation-delay: 0.9s; }
}

@keyframes pc-home-hero-settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes pc-home-hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Tablet portrait: the same stacked scene, a wider slice of the arcade */
@media (min-width: 48em) {
  .pc-home-hero { --pc-hero-top: 97px; }
  .pc-home .pc-home-hero__img { object-position: 78% 50%; }
  .pc-home .pc-home-hero__title { font-size: clamp(4.5rem, 10vw, 6.5rem); }
  .pc-home-hero { --pc-hero-mh: clamp(520px, 64svh, 760px); }
  .pc-home .pc-home-hero__caption {
    top: 20px;
    right: var(--pc-home-gutter);
    padding: 8px 12px 8px 10px;
    writing-mode: horizontal-tb;
  }
}

/* Desktop: one scene filling the viewport under the header */
@media (min-width: 64em) {
  .pc-home-hero {
    --pc-hero-h: clamp(640px, calc(100svh - var(--pc-hero-top)), 900px);
    display: block;
    height: var(--pc-hero-h);
    background: #B89A7C;
  }
  .pc-home .pc-home-hero__media {
    position: absolute;
    inset: 0;
    height: auto;
  }
  /* Photo height = hero height; its left edge is set so the bottle ends at --pc-hero-m from the right. */
  .pc-home .pc-home-hero__img {
    position: absolute;
    top: 0;
    left: min(0px, calc(100% - var(--pc-hero-m) - var(--pc-hero-h) * 2.4448));
    width: calc(var(--pc-hero-h) * 3);
    min-width: 100%;
    height: 100%;
    object-position: 100% 50%;
  }
  /* Veil only where the text is, and light: the sun rays on the wall stay visible.
     Measured on the bare photo (2nd-percentile luminance under each text box):
     rubric >= 5.8:1, lead >= 7.2:1, title >= 5.8:1. */
  .pc-home-hero__media::after {
    background:
      linear-gradient(90deg,
        rgba(var(--pc-hero-veil), 0.42) 0%,
        rgba(var(--pc-hero-veil), 0.36) 22%,
        rgba(var(--pc-hero-veil), 0.22) 38%,
        rgba(var(--pc-hero-veil), 0.07) 50%,
        rgba(var(--pc-hero-veil), 0) 60%),
      linear-gradient(0deg,
        rgba(var(--pc-hero-veil), 0.22) 0%,
        rgba(var(--pc-hero-veil), 0) 26%);
  }
  /* Kept within the bottle's width, so it never meets the search bar. */
  .pc-home .pc-home-hero__caption {
    top: auto;
    right: var(--pc-hero-m);
    bottom: clamp(32px, 5.6vh, 60px);
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    gap: 5px 12px;
    max-width: calc(var(--pc-hero-h) * 0.3771);
    padding: 12px 18px 12px 14px;
    font-size: var(--pc-label, 0.6875rem);
    white-space: normal;
  }
  .pc-home-hero__caption-sep {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pc-home-hero__caption-b {
    grid-column: 2;
    font-size: 0.8125rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
  }
  .pc-home-hero__caption-b::first-letter { text-transform: uppercase; }
  .pc-home .pc-home-hero__caption::before { margin: 0; }
  .pc-home-hero__inner {
    height: 100%;
    margin-top: 0;
    padding-block: clamp(32px, 5.6vh, 60px);
  }
  .pc-home .pc-home-hero__title {
    /* Width: the larger of 12.5vw - 2.5rem and the free wall left of the bottle / 5.8
       (lines are at most 5.6em, so the widest line always stops short of the bottle):
       197px at 1920x1080, 154px at 1440x1000, 88px at 1024.
       Height: what is left once rubric, lead and search are placed (~380px) holds three lines. */
    max-width: min(5.6em, calc(100% + max(0px, (100vw - var(--pc-home-max)) / 2) - var(--pc-hero-h) * 0.3771 - 56px));
    margin-top: auto;
    font-size: max(3.5rem, min(max(calc(12.5vw - 2.5rem), calc((min(100vw, var(--pc-home-max)) - 2 * var(--pc-home-gutter) + max(0px, (100vw - var(--pc-home-max)) / 2) - var(--pc-hero-h) * 0.3771 - 56px) / 5.8)), calc((var(--pc-hero-h) - 380px) / 2.64), 12.5rem));
  }
  .pc-home-hero__lead { max-width: 34ch; }
  .pc-home-hero__kicker { margin-bottom: 24px; }
  .pc-home-hero__kicker-text,
  .pc-home-hero__count { flex: none; }
  .pc-home-hero__rule { display: block; }
  /* On the photo the two controls sit on translucent porcelain glass, one bar. */
  .pc-home-hero__actions {
    gap: 12px;
    max-width: calc(100% + max(0px, (100vw - var(--pc-home-max)) / 2) - var(--pc-hero-h) * 0.3771 - 56px);
  }
  .pc-home-search { flex: 1 1 400px; }
  .pc-home-search__field,
  .pc-home-hero__cta {
    background: rgba(244, 243, 240, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    backdrop-filter: blur(14px) saturate(1.05);
  }
  .pc-home-search__field { padding: 0 8px 0 20px; }
  .pc-home-search__field:focus-within { background: rgba(244, 243, 240, 0.94); }
  .pc-home-search__label { left: 20px; right: 52px; font-size: 1rem; }
  .pc-home-search__submit { margin-right: 0; }
  .pc-home-hero__cta {
    min-height: 60px;
    padding: 0 22px;
    border-bottom: 1px solid var(--pc-home-ink);
    background: rgba(244, 243, 240, 0.62);
  }
  .pc-home-hero__cta span { text-decoration-color: transparent; }
}

/* Below 1280px the salons call may wrap under the search: keep room for it. */
@media (min-width: 64em) and (max-width: 79.99em) {
  .pc-home .pc-home-hero__title { font-size: max(3.5rem, min(calc(12.5vw - 2.5rem), calc((var(--pc-hero-h) - 400px) / 2.64))); }
}

@media (min-width: 75em) {
  .pc-home-hero { --pc-hero-top: 121px; }
}

@media (max-width: 25em) {
  .pc-home-search__label { font-size: 0.875rem; }
}

/* German and Polish: calmer tracking on the small capitals */
:lang(de) .pc-home-hero__kicker,
:lang(pl) .pc-home-hero__kicker,
:lang(de) .pc-home-hero__cta,
:lang(pl) .pc-home-hero__cta { letter-spacing: 0.18em; }

/* ---------------------------------------------------------------
   2 · The three salons — Mujer · Unisex (axis) · Hombre
   --------------------------------------------------------------- */
.pc-home-salons { padding-top: var(--pc-home-space); }

.pc-home-salons__title { text-align: center; }

.pc-home-salon--mujer {
  --pc-home-accent: var(--pc-mujer-acento, #8C4A44);
  --pc-home-line: var(--pc-mujer-peana, #D8C2BA);
  --pc-home-tint: var(--pc-mujer-tinte, #F5EEEB);
}
.pc-home-salon--unisex {
  --pc-home-accent: var(--pc-unisex-acento, #3D4A5D);
  --pc-home-line: var(--pc-unisex-peana, #C4CBD5);
  --pc-home-tint: var(--pc-unisex-tinte, #EEF0F3);
}
.pc-home-salon--hombre {
  --pc-home-accent: var(--pc-hombre-acento, #3E5148);
  --pc-home-line: var(--pc-hombre-peana, #C2CCC4);
  --pc-home-tint: var(--pc-hombre-tinte, #EDF0EC);
}

.pc-home-salons__grid {
  margin-top: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--pc-home-rule);
}

/* Mobile first: stacked rows, image left, text right */
.pc-home-salon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  column-gap: clamp(16px, 5vw, 32px);
  align-items: end;
  padding-block: 32px;
  border-bottom: 1px solid var(--pc-home-rule);
}

.pc-home-salon__media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.pc-home-salon__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--pc-home-ease);
}

/* Mujer: the arch, doubled by a 1px line */
.pc-home-salon__media--arch {
  padding: 8px 8px 0;
  border: 1px solid var(--pc-home-line);
  border-bottom: 0;
  border-radius: 100vmax 100vmax 0 0;
}

.pc-home-salon__media--arch img {
  object-position: 50% 58%;
  border-radius: 100vmax 100vmax 0 0;
  filter: saturate(0.88) brightness(1.02);
}

/* Hombre: the lintel and an inner passe-partout */
.pc-home-salon__media--lintel {
  display: flex;
  flex-direction: column;
}

.pc-home-salon__media--lintel::before {
  content: "";
  flex: none;
  height: 1px;
  background: var(--pc-home-accent);
}

.pc-home-salon__frame {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  margin: 8px 8px 0;
  border: 1px solid var(--pc-home-accent);
  overflow: hidden;
}

.pc-home .pc-home-salon__frame img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-position: 50% 55%;
  filter: saturate(0.9);
}

/* Unisex: the axis, a 1px shelf and three real bottles */
.pc-home-salon__media--vitrine {
  overflow: hidden;
  background: var(--pc-home-tint);
}

.pc-home-salon__media--vitrine::before,
.pc-home-salon__media--vitrine::after {
  content: "";
  position: absolute;
  background: var(--pc-home-line);
}

.pc-home-salon__media--vitrine::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
}

.pc-home-salon__media--vitrine::after {
  top: 78%;
  left: 0;
  right: 0;
  height: 1px;
}

.pc-home-vitrine {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 22%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-home-vitrine__item {
  position: relative;
  flex: none;
  width: 58.5%;
  margin: 0 -12.7%;
}

.pc-home-vitrine__item::before {
  content: "";
  position: absolute;
  left: 32%;
  right: 32%;
  bottom: -6px;
  height: 12px;
  background: radial-gradient(closest-side, rgba(29, 30, 32, 0.12), rgba(29, 30, 32, 0));
}

.pc-home .pc-home-vitrine__item img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: 50% 100%;
  /* The cut-outs keep ~8% transparent margin under the base: seat them on the shelf. */
  transform: translateY(8.3%);
  transition: transform 0.4s var(--pc-home-ease);
}

.pc-home-salon__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.pc-home-salon__name {
  max-width: 100%;
  margin: 0;
  font-family: var(--pc-home-font);
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--pc-home-ink);
  overflow-wrap: break-word;
  hyphens: auto;
}

.pc-home-salon__count {
  margin: 14px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--pc-home-muted);
}

.pc-home-salon__extra { display: block; }
.pc-home-salon__sep { display: none; }

.pc-home-salon__enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pc-home-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--pc-home-accent);
  text-underline-offset: 6px;
  transition: color 0.3s var(--pc-home-ease);
}

/* The whole salon is one target; the link stays the only control. */
.pc-home-salon__enter::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
}

/* ---------------------------------------------------------------
   3 · Recently published
   --------------------------------------------------------------- */
.pc-home-latest { padding-top: var(--pc-home-space); }

.pc-home-latest__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--pc-home-gap);
  margin-top: clamp(24px, 3vw, 48px);
}

/* Fallback card (only when inc/card.php is not loaded) */
.pc-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pc-home-card__peana {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 5;
  padding: 8% 12% 10%;
  background: var(--pc-peana, var(--pc-home-plaster));
}

.pc-home-card[data-salon="mujer"] .pc-home-card__peana { border-radius: 100vmax 100vmax 0 0; }

.pc-home-card__peana img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  transition: transform 0.4s var(--pc-home-ease);
}

.pc-home-card__house {
  margin: 18px 0 0;
  font-size: var(--pc-label, 0.6875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--pc-label-track, 0.3em);
  text-transform: uppercase;
  color: var(--pc-home-ink);
}

.pc-home-card__name {
  margin: 6px 0 0;
  font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
  hyphens: auto;
}

.pc-home-card__name a { color: var(--pc-home-ink); text-decoration: none; }
.pc-home-card__name a::after { content: ""; position: absolute; inset: 0; }

.pc-home-card__data {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--pc-home-muted);
}

.pc-home-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--pc-home-rule);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.pc-home-card__view { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pc-home-card__status { color: var(--pc-home-muted); }

/* ---------------------------------------------------------------
   4 · Guided search on plaster
   --------------------------------------------------------------- */
.pc-home-finder {
  margin-top: var(--pc-home-space);
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--pc-home-plaster);
}

.pc-home-finder__grid {
  display: grid;
  gap: 40px;
}

.pc-home-finder__title {
  margin: 20px 0 0;
  font-family: var(--pc-home-font);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--pc-home-ink);
  text-wrap: balance;
  hyphens: manual;
}

.pc-home-finder__copy {
  max-width: 42ch;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pc-home-muted);
}

.pc-home-finder__form { margin: 0; min-width: 0; }

.pc-home-finder__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 28px;
}

.pc-home-finder__label {
  display: block;
  font-size: var(--pc-label, 0.6875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--pc-label-track, 0.3em);
  text-transform: uppercase;
  color: var(--pc-home-ink);
}

.pc-home-finder__select {
  position: relative;
  margin-top: 8px;
  color: var(--pc-home-ink);
}

.pc-home-finder__control {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 28px 0 0;
  border: 0;
  border-bottom: 1px solid var(--pc-home-rule-strong);
  border-radius: 0;
  background: transparent;
  background-image: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--pc-home-font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--pc-home-ink);
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 0.3s var(--pc-home-ease), box-shadow 0.3s var(--pc-home-ease);
}

.pc-home-finder__control:focus { outline: none; }
.pc-home-finder__control:focus-visible {
  border-bottom-color: var(--pc-home-ink);
  box-shadow: 0 1px 0 0 var(--pc-home-ink);
}

.pc-home-finder__chevron {
  position: absolute;
  top: 50%;
  right: 2px;
  margin-top: -6px;
  pointer-events: none;
}

.pc-home-finder__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.pc-home-finder__actions .pc-home-button { width: 100%; }

/* ---------------------------------------------------------------
   5 · How we compare
   --------------------------------------------------------------- */
.pc-home-compare { padding-top: var(--pc-home-space); }

.pc-home-compare__title { text-align: center; }

.pc-home-compare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.pc-home-compare__item {
  padding-block: 28px;
  border-top: 1px solid var(--pc-home-rule);
}

.pc-home-compare__num {
  margin: 0;
  font-size: var(--pc-label, 0.6875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--pc-label-track, 0.3em);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--pc-home-muted);
}

.pc-home-compare__heading {
  margin: 12px 0 0;
  font-family: var(--pc-home-font);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pc-home-ink);
  text-wrap: balance;
}

.pc-home-compare__copy {
  max-width: 38ch;
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pc-home-muted);
}

.pc-home-compare__item .pc-home-inline-link { margin-top: 4px; }

/* ---------------------------------------------------------------
   6 · Journal
   --------------------------------------------------------------- */
.pc-home-journal { padding-block: var(--pc-home-space); }

.pc-home-journal__head { align-items: flex-end; }

.pc-home-journal__title {
  margin: 0;
  font-family: var(--pc-home-font);
  font-size: clamp(3.5rem, 1.6rem + 5.4vw, 7.5rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--pc-home-ink);
}

.pc-home-journal__subtitle {
  margin: 16px 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--pc-home-muted);
}

.pc-home-journal__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(32px, 4vw, 64px);
}

.pc-home-story { position: relative; min-width: 0; }

.pc-home-story__media {
  margin: 0 0 20px;
  overflow: hidden;
  background: var(--pc-home-plaster);
}

.pc-home-story__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--pc-home-ease);
}

.pc-home-story__section {
  margin: 0 0 10px;
  font-size: var(--pc-label, 0.6875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--pc-label-track, 0.3em);
  text-transform: uppercase;
  color: var(--pc-home-muted);
}

.pc-home-story__title {
  margin: 0;
  font-family: var(--pc-home-font);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
  hyphens: auto;
}

.pc-home-story--lead .pc-home-story__title { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }

.pc-home-story__title a {
  color: var(--pc-home-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--pc-home-ease);
}

.pc-home-story__title a::after { content: ""; position: absolute; inset: 0; }

.pc-home-story__date {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--pc-home-muted);
}

.pc-home-journal__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pc-home-journal__list .pc-home-story {
  padding-top: 16px;
  border-top: 1px solid var(--pc-home-rule);
}

/* ---------------------------------------------------------------
   Hover (fine pointers only)
   --------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .pc-home-inline-link:hover { text-decoration-color: var(--pc-home-ink); }
  .pc-home-hero__cta:hover span { text-decoration-color: var(--pc-home-ink); }
  .pc-home-hero__cta:hover .pc-home-hero__arrow { transform: translateY(3px); }
  .pc-home-salon:hover .pc-home-salon__enter { color: var(--pc-home-accent); }
  .pc-home-salon:hover .pc-home-salon__media--arch img,
  .pc-home-salon:hover .pc-home-salon__frame img { transform: scale(1.02); }
  .pc-home-salon:hover .pc-home-vitrine__item img { transform: translateY(calc(8.3% - 4px)); }
  .pc-home-card:hover .pc-home-card__peana img { transform: translateY(-4px); }
  .pc-home-card:hover .pc-home-card__name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .pc-home-story:hover .pc-home-story__title a { text-decoration-color: currentColor; }
  .pc-home-story:hover .pc-home-story__media img { transform: scale(1.015); }
}

/* ---------------------------------------------------------------
   Breakpoints
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  .pc-home-finder__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-home-finder__actions .pc-home-button { width: auto; min-width: 240px; }
}

@media (min-width: 900px) {
  .pc-home-salons__grid {
    --pc-home-salon-gap: clamp(24px, 3vw, 48px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--pc-home-salon-gap);
    border-top: 0;
  }
  .pc-home-salon {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    padding-block: 0;
    border-bottom: 0;
  }
  .pc-home-salon + .pc-home-salon::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--pc-home-salon-gap) / -2);
    width: 1px;
    background: var(--pc-home-rule);
  }
  .pc-home-salon__media { aspect-ratio: 41 / 40; }
  .pc-home-salon__media--arch { padding: 12px 12px 0; }
  .pc-home-salon__frame { margin: 12px 12px 0; }
  .pc-home .pc-home-salon__frame img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .pc-home-salon__body { margin-top: 28px; }
  .pc-home-salon__count { margin-top: 12px; }
  .pc-home-salon__extra { display: inline; }
  .pc-home-salon__sep { display: inline; }
  .pc-home-salon__enter { margin-top: 12px; }

  .pc-home-compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-home-compare__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(20px, 3vw, 48px);
    border-top: 0;
    text-align: center;
  }
  .pc-home-compare__item + .pc-home-compare__item { border-left: 1px solid var(--pc-home-rule); }
  .pc-home-compare__copy { margin-inline: auto; }

  .pc-home-journal__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .pc-home-story--lead { grid-column: 1 / span 8; }
  .pc-home-journal__list { grid-column: 9 / span 4; }
}

@media (min-width: 1024px) {
  .pc-home-latest__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .pc-home-finder__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .pc-home-finder__intro { grid-column: 1 / span 5; }
  .pc-home-finder__form { grid-column: 7 / span 6; }
}

/* German and Polish: longer words, calmer display, hyphenation. */
:lang(de) .pc-home-salon__name,
:lang(pl) .pc-home-salon__name { font-size: clamp(2.25rem, 1.4rem + 2.7vw, 3.4rem); }

:lang(de) .pc-home-journal__title,
:lang(pl) .pc-home-journal__title { font-size: clamp(3rem, 1.4rem + 4.6vw, 6.4rem); }

:lang(de) .pc-home-finder__title,
:lang(pl) .pc-home-finder__title,
:lang(de) .pc-home-compare__heading,
:lang(pl) .pc-home-compare__heading { hyphens: auto; }

:lang(de) .pc-home-salon__enter,
:lang(pl) .pc-home-salon__enter { letter-spacing: 0.16em; }

@media (prefers-reduced-motion: reduce) {
  .pc-home *,
  .pc-home *::before,
  .pc-home *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  .pc-home-salon:hover .pc-home-salon__media img,
  .pc-home-story:hover .pc-home-story__media img,
  .pc-home-card:hover .pc-home-card__peana img { transform: none; }
  .pc-home-salon:hover .pc-home-vitrine__item img { transform: translateY(8.3%); }
}
