@charset "UTF-8";
/* ---------------------------------------------------------------------------
   Typefaces
   The catalogue is set in DIN Condensed Bold (headings) and DIN Pro
   (Light / Regular / Medium) for text. Oswald and Barlow are the closest
   open substitutes and are self-hosted here: no third-party font CDN, so the
   site works offline and needs no cookie or GDPR notice for fonts.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/oswald-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-300-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-ext-300-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ===========================================================================
   Contempora — Italian Professional Haircare
   Web edition of the Barex Italiana printed catalogue (2024).

   The print original is a set of A3 spreads built on a four-column band:
   mood photo · treatment copy · product shots · ingredient panel.
   That band is the backbone of this stylesheet; everything else adapts
   around it.

   1  Design tokens
   2  Base & typography
   3  Masthead / navigation / language
   4  Hero (cover)
   5  Intro spread
   6  Full-bleed image strips
   7  Info bands (Seaberry, Opuntia)
   8  Treatment bands + products + formula panel
   9  Colophon
   10 Responsive
   11 Motion, focus, print
   ======================================================================== */

/* ---------------------------------------------------------------- 1 tokens */
:root {
  /* palette — sampled from the printed catalogue */
  --cream:        #FFF9F0;   /* page stock                                   */
  --cream-deep:   #F4EADC;   /* backdrop behind the sheet on wide screens     */
  --blush:        #FEEEE5;   /* the two ingredient info bands                 */
  --ink:          #231E1E;   /* body copy and headings                        */
  --ink-soft:     #4A4441;
  --muted:        #6E6763;   /* product names, sizes                          */
  --rule:         #E7DED2;   /* hairlines between bands                       */
  --accent:       #F68B8E;   /* Opuntia spread headings                       */

  /* treatment panels */
  --panel:        var(--rule);
  --panel-ink:    #332D2A;
  --panel-plus:   rgba(255, 255, 255, .72);

  /* type */
  --display: "Oswald", "DIN Condensed", "Haettenschweiler", sans-serif-condensed, sans-serif;
  --body:    "Barlow", "DIN Pro", "Helvetica Neue", Arial, sans-serif;

  --fs-band:   clamp(1.25rem, 0.95rem + 0.85vw, 1.85rem);
  --fs-title:  clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem);
  --fs-lead:   clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  --fs-body:   clamp(0.94rem, 0.9rem + 0.2vw, 1.03rem);
  --fs-small:  clamp(0.82rem, 0.79rem + 0.12vw, 0.9rem);
  --fs-micro:  0.72rem;

  /* layout — 1600px ≈ the 1190pt printed spread */
  --sheet:  1600px;
  --pad:    clamp(1.25rem, 3.2vw, 3.5rem);
  --band-v: clamp(2.25rem, 3.4vw, 3.75rem);

  /* product scale: 1 unit = 1px of the 200dpi print extraction, so every
     bottle keeps the size relationship it has on the printed page          */
  --u: 0.42px;
}

/* ------------------------------------------------------ 2 base & typography */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream-deep);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
ul  { margin: 0; padding: 0; list-style: none; }
p   { margin: 0 0 0.85em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: 1.06;
  margin: 0;
}

.sheet {
  max-width: var(--sheet);
  margin-inline: auto;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(90, 70, 50, .07);
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: .6rem 1rem;
  font-size: var(--fs-small);
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------- 3 masthead / nav / language */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: .85rem var(--pad);
  background: rgba(255, 249, 240, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__logo { flex: 0 0 auto; }
.masthead__logo img {
  width: clamp(130px, 13vw, 190px);
  height: auto;
}

.ranges { flex: 1 1 auto; min-width: 0; }

.ranges__list {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.4vw, 1.5rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.ranges__list::-webkit-scrollbar { display: none; }

.ranges__list a {
  display: block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(.68rem, .58rem + .22vw, .82rem);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ranges__list a:hover,
.ranges__list a:focus-visible { color: var(--ink); }
.ranges__list a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  padding: .5rem .8rem;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--display);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -5px; }
.nav-toggle__bars::after  { position: absolute; top: 5px; }

.lang { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.lang[hidden] { display: none; }
.lang__label {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.lang__list { display: flex; gap: .25rem; }
.lang__btn {
  background: none;
  border: 1px solid transparent;
  padding: .25rem .5rem;
  font-family: var(--display);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  cursor: pointer;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* --------------------------------------------------------------- 4 hero */
.hero {
  position: relative;
  height: min(86vh, 840px);
  min-height: 420px;
  overflow: hidden;
  background: #EDE6DC;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
}
/* the printed cover sets the wordmark on sky; on a wide crop we lift the
   same contrast back with a soft wash rather than a hard overlay          */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: linear-gradient(180deg,
              rgba(255, 251, 245, .88) 0%,
              rgba(255, 251, 245, .55) 42%,
              rgba(255, 251, 245, 0) 100%);
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  z-index: 1;
  inset: clamp(1.5rem, 5vh, 4rem) 0 auto;
  display: flex;
  justify-content: center;
  padding-inline: var(--pad);
}
.hero__mark img {
  width: min(52%, 520px);
  filter: drop-shadow(0 1px 14px rgba(255, 255, 255, .55));
}
.hero__brand {
  position: absolute;
  right: clamp(1rem, 3vw, 2.75rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  width: clamp(78px, 8vw, 120px);
  opacity: .9;
  filter: drop-shadow(0 1px 8px rgba(255, 255, 255, .5));
}

/* -------------------------------------------------------- 5 intro spread */
.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.intro__photo { margin: 0; }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }

.intro__content {
  padding: clamp(2rem, 3.4vw, 3.75rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.block + .block { border-top: 1px solid var(--rule); padding-top: clamp(1.6rem, 2.6vw, 2.5rem); }

.block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: .9rem;
}
.block__title { font-size: var(--fs-title); }
.block__badge { width: clamp(52px, 5vw, 72px); flex: 0 0 auto; }

.block p { max-width: 52ch; }

/* the “superfood + oil” recipe diagram */
.recipe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.recipe__pair { display: flex; flex-direction: column; }
.recipe__item { text-align: center; }
.recipe__item--offset { margin-left: clamp(1rem, 4vw, 3rem); }
.recipe__item img {
  margin-inline: auto;
  height: clamp(58px, 6vw, 82px);
  width: auto;
  object-fit: contain;
}
.recipe__label,
.recipe__name {
  margin: .45rem 0 0;
  font-size: var(--fs-micro);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.recipe__name { font-weight: 600; letter-spacing: .01em; text-transform: none; }
.recipe__plus {
  position: relative;
  display: block;
  height: 2.1rem;
  margin: .35rem 0;
}
.recipe__plus::before,
.recipe__plus::after {
  content: "";
  position: absolute;
  left: calc(50% + clamp(.5rem, 2vw, 1.5rem));
  top: 50%;
  background: #D9D2C8;
  transform: translate(-50%, -50%);
}
.recipe__plus::before { width: 1.35rem; height: .3rem; }
.recipe__plus::after  { width: .3rem;  height: 1.35rem; }

/* --------------------------------------------------------- 6 image strips */
.strip { margin: 0; }
.strip img {
  width: 100%;
  height: clamp(74px, 8vw, 132px);
  object-fit: cover;
}
.strip--tall img { height: clamp(170px, 19vw, 300px); }

/* ---------------------------------------------------------- 7 info bands */
.info { background: var(--blush); }
.info__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 5vw, 6rem);
  padding: clamp(2rem, 3.4vw, 3.5rem) var(--pad);
}
.info__title { font-size: var(--fs-title); margin-bottom: .8rem; }
.info--opuntia .info__title { color: var(--accent); }
.info__col p { max-width: 54ch; }
.info__kicker { margin-top: 1rem; }

.info__list { margin-top: .3rem; }
.info__list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .3rem;
  max-width: 54ch;
}
.info__list li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

/* ------------------------------------------------------ 8 treatment bands */
.family { background: var(--cream); }

/* every deep-link target clears the sticky masthead */
.family, .info, .intro, .hero { scroll-margin-top: clamp(3.5rem, 7vh, 5rem); }

.family__inner {
  position: relative;
  display: grid;
  grid-template-columns: 22.3% minmax(0, 26fr) minmax(0, 39.7fr) 12%;
  align-items: stretch;
}

/* hairline between two bands, spanning only the two middle columns —
   exactly as the printed page draws it                                     */
.family + .family .family__inner::before {
  content: "";
  position: absolute;
  left: 22.3%;
  right: 12%;
  top: 0;
  height: 1px;
  background: var(--rule);
}

.family__mood { margin: 0; }
.family__mood img { width: 100%; height: 100%; object-fit: cover; }

.family__text {
  padding: var(--band-v) clamp(1.5rem, 2.2vw, 2.5rem) var(--band-v) clamp(1.75rem, 3vw, 3.25rem);
  display: flex;
  flex-direction: column;
}

.family__title { font-size: var(--fs-band); margin-bottom: .75rem; }
.family__title-line { display: block; }

.family__lead {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin-bottom: .85rem;
  max-width: 30ch;
}

.family__body { max-width: 36ch; color: var(--ink); }

.family__products {
  padding: var(--band-v) clamp(1rem, 2vw, 2rem) var(--band-v) 0;
  display: flex;
  align-items: flex-start;
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.85rem, 1.5vw, 2rem);
}

.product {
  flex: 0 0 auto;
  width: max(calc(var(--w) * var(--u)), 7rem);
}

.product__shot {
  height: calc(var(--shot) * var(--u));
  display: flex;
  align-items: flex-end;
  margin-bottom: .8rem;
}
.product__shot img {
  width: calc(var(--w) * var(--u));
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.product__name {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.product__meta {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--muted);
}
.product__meta strong { color: var(--ink); font-weight: 600; }

/* ingredient panel ------------------------------------------------------- */
.formula {
  background: var(--panel);
  color: var(--panel-ink);
  padding: var(--band-v) .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-align: center;
}
.formula__item { max-width: 12rem; }
.formula__icon {
  height: clamp(46px, 4.4vw, 62px);
  width: auto;
  margin-inline: auto;
}
.formula__label,
.formula__name {
  margin: .4rem 0 0;
  font-size: var(--fs-micro);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.formula__name { font-weight: 600; letter-spacing: .01em; text-transform: none; }

.formula__plus {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: .5rem 0;
}
.formula__plus::before,
.formula__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--panel-plus);
  transform: translate(-50%, -50%);
}
.formula__plus::before { width: 1.4rem; height: .32rem; }
.formula__plus::after  { width: .32rem; height: 1.4rem; }

.formula--word { justify-content: flex-end; padding-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.formula__word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
  text-transform: lowercase;
  color: #FFFFFF;
}

/* per-range colours, straight off the printed panels --------------------- */
.family--colored   { --panel: #F8A3CB; --panel-ink: #2E2523; }
.family--blonde    { --panel: #8D61AF; --panel-ink: #FFFFFF; --panel-plus: rgba(255,255,255,.8); }
.family--dry       { --panel: #FBC851; --panel-ink: #33291B; }
.family--fine      { --panel: #FABA86; --panel-ink: #33261B; }
.family--frequent  { --panel: #A2C6C6; --panel-ink: #22302F; }
.family--hair-loss { --panel: #DCD3CB; --panel-ink: #332D2A; --panel-plus: #FFFFFF; }
.family--frizzy    { --panel: #EAE4D5; --panel-ink: #332D2A; --panel-plus: #FFFFFF; }
.family--brittle   { --panel: #E6DED5; --panel-ink: #332D2A; --panel-plus: #FFFFFF; }
.family--styling   { --panel: #A993AB; --panel-ink: #FFFFFF; }

/* tallest bottle in each band, in extraction pixels — keeps every caption
   on one baseline, the way the print grid does                             */
.family--colored   { --shot: 540; }
.family--blonde    { --shot: 471; }
.family--dry       { --shot: 532; }
.family--fine      { --shot: 544; }
.family--frequent  { --shot: 529; }
.family--hair-loss { --shot: 468; }
.family--frizzy    { --shot: 485; }
.family--brittle   { --shot: 496; }
.family--styling   { --shot: 533; }

/* ------------------------------------------------------------ 9 colophon */
.colophon {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad);
  text-align: center;
}
.colophon__logo { width: clamp(110px, 11vw, 155px); margin: 0 auto 1.5rem; }
.colophon__line { font-size: var(--fs-small); color: var(--ink-soft); }
.colophon__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: var(--fs-small);
  margin-bottom: 1.25rem;
}
.colophon__links a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.colophon__links a:hover { border-bottom-color: var(--ink); }
.colophon__fine {
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.colophon__top {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.colophon__top:hover { color: var(--ink); }

/* --------------------------------------------------------- 10 responsive */

/* below the printed spread width the type stays put, the bottles shrink */
@media (max-width: 1400px) { :root { --u: 0.36px; } }

/* tablet: photo keeps the left edge, copy and products stack beside it,
   the ingredient panel becomes a footer strip for the band              */
@media (max-width: 1100px) {
  :root { --u: 0.34px; }

  .family__inner {
    grid-template-columns: 32% minmax(0, 1fr);
    grid-template-areas:
      "mood text"
      "mood products"
      "formula formula";
  }
  .family__mood     { grid-area: mood; }
  .family__text     { grid-area: text; padding-bottom: 0; }
  .family__products { grid-area: products; padding-top: 1.75rem; }
  .formula          { grid-area: formula; }

  .family + .family .family__inner::before { left: 32%; right: 0; }

  .family__body,
  .family__lead { max-width: 48ch; }

  .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.9rem, 1fr));
    gap: 1.5rem 1rem;
  }
  .product { width: auto; }

  .formula {
    flex-direction: row;
    gap: clamp(1rem, 4vw, 3rem);
    padding: 1.5rem var(--pad);
  }
  .formula__plus { margin: 0; }
  .formula--word { justify-content: center; padding-block: 1.25rem; }
  .formula__word { writing-mode: horizontal-tb; transform: none; font-size: 2rem; }

  .intro__inner { grid-template-columns: 38% 1fr; }
  .hero { height: min(72vh, 680px); }
}

@media (max-width: 780px) {
  :root { --u: 0.34px; --band-v: 2rem; }

  .nav-toggle { display: inline-flex; }

  .ranges {
    order: 3;
    flex-basis: 100%;
    display: none;
    padding-top: .85rem;
    margin-top: .5rem;
    border-top: 1px solid var(--rule);
  }
  .ranges.is-open { display: block; }
  .ranges__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }
  .ranges__list a {
    padding: .6rem .1rem;
    border-bottom: 1px solid var(--rule);
    font-size: .82rem;
  }
  .ranges__list li:last-child a { border-bottom: 0; }
  .masthead { flex-wrap: wrap; row-gap: 0; }
  .lang { order: 2; margin-left: auto; }

  .hero { height: min(78vh, 620px); }
  .hero__mark img { width: min(74%, 380px); }

  .intro__inner { grid-template-columns: 1fr; }
  .intro__photo img { height: clamp(240px, 60vw, 420px); }

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

  .family__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mood"
      "text"
      "products"
      "formula";
  }
  .family__mood img { height: clamp(200px, 52vw, 340px); }
  .family__text {
    padding: var(--band-v) var(--pad) 0;
  }
  .family__products { padding: 1.5rem var(--pad) var(--band-v); }
  .family + .family .family__inner::before { left: 0; right: 0; }

  .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
  .product { width: auto; }
  .product__shot { height: calc(var(--shot) * var(--u)); }

  .recipe { grid-template-columns: 1fr; gap: 1.5rem; }
  .recipe__item--offset { margin-left: 0; }
  .recipe__plus::before,
  .recipe__plus::after { left: 50%; }

  .block__badge { width: 54px; }
}

@media (max-width: 430px) {
  :root { --u: 0.30px; }
  .products { gap: 1.25rem .75rem; }
  .formula { flex-direction: column; }
}

/* ------------------------------------------------ 11 motion, focus, print */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  :root { --u: 0.30px; }
  body { background: #fff; }
  .masthead, .skip-link, .colophon__top, .nav-toggle { display: none !important; }
  .sheet { box-shadow: none; max-width: none; }
  .family { break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
