/* ==========================================================================
   THE BEAUTY CARTEL: core
   World: the light table. Lightproof black, deliberate light steps, paper
   white. Champagne (#EBD7BD, the shop's own colour) is the one accent and the
   only primary action colour. Safelight red marks loss and live state. No
   mid-gray filler.
   ========================================================================== */

:root {
  /* --- ground ------------------------------------------------------------ */
  --pitch:        #000000;  /* true black, used under imagery only */
  --void:         #050505;  /* the dark room, page ground */
  --table:        #0A0A0B;  /* the table surface */
  --glass:        #101013;  /* backlit glass at rest */
  --glass-lit:    #26262E;  /* backlit glass under the loupe */
  --glass-deep:   #0C0C0E;  /* recessed wells, inputs */

  /* --- light steps (four, deliberate) ------------------------------------ */
  --ink-1: #F4F1EA;  /* paper white: primary text            19.4:1 on void */
  --ink-2: #C4C0B8;  /* secondary text                        12.1:1 on void */
  --ink-3: #8C8880;  /* meta, captions                         5.8:1 on void */
  --ink-4: #7E7A72;  /* meta, counters, axes, disabled          4.8:1 on void */

  /* --- accents ------------------------------------------------------------ */
  --accent:       #EBD7BD;  /* champagne, the shop's colour   13.8:1 on void */
  --accent-lit:   #F7EEE2;
  --accent-wash:  rgba(235, 215, 189, 0.09);
  --accent-glow:  rgba(235, 215, 189, 0.07);
  /* filled surfaces: buttons, chips, the picked slot. On the dark ground the
     fill and the text accent are the same champagne. */
  --accent-fill:     #EBD7BD;
  --accent-fill-lit: #F7EEE2;
  --accent-edge:     #EBD7BD;
  --safelight:     #A3291C;  /* fills, rejection marks */
  --safelight-lit: #E0412C;  /* text on dark          4.8:1 on void */
  --safelight-wash: rgba(163, 41, 28, 0.14);

  /* --- lines --------------------------------------------------------------- */
  --line-1: rgba(244, 241, 234, 0.08);
  --line-2: rgba(244, 241, 234, 0.15);
  --line-3: rgba(244, 241, 234, 0.28);
  --line-accent: rgba(235, 215, 189, 0.34);

  /* --- type ---------------------------------------------------------------- */
  --font-display: "Anton", sans-serif;
  --font-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;

  --t-hero: clamp(2.7rem, 8.6vw, 5.5rem);
  --t-xl:   clamp(2rem, 5.2vw, 3.4rem);
  --t-lg:   clamp(1.5rem, 3.4vw, 2.2rem);
  --t-md:   clamp(1.15rem, 2vw, 1.375rem);
  --t-base: 1rem;
  --t-sm:   0.875rem;
  --t-xs:   0.75rem;
  --t-2xs:  0.6875rem;

  --track-display: -0.025em;
  --track-wide: 0.16em;

  /* --- space (4px base) ---------------------------------------------------- */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px;  --s7: 48px;  --s8: 64px;  --s9: 96px;

  --gutter: clamp(20px, 5vw, 68px);
  --maxw: 1480px;
  --measure: 68ch;

  /* --- form ---------------------------------------------------------------- */
  --r: 0px;        /* the sheet is cut square */
  --r-sm: 2px;
  --header-h: 76px;
  --mobilebar-h: 58px;

  /* --- depth (offset + blur, never a halo) --------------------------------- */
  --shadow-2: 0 12px 34px -8px rgba(0, 0, 0, 0.82), 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 18px 38px -12px rgba(0, 0, 0, 0.9), 0 3px 10px rgba(0, 0, 0, 0.6);
  --shadow-lit: 0 10px 24px -8px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.55);

  /* --- motion -------------------------------------------------------------- */
  --ease: cubic-bezier(0.16, 0.84, 0.26, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 150ms;
  --dur-2: 280ms;
  --dur-3: 520ms;
  --dur-4: 900ms;

  /* --- layers -------------------------------------------------------------- */
  /* above the page and the header, below the chrome: a toast or a drawer is
     glass, not print, and should not be tinted by the emulsion. */
  --z-grain: 680;
  --z-header: 600;
  --z-mobilebar: 620;
  --z-drawer: 700;
  --z-overlay: 690;
  --z-toast: 800;

  --etch-fill:   rgba(244, 241, 234, 0.30);
  --etch-stroke: rgba(244, 241, 234, 0.62);

  /* What reads on a champagne fill. The fill is champagne in every palette,
     so its label is always near-black: 13.2:1. */
  --on-accent: #0D0D0F;

  color-scheme: dark;
}

/* ==========================================================================
   light mode

   The shop is a dark room by default and that does not change. This is the
   same world with the lights up, built on one idea the client gave: the
   product tile is already pure white, because the catalogue is packshots on
   white. Make the page the same white and the tile edge disappears, so a
   lipstick sits on the page rather than inside a box. The 1px rules still
   draw the contact sheet around it.

   The photographic blocks stay dark. The hero's type sits behind the model
   through `mix-blend-mode: lighten`, which only resolves on black; the
   wordmark is white; the category tiles and the service banners are white
   type over dark scrims. Rather than rewrite those, the dark palette is
   re-declared on them further down, so each one keeps the whole dark system
   inside its own box, contrast and hairlines included.
   ========================================================================== */

:root[data-theme="light"] {
  --pitch:        #FFFFFF;
  --void:         #FFFFFF;  /* the page, and the product tile, are one white */
  --table:        #FAFAF9;
  --glass:        #FFFFFF;
  --glass-lit:    #F5F4F1;  /* the loupe lifts by shading, not by glowing */
  --glass-deep:   #F3F2EF;

  /* four steps again, measured against white rather than void */
  --ink-1: #0D0D0F;  /* primary text     19.5:1 on white */
  --ink-2: #3B3B3E;  /* secondary        11.5:1 */
  --ink-3: #66666B;  /* meta, captions    5.6:1 */
  --ink-4: #6F6F74;  /* counters, axes    4.8:1 */

  /* Champagne is 1.4:1 on white, so it cannot carry text here. Accent TEXT
     drops to the same hue taken deep, 6.9:1 on white. Fills stay champagne
     with a near-black label, and take a hairline edge so a champagne button
     still has a shape on a white page. Hover goes deeper, because on a light
     ground that is what "more" looks like. */
  --accent:       #715533;
  --accent-lit:   #574026;
  --accent-wash:  rgba(235, 215, 189, 0.32);
  --accent-glow:  rgba(235, 215, 189, 0.42);
  --accent-fill:     #EBD7BD;
  --accent-fill-lit: #E2C9A6;
  --accent-edge:     #A88B66;  /* 3.2:1 on white: a visible edge */
  --safelight:     #A3291C;
  --safelight-lit: #8E1F14;  /* 8.9:1 on white */
  --safelight-wash: rgba(163, 41, 28, 0.09);

  --line-1: rgba(13, 13, 15, 0.10);
  --line-2: rgba(13, 13, 15, 0.18);
  --line-3: rgba(13, 13, 15, 0.30);
  --line-accent: rgba(113, 85, 51, 0.38);

  /* a shadow on white is a whisper; the dark values would read as soot */
  --shadow-2: 0 10px 30px -10px rgba(13, 13, 15, 0.18), 0 2px 6px rgba(13, 13, 15, 0.07);
  --shadow-3: 0 18px 44px -14px rgba(13, 13, 15, 0.22), 0 3px 10px rgba(13, 13, 15, 0.09);
  --shadow-lit: 0 8px 20px -8px rgba(13, 13, 15, 0.16), 0 1px 3px rgba(13, 13, 15, 0.08);

  /* a hairline stroke carries less on white than it does on black, so the
     etched register is given back the presence it has in the dark */
  --etch-fill:   rgba(13, 13, 15, 0.28);
  --etch-stroke: rgba(13, 13, 15, 0.58);

  --on-accent: #0D0D0F;

  color-scheme: light;
}

/* The islands that stay dark. Each re-declares the dark palette, so every
   rule inside keeps working untouched. */
:root[data-theme="light"] .hero,
:root[data-theme="light"] .header__inner,
:root[data-theme="light"] .mobilebar,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .signup,
:root[data-theme="light"] .cat,
:root[data-theme="light"] .svc-banner,
:root[data-theme="light"] .drawer,
:root[data-theme="light"] .searchpane,
:root[data-theme="light"] .ptn-hero {
  --pitch:        #000000;
  --void:         #050505;
  --table:        #0A0A0B;
  --glass:        #101013;
  --glass-lit:    #26262E;
  --glass-deep:   #0C0C0E;

  --ink-1: #F4F1EA;
  --ink-2: #C4C0B8;
  --ink-3: #8C8880;
  --ink-4: #7E7A72;

  --accent:       #EBD7BD;
  --accent-lit:   #F7EEE2;
  --accent-wash:  rgba(235, 215, 189, 0.09);
  --accent-glow:  rgba(235, 215, 189, 0.07);
  --accent-fill:     #EBD7BD;
  --accent-fill-lit: #F7EEE2;
  --accent-edge:     #EBD7BD;
  --safelight:     #A3291C;
  --safelight-lit: #E0412C;

  --line-1: rgba(244, 241, 234, 0.08);
  --line-2: rgba(244, 241, 234, 0.15);
  --line-3: rgba(244, 241, 234, 0.28);
  --line-accent: rgba(235, 215, 189, 0.34);

  --shadow-2: 0 12px 34px -8px rgba(0, 0, 0, 0.82), 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 18px 38px -12px rgba(0, 0, 0, 0.9), 0 3px 10px rgba(0, 0, 0, 0.6);
  --shadow-lit: 0 10px 24px -8px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.55);

  --etch-fill:   rgba(244, 241, 234, 0.30);
  --etch-stroke: rgba(244, 241, 234, 0.62);

  --on-accent: #0D0D0F;

  color-scheme: dark;
}

/* a dark island needs its own ground, since the page no longer supplies one */
:root[data-theme="light"] .hero,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .signup,
:root[data-theme="light"] .ptn-hero { background-color: var(--void); }


/* ==========================================================================
   reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  background: var(--void);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

img { height: auto; }

/* <picture> must not become a layout box: an auto-height wrapper silently
   turns height:100% + object-fit on the inner <img> into no-ops. */
picture { display: contents; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-1);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
}

p { text-wrap: pretty; }

hr { border: 0; border-top: 1px solid var(--line-1); }

/* ==========================================================================
   browser surfaces: the parts we did not draw still carry the design
   ========================================================================== */

::selection {
  background: var(--accent-fill);
  color: var(--on-accent);
}

:root { accent-color: var(--accent); caret-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent-lit);
  outline-offset: 3px;
  border-radius: 1px;
}

/* the grain layer must never eat a focus ring or a pointer */
* { scrollbar-width: thin; scrollbar-color: var(--ink-4) var(--void); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: #2A2823;
  border: 3px solid var(--void);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
::-webkit-scrollbar-corner { background: var(--void); }

::placeholder { color: var(--ink-3); opacity: 1; }

:where(input, textarea)::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(345deg);
  cursor: pointer;
}

a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

/* every figure in this build is a measurement */
.num, .mono, td.num, input[type="number"] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   film grain: the emulsion the whole site is printed on
   ========================================================================== */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  /* An overlay blend is neutral at 50% grey, so the noise field is opaque mid-grey:
     a transparent-black field (the obvious way to write this) blends as multiply
     and crushes every photograph underneath it to black. */
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ==========================================================================
   layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 1040px; }
.wrap--text { max-width: 760px; }

.section { padding-block: clamp(56px, 9vw, 120px); }
.section--first { padding-top: clamp(26px, 3vw, 40px); }
.section--first .section-head { margin-bottom: var(--s5); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

main { position: relative; }

/* more space above a heading than below it */
.section > * + h2,
.section > * + .section-head { margin-top: var(--s9); }
.section-head { margin-bottom: var(--s6); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line-1);
}

.section-head h2 { font-size: var(--t-xl); }
.section-head p {
  color: var(--ink-3);
  font-size: var(--t-sm);
  max-width: 46ch;
}

/* ==========================================================================
   crop marks: the logo's own bracket frame, reused as a component
   ========================================================================== */

.bracket { position: relative; }

.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: var(--bracket-size, 20px);
  height: var(--bracket-size, 20px);
  border: 1px solid var(--bracket-color, var(--line-3));
  pointer-events: none;
  transition: border-color var(--dur-2) var(--ease);
}

.bracket::before {
  top: var(--bracket-inset, 0px);
  left: var(--bracket-inset, 0px);
  border-right: 0;
  border-bottom: 0;
}

.bracket::after {
  bottom: var(--bracket-inset, 0px);
  right: var(--bracket-inset, 0px);
  border-left: 0;
  border-top: 0;
}

/* ==========================================================================
   sprocket rail: 35mm perforation, used as a divider
   ========================================================================== */

.sprocket {
  height: 15px;
  width: 100%;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 34px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='15'%3E%3Crect x='7' y='3' width='20' height='9' rx='2.5' fill='none' stroke='rgba(244,241,234,0.17)' stroke-width='1'/%3E%3C/svg%3E");
}

.sprocket--accent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='15'%3E%3Crect x='7' y='3' width='20' height='9' rx='2.5' fill='none' stroke='rgba(201,138,75,0.4)' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==========================================================================
   small text systems
   ========================================================================== */

.label {
  font-family: var(--font-sans);
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* film edge printing: runs up the rail of a section, never above a heading */
.edgeprint {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  writing-mode: vertical-rl;
  white-space: nowrap;
  user-select: none;
}

/* --------------------------------------------------------------------------
   the etched register: hairline outlined caps, widely tracked
   Printed type is solid; etched type is a line scored into the surface. This
   is the quiet counterweight to Anton: it is never used for the thing you
   must read, only for the word that sets the mood, and it wants imagery or a
   lit ground behind it so the stroke has something to cut into.
   -------------------------------------------------------------------------- */

.etch {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* the stroke sits on the glyph's centre line, so tracking has to open up or
     the outlines collide */
  color: var(--etch-fill);
}

@supports (-webkit-text-stroke: 1px red) {
  .etch {
    color: transparent;
    -webkit-text-stroke: 1px var(--etch-stroke);
  }
}

/* the warm register: champagne in the dark, the deep champagne on white,
   and champagne again wherever it is laid over a photograph */
.etch--warm { --warm-fill: rgba(235, 215, 189, 0.30); --warm-stroke: rgba(235, 215, 189, 0.74); color: var(--warm-fill); }
:root[data-theme="light"] .etch--warm { --warm-fill: rgba(113, 85, 51, 0.26); --warm-stroke: rgba(113, 85, 51, 0.6); }
:root[data-theme="light"] .split__media .etch--warm { --warm-fill: rgba(235, 215, 189, 0.30); --warm-stroke: rgba(235, 215, 189, 0.74); }

@supports (-webkit-text-stroke: 1px red) {
  .etch--warm {
    color: transparent;
    -webkit-text-stroke: 1px var(--warm-stroke);
  }
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-lit); }

.muted { color: var(--ink-3); }
.tiny { font-size: var(--t-xs); line-height: 1.5; }

/* ==========================================================================
   the one authored moment: the print developing
   ========================================================================== */

.js .develop {
  opacity: 0;
  filter: blur(14px) contrast(0.6);
  transform: scale(1.012);
}

.develop.is-up {
  opacity: 1;
  filter: blur(0) contrast(1);
  transform: none;
  transition:
    opacity var(--dur-4) var(--ease-expo),
    filter var(--dur-4) var(--ease-expo),
    transform var(--dur-4) var(--ease-expo);
  transition-delay: var(--develop-delay, 0ms);
}

/* everything else is simply present; frames only light in sequence */
.js .lightup { opacity: 0; }
.lightup.is-up {
  opacity: 1;
  transition: opacity var(--dur-3) var(--ease) var(--develop-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .develop, .lightup {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   utility
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease);
}

.skip:focus-visible { transform: none; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 26px; height: 26px; stroke-width: 1.35; }

.stack { display: grid; gap: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); }
.row--between { justify-content: space-between; }
.spacer { flex: 1 1 auto; }

[hidden] { display: none !important; }

noscript .noscript-note {
  display: block;
  padding: 18px var(--gutter);
  background: var(--safelight);
  color: #fff;
  font-size: var(--t-sm);
  text-align: center;
}
