/* The Eleventh — site styles
   Designed on a 390px-wide phone. Every size is written in "design pixels"
   multiplied by --u, so the layout keeps the Figma proportions on any phone
   (and is capped at a 480px-wide column on larger screens). */

@font-face { font-family: "Right Didone"; src: url("../fonts/right-didone-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Right Didone"; src: url("../fonts/right-didone-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Right Didone"; src: url("../fonts/right-didone-light-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --plum: #503643;
  --blue: #ACC7DA;
  --silver: #BDC2C8;
  --cream: #F3EFE9;
  --hair: rgba(189, 194, 200, 0.35);
  --w: min(100vw, 480px);
  --u: calc(var(--w) / 390);
  --serif: "Right Didone", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Avenir Next", Avenir, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The page is one phone-width column, centred on larger screens */
.page { width: var(--w); margin: 0 auto; position: relative; }

/* ---------- Shared type ---------- */
.caps {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  font-size: calc(9.5 * var(--u)); letter-spacing: 0.3em;
}
.roman { font-family: var(--serif); font-weight: 500; font-size: calc(13 * var(--u)); letter-spacing: 0.08em; color: var(--blue); text-align: center; margin: 0; }
.italic { font-family: var(--serif); font-weight: 300; font-style: italic; }

/* ---------- Top bar & menu ---------- */
.topbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14 * var(--u)) calc(22 * var(--u));
}
.topbar__mark { font-family: var(--serif); font-weight: 500; font-size: calc(18 * var(--u)); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar__menu { background: none; border: 0; min-height: 44px; padding: 0; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--plum);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(26 * var(--u));
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu a { font-family: var(--serif); font-weight: 300; font-size: calc(30 * var(--u)); text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(2) { transition-delay: .08s; }
.menu.is-open a:nth-child(3) { transition-delay: .16s; }
.menu.is-open a:nth-child(4) { transition-delay: .24s; }
.menu.is-open a:nth-child(5) { transition-delay: .32s; }
.menu__close { position: absolute; top: calc(14 * var(--u)); right: calc(22 * var(--u)); background: none; border: 0; min-height: 44px; cursor: pointer; }
.menu__city { position: absolute; bottom: calc(40 * var(--u)); color: var(--blue); font-size: calc(8.5 * var(--u)); }

/* ---------- Hero ---------- */
.hero { position: relative; height: max(calc(640 * var(--u)), 100svh); max-height: calc(900 * var(--u)); overflow: hidden; background: #1c1216; }
.hero__img { position: absolute; inset: -4% 0; background: url("../img/hero.jpg") center 30% / cover no-repeat; will-change: transform; }
.hero__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.hero__title { position: absolute; left: 0; right: 0; top: 43%; text-align: center; }
.hero__title h1 {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: calc(64 * var(--u));
  letter-spacing: -0.02em; line-height: 1; color: var(--cream);
}
.hero__title h1 .ch { display: inline-block; }
.hero__sub { margin: calc(-6 * var(--u)) 0 0; color: var(--cream); font-size: calc(10 * var(--u)); letter-spacing: 0.47em; padding-left: 0.47em; }
.hero__city { position: absolute; left: 0; right: 0; bottom: calc(36 * var(--u)); margin: 0; text-align: center; color: var(--blue); font-size: calc(8.5 * var(--u)); letter-spacing: 0.3em; }

/* ---------- I · The salon ---------- */
.intro { text-align: center; padding-bottom: calc(80 * var(--u)); }
.intro__sketch { height: calc(360 * var(--u)); width: 100%; object-fit: cover; object-position: center 62%; }
.intro .roman { margin-top: calc(34 * var(--u)); }
.intro__body { margin: calc(22 * var(--u)) auto 0; width: calc(285 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.6; }
.intro__line { margin: calc(30 * var(--u)) auto 0; color: var(--blue); font-size: calc(14.5 * var(--u)); line-height: 1.4; }

.rule { height: 1px; background: var(--hair); margin: 0 calc(22 * var(--u)); }

/* ---------- Salons ---------- */
.salons { padding: calc(64 * var(--u)) 0 calc(40 * var(--u)); }
.salons__head { text-align: center; padding: 0 calc(28 * var(--u)); }
.salons__head h2.caps { font-size: calc(11 * var(--u)); }
.salons__sub { margin: calc(12 * var(--u)) 0 0; color: var(--silver); font-size: calc(14 * var(--u)); }
.carousel {
  display: flex; gap: calc(14 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: calc(32 * var(--u)) calc(28 * var(--u)) calc(6 * var(--u));
  scroll-padding-left: calc(28 * var(--u));
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.salon { flex: 0 0 calc(272 * var(--u)); scroll-snap-align: start; display: flex; flex-direction: column; }
.salon__img { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #3b2731; }
.salon__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.salon.is-in .salon__img img { transform: scale(1); }
.salon__meta { display: flex; justify-content: space-between; margin-top: calc(16 * var(--u)); font-size: calc(9 * var(--u)); }
.salon__meta span:last-child { letter-spacing: 0.2em; }
.salon__title { margin: calc(10 * var(--u)) 0 0; font-family: var(--serif); font-weight: 500; font-size: calc(19 * var(--u)); line-height: 1.15; }
.salon__line { margin: calc(5 * var(--u)) 0 0; color: var(--silver); font-size: calc(12.6 * var(--u)); line-height: 1.35; min-height: 1.35em; }
.salon__btn {
  margin-top: calc(16 * var(--u)); min-height: 44px; height: calc(46 * var(--u));
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  border: 1px solid rgba(189, 194, 200, 0.5); color: var(--silver);
}
.salon__btn--open { background: var(--cream); border-color: var(--cream); color: var(--plum); transition: background .4s var(--ease); }
.salon__btn--open:hover { background: var(--blue); border-color: var(--blue); }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: calc(26 * var(--u)); }
.dots span { width: 18px; height: 1px; background: rgba(189, 194, 200, 0.45); transition: background .4s; }
.dots span.is-active { background: var(--cream); }

.past { padding: calc(56 * var(--u)) 0 0; }
.past[hidden] { display: none; }
.past .carousel { padding-top: calc(24 * var(--u)); }
.salon--past .salon__img img { filter: grayscale(.35) brightness(.85); }
.salon__overheard { margin: calc(12 * var(--u)) 0 0; font-size: calc(13 * var(--u)); color: var(--blue); }

/* ---------- Invitation band ---------- */
.invite {
  text-align: center; color: var(--plum);
  padding: calc(190 * var(--u)) calc(28 * var(--u));
  background: linear-gradient(180deg,
    var(--plum) 0%,
    color-mix(in oklab, var(--plum) 70%, var(--blue)) 12%,
    color-mix(in oklab, var(--plum) 30%, var(--blue)) 24%,
    var(--blue) 36%, var(--blue) 64%,
    color-mix(in oklab, var(--plum) 30%, var(--blue)) 76%,
    color-mix(in oklab, var(--plum) 70%, var(--blue)) 88%,
    var(--plum) 100%);
}
.invite__line { margin: 0 auto; width: calc(240 * var(--u)); font-size: calc(19 * var(--u)); line-height: 1.4; }
.invite__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: calc(26 * var(--u)); text-decoration: none; position: relative; }
.invite__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--plum); transform: scaleX(0); transform-origin: left; transition: transform 1.2s .3s var(--ease); }
.invite__link.is-in::after { transform: scaleX(1); }

/* ---------- Questions (playing cards) ---------- */
.cards { padding: calc(30 * var(--u)) 0 calc(70 * var(--u)); }
.cards__row {
  display: flex; gap: calc(12 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: calc(10 * var(--u)) calc(28 * var(--u)) calc(16 * var(--u)); scroll-padding-left: calc(28 * var(--u)); scrollbar-width: none;
}
.cards__row::-webkit-scrollbar { display: none; }
.qa { flex: 0 0 calc(176 * var(--u)); height: calc(246 * var(--u)); scroll-snap-align: start; perspective: 900px; background: none; border: 0; padding: 0; cursor: pointer; }
.qa__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.qa.is-flipped .qa__inner { transform: rotateY(180deg); }
.qa__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 calc(24 * var(--u)); color: var(--plum); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.qa__face::before { content: ""; position: absolute; inset: calc(18 * var(--u)) calc(13 * var(--u)); border: 1px solid rgba(80, 54, 67, 0.3); pointer-events: none; }
.qa__front { background: var(--cream); font-family: var(--serif); font-weight: 300; font-style: italic; font-size: calc(17 * var(--u)); line-height: 1.3; }
.qa__back { background: var(--blue); transform: rotateY(180deg); font-family: var(--serif); font-weight: 300; font-size: calc(13 * var(--u)); line-height: 1.45; }
.qa__back a { text-underline-offset: 3px; }
.qa__pip { position: absolute; font-family: var(--serif); font-weight: 500; font-size: calc(10 * var(--u)); font-style: normal; }
.qa__pip--tl { top: calc(4 * var(--u)); left: calc(8 * var(--u)); }
.qa__pip--br { bottom: calc(4 * var(--u)); right: calc(8 * var(--u)); }
.cards__hint { margin: calc(20 * var(--u)) 0 0; text-align: center; color: var(--silver); font-size: calc(8.5 * var(--u)); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); margin: 0 calc(22 * var(--u)); padding: calc(52 * var(--u)) 0 calc(44 * var(--u)); text-align: center; }
.footer__mark { font-family: var(--serif); font-weight: 500; font-size: calc(22 * var(--u)); text-decoration: none; }
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 calc(20 * var(--u)); margin-top: calc(14 * var(--u)); }
.footer nav a { text-decoration: none; padding: 14px 0; font-size: calc(9 * var(--u)); }
.footer__contact { margin: calc(10 * var(--u)) 0 0; font-size: calc(11.5 * var(--u)); }
.footer__contact a { text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.footer__legal { margin: calc(14 * var(--u)) 0 0; color: var(--silver); font-size: calc(10 * var(--u)); }
.footer__city { margin: calc(8 * var(--u)) 0 0; color: var(--blue); font-size: calc(8.5 * var(--u)); }
.topbar__label { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font-size: calc(9 * var(--u)); color: var(--blue); }

/* ---------- The Code ---------- */
.code { padding: calc(138 * var(--u)) calc(30 * var(--u)) calc(60 * var(--u)); }
.code__label { text-align: center; color: var(--blue); font-size: calc(9 * var(--u)); margin: 0; }
.code__title { margin: 0; text-align: center; font-family: var(--serif); font-weight: 300; font-size: calc(32 * var(--u)); line-height: calc(36.8 * var(--u)); letter-spacing: -0.02em; }
.code__title .italic { display: block; font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); letter-spacing: 0; }
.code__list { list-style: none; margin: calc(40 * var(--u)) 0 0; padding: 0; display: flex; flex-direction: column; }
.code__item { display: grid; grid-template-columns: calc(46 * var(--u)) minmax(0, 1fr); padding: calc(22.5 * var(--u)) 0 calc(24 * var(--u)); border-top: 1px solid rgba(189, 194, 200, .35); }
.code__num { font-family: var(--serif); font-weight: 500; font-size: calc(13 * var(--u)); color: var(--blue); padding-top: calc(3 * var(--u)); }
.code__item h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: calc(17 * var(--u)); line-height: calc(22.1 * var(--u)); }
.code__item p { margin: calc(9 * var(--u)) 0 0; font-size: calc(12.5 * var(--u)); line-height: calc(20.6 * var(--u)); color: rgba(243, 239, 233, 0.88); }
.code__item--lead p { margin-top: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: calc(15 * var(--u)); line-height: 1.5; color: var(--cream); }
.practical { margin-top: calc(64 * var(--u)); }
.practical h2 { text-align: center; font-size: calc(9.5 * var(--u)); color: var(--silver); margin: 0 0 calc(20 * var(--u)); }
.practical dl { margin: 0; }
.practical div { display: grid; grid-template-columns: calc(110 * var(--u)) minmax(0, 1fr); padding: calc(12.5 * var(--u)) 0; font-size: calc(12.5 * var(--u)); line-height: calc(19.4 * var(--u)); border-top: 1px solid rgba(189, 194, 200, .35); }
.practical dt { color: var(--silver); text-transform: uppercase; letter-spacing: 0.2em; font-size: calc(9 * var(--u)); line-height: calc(13.9 * var(--u)); font-weight: 400; padding-top: calc(2.5 * var(--u)); }
.practical dd { margin: 0; }
.code__cta { display: flex; align-items: center; justify-content: center; min-height: 48px; height: calc(52 * var(--u)); margin-top: calc(56 * var(--u)); background: var(--cream); color: var(--plum); text-decoration: none; }

/* ---------- Apply ----------
   Every screen is the 390 x 844 Figma frame. Elements sit at their Figma
   y-positions (--t, in design px) so the proportions match exactly. */
.apply { position: relative; min-height: calc(844 * var(--u) * var(--k, 1)); }
.apply__bar { opacity: 0; position: absolute; left: calc(22 * var(--u)); right: calc(22 * var(--u)); top: calc(78 * var(--u) * var(--k, 1)); height: 1px; background: rgba(189, 194, 200, .45); z-index: 5; transition: opacity .6s; }
.apply__bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .8s var(--ease); }
.step {
  position: absolute; inset: 0; min-height: calc(844 * var(--u) * var(--k, 1));
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s;
}
.step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s .12s var(--ease), transform .8s .12s var(--ease); }
.step.is-leaving-back { transform: translateX(-24px); }
.at { position: absolute; top: calc(var(--t) * var(--u) * var(--k, 1)); left: calc(22 * var(--u)); right: calc(22 * var(--u)); margin: 0; }
.at--c { left: calc(35 * var(--u)); right: calc(35 * var(--u)); text-align: center; }

.step__title { font-family: var(--serif); font-weight: 300; font-size: calc(26 * var(--u)); line-height: 1.15; }
.step__title--tight { line-height: .85; }
.step__num { font-family: var(--serif); font-weight: 500; font-size: calc(13 * var(--u)); color: var(--blue); text-align: center; letter-spacing: .08em; }
.step__q { font-family: var(--serif); font-weight: 300; font-size: calc(27 * var(--u)); line-height: .85; text-wrap: balance; }
.step__hint { color: var(--blue); font-size: calc(15 * var(--u)); }

.lbl { display: block; color: var(--silver); font-family: var(--sans); font-weight: 400; text-transform: uppercase; font-size: calc(9 * var(--u)); letter-spacing: .26em; line-height: calc(13 * var(--u)); }
.line-input {
  display: block; width: 100%; margin-top: calc(9 * var(--u)); height: calc(30 * var(--u)); padding: 0 0 calc(4 * var(--u));
  background: transparent; color: var(--cream); border: 0; border-bottom: 1px solid rgba(189, 194, 200, .45); border-radius: 0;
  font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 16px; outline: none; transition: border-color .4s;
}
.box-input {
  display: block; width: 100%; margin-top: calc(13 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u));
  background: transparent; color: var(--cream); border: 1px solid rgba(189, 194, 200, .45); border-radius: 0; resize: none; outline: none;
  font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.55; transition: border-color .4s;
}
.answer { height: calc(280 * var(--u) * var(--k, 1)); margin-top: 0; }
.line-input:focus, .box-input:focus, .select select:focus { border-color: var(--blue); }
.line-input::placeholder { color: rgba(243, 239, 233, .45); }
.box-input::placeholder { color: rgba(243, 239, 233, .45); font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 15px; }
.answer::placeholder { font-family: var(--sans); font-weight: 300; font-style: normal; font-size: 14px; }
.count { text-align: right; color: var(--silver); font-size: calc(10 * var(--u)); }
.count.is-over { color: #E8A5A5; }
.select { position: relative; display: block; margin-top: calc(11 * var(--u)); }
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: calc(52 * var(--u)); padding: 0 calc(44 * var(--u)) 0 calc(16 * var(--u));
  background: transparent; color: var(--cream); border: 1px solid rgba(189, 194, 200, .45); border-radius: 0; outline: none;
  font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 16px;
}
.select select option { color: #222; font-style: normal; }
.select::after { content: ""; position: absolute; right: calc(20 * var(--u)); top: 50%; width: 8px; height: 8px; border-right: 1px solid var(--cream); border-bottom: 1px solid var(--cream); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.error { color: #E8A5A5; font-size: calc(11 * var(--u)); min-height: 1.2em; }

/* Full-width button at y 700, Back below it, as in Figma */
.btn {
  position: absolute; left: 0; right: 0; top: calc(700 * var(--u) * var(--k, 1)); width: 100%; height: calc(52 * var(--u)); min-height: 44px;
  border: 0; background: var(--cream); color: var(--plum); cursor: pointer; transition: background .4s var(--ease);
}
.btn:hover { background: var(--blue); }
.btn[disabled] { opacity: .6; cursor: wait; }
.back { position: absolute; left: 0; right: 0; top: calc(700 * var(--u) * var(--k, 1) + 64 * var(--u)); height: 44px; background: none; border: 0; color: var(--silver); cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; }

.seal { position: absolute; left: 50%; top: calc(var(--t) * var(--u) * var(--k, 1)); width: 1.375em; height: 1.375em; margin-left: -.6875em; border-radius: 50%; border: 1px solid var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 500; font-size: calc(64 * var(--u)); line-height: 1; letter-spacing: -0.02em; padding-top: .1em; }
.seal::before { content: ""; position: absolute; inset: calc(6 * var(--u)); border-radius: 50%; border: 0.75px solid rgba(172, 199, 218, .6); }
.seal--filled { background: var(--blue); color: var(--plum); border-color: var(--blue); }
.seal--filled::before { border-color: rgba(80, 54, 67, .5); }
.step.is-active .seal--filled { animation: stamp 1s .35s var(--ease) both; }
/* Opening + received: seal, headline and text centred as one group
   between the XI bar (y 68) and the button (y 700), scaled with the screen */
.group { position: absolute; left: calc(35 * var(--u)); right: calc(35 * var(--u)); top: calc(78 * var(--u) * var(--k, 1)); height: calc(622 * var(--u) * var(--k, 1)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.group .seal { position: relative; left: auto; top: auto; margin: 0; flex: none; font-size: calc(64 * var(--u) * var(--k, 1)); width: 1.375em; height: 1.375em; min-width: 1.375em; padding: .05em .02em 0 0; overflow: hidden; }
.group--opening .opening__line { margin-top: calc(40 * var(--u) * var(--k, 1)); }
.group--opening .opening__note { margin-top: calc(24 * var(--u) * var(--k, 1)); }
.group--received .received__line { margin-top: calc(44 * var(--u) * var(--k, 1)); }
.group--received .received__note { margin-top: calc(30 * var(--u) * var(--k, 1)); }
@keyframes stamp { 0% { transform: scale(1.6); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
.opening__line { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: calc(25 * var(--u) * var(--k, 1)); line-height: .9; }
.opening__begin { font-family: var(--serif); font-weight: 300; font-size: calc(20 * var(--u)); }
.opening__note { margin: 0; color: var(--silver); font-size: calc(12 * var(--u)); }
.received__line { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: calc(28 * var(--u) * var(--k, 1)); line-height: .85; }
.received__note { margin: 0; max-width: calc(290 * var(--u)); text-align: center; font-size: calc(13 * var(--u)); line-height: 1.65; color: rgba(243, 239, 233, .85); }
.return { position: absolute; left: 0; right: 0; top: calc(706 * var(--u) * var(--k, 1)); height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.return span { padding-bottom: 4px; border-bottom: 1px solid var(--blue); }
.hp { position: absolute; left: -9999px; }

/* Consent tick box (Choose your evening) */
.consent { display: grid; grid-template-columns: calc(18 * var(--u)) minmax(0, 1fr); gap: calc(12 * var(--u)); align-items: start; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { width: calc(16 * var(--u)); height: calc(16 * var(--u)); margin-top: calc(1 * var(--u)); border: 1px solid rgba(189, 194, 200, .6); position: relative; transition: border-color .4s, background .4s; }
.consent__box::after { content: ""; position: absolute; left: 32%; top: 12%; width: 28%; height: 52%; border-right: 1px solid var(--plum); border-bottom: 1px solid var(--plum); transform: rotate(45deg); opacity: 0; transition: opacity .3s; }
.consent input:checked + .consent__box { background: var(--blue); border-color: var(--blue); }
.consent input:checked + .consent__box::after { opacity: 1; }
.consent input:focus-visible + .consent__box { border-color: var(--blue); }
.consent__text { font-size: calc(11.5 * var(--u)); line-height: 1.55; color: var(--silver); }
.consent__text a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--hair); }

.footer__legal + .footer__legal { margin-top: calc(6 * var(--u)); }
.footer__legal a { text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 1px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(calc(14 * var(--u))); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .15s; }
.js .reveal[data-delay="2"] { transition-delay: .3s; }
.js .reveal[data-delay="3"] { transition-delay: .45s; }

.js .ink { clip-path: inset(0 0 100% 0); opacity: .2; transition: clip-path 2.6s var(--ease), opacity 2.6s var(--ease); }
.js .ink-wrap.is-in .ink { clip-path: inset(0 0 0 0); opacity: 1; }

/* Hero entrance */
.js .hero__img { opacity: 0; transform: scale(1.06); transition: opacity 2.4s ease, transform 6s var(--ease); }
.js .hero__title h1 .ch { opacity: 0; transform: translateY(0.18em); filter: blur(4px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
.js .hero__sub { opacity: 0; letter-spacing: 0.8em; transition: opacity 1.6s 1.5s var(--ease), letter-spacing 2s 1.5s var(--ease); }
.js .hero__city, .js .topbar { opacity: 0; transition: opacity 1.4s 2.3s var(--ease); }
.js.is-loaded .hero__img { opacity: 1; transform: scale(1); }
.js.is-loaded .hero__title h1 .ch { opacity: 1; transform: none; filter: none; }
.js.is-loaded .hero__sub { opacity: 1; letter-spacing: 0.47em; }
.js.is-loaded .hero__city, .js.is-loaded .topbar { opacity: 1; }
.js .page--inner .topbar { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
  .js .reveal, .js .ink, .js .hero__img, .js .hero__title h1 .ch, .js .hero__sub, .js .hero__city, .js .topbar { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
}

/* Larger screens: keep the phone column, let the hero painting run edge to edge */
@media (min-width: 700px) and (max-width: 999px) {
  body { background: #3f2a35; }
  .page { background: var(--plum); box-shadow: 0 0 80px rgba(0,0,0,.25); }
}

/* ---------- Privacy notice (reuses The Code layout) ---------- */
.legal__intro { margin: calc(26 * var(--u)) auto 0; max-width: calc(290 * var(--u)); text-align: center; font-family: var(--sans); font-weight: 300; font-style: normal; font-size: calc(12.5 * var(--u)); line-height: calc(20.6 * var(--u)); color: var(--blue); }
.legal .code__title { line-height: .85; }
.legal .code__title .italic { line-height: 1; margin-top: calc(4 * var(--u)); }
.legal .code__item ul { margin: calc(9 * var(--u)) 0 0; padding-left: calc(14 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: calc(20.6 * var(--u)); color: rgba(243, 239, 233, 0.88); }
.legal .code__item li::marker { color: var(--blue); }
.legal .code__item strong { font-weight: 400; color: var(--cream); }
.legal .code__item a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.legal__date { margin: calc(40 * var(--u)) 0 0; text-align: center; color: var(--silver); font-size: calc(8.5 * var(--u)); }

/* ---------- Mobile-only bits ---------- */
.topbar__nav { display: none; }
.apply-art { display: none; }

/* =========================================================
   DESKTOP (≥ 1000px) — proposal, not yet approved
   Sizes use --d: design pixels on a 1440px-wide canvas.
   ========================================================= */
@media (min-width: 1000px) {
  :root { --d: calc(min(100vw, 1600px) / 1440); }
  body { background: var(--plum); }
  .page { width: 100%; box-shadow: none; background: var(--plum); }

  /* Top bar: inline menu instead of the Menu button */
  .topbar { padding: calc(26 * var(--d)) calc(56 * var(--d)); }
  .topbar__mark { font-size: calc(24 * var(--d)); }
  .topbar__menu, .menu { display: none; }
  .topbar__nav { display: flex; gap: calc(44 * var(--d)); }
  .topbar__nav a { text-decoration: none; font-size: calc(10.5 * var(--d)); padding: 12px 0; position: relative; }
  .topbar__nav a::after { content: ""; position: absolute; left: 0; right: .3em; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
  .topbar__nav a:hover::after { transform: scaleX(1); }
  .topbar__label { font-size: calc(10.5 * var(--d)); }

  /* Hero: full screen, larger title */
  .hero { height: 100vh; min-height: calc(720 * var(--d)); max-height: none; }
  .hero__img { background-position: center 35%; }
  .hero__title { top: 42%; }
  .hero__title h1 { font-size: calc(136 * var(--d)); }
  .hero__sub { font-size: calc(13 * var(--d)); margin-top: calc(-2 * var(--d)); }
  .hero__city { font-size: calc(10.5 * var(--d)); bottom: calc(44 * var(--d)); }

  /* I · The salon: sketch left, text right */
  .intro {
    display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; column-gap: calc(110 * var(--d));
    max-width: calc(1240 * var(--d)); margin: 0 auto; padding: calc(150 * var(--d)) calc(56 * var(--d)); text-align: left;
  }
  .intro__sketch { height: calc(640 * var(--d)); object-position: center 55%; }
  .intro .roman { text-align: left; margin-top: 0; font-size: calc(16 * var(--d)); }
  .intro__body { width: auto; max-width: calc(470 * var(--d)); margin: calc(30 * var(--d)) 0 0; font-size: calc(17.5 * var(--d)); line-height: 1.7; }
  .intro__line { margin: calc(44 * var(--d)) 0 0; font-size: calc(28 * var(--d)); line-height: 1.25; }

  .rule { margin: 0 calc(56 * var(--d)); }

  /* Salons: all cards in one row */
  .salons { padding: calc(140 * var(--d)) 0 calc(110 * var(--d)); }
  .salons__head h2.caps { font-size: calc(12 * var(--d)); }
  .salons__sub { margin-top: calc(16 * var(--d)); font-size: calc(22 * var(--d)); }
  .carousel { justify-content: center; gap: calc(26 * var(--d)); padding: calc(64 * var(--d)) calc(56 * var(--d)) calc(10 * var(--d)); scroll-snap-type: none; }
  .salon { flex: 0 0 calc(240 * var(--d)); }
  .salon__meta { margin-top: calc(18 * var(--d)); font-size: calc(9.5 * var(--d)); }
  .salon__title { margin-top: calc(10 * var(--d)); font-size: calc(22 * var(--d)); }
  .salon__line { font-size: calc(14 * var(--d)); }
  .salon__btn { margin-top: calc(18 * var(--d)); height: calc(48 * var(--d)); font-size: calc(9.5 * var(--d)); }
  .salon__img img { transition: transform 1.6s var(--ease), filter .8s; }
  .salon:hover .salon__img img { transform: scale(1.03); }
  .dots { display: none; }
  .past .carousel { padding-top: calc(40 * var(--d)); }

  /* Invitation band */
  .invite { padding: calc(240 * var(--d)) calc(56 * var(--d)); }
  .invite__line { width: auto; font-size: calc(38 * var(--d)); }
  .invite__link { margin-top: calc(34 * var(--d)); font-size: calc(11 * var(--d)); }

  /* Questions: the whole hand laid out, lifting on hover */
  .cards { padding: calc(110 * var(--d)) 0 calc(120 * var(--d)); }
  .cards__row { justify-content: center; gap: calc(20 * var(--d)); overflow: visible; padding: calc(20 * var(--d)) calc(56 * var(--d)); scroll-snap-type: none; }
  .qa { flex: 0 0 calc(164 * var(--d)); height: calc(232 * var(--d)); transition: transform .6s var(--ease); }
  .qa:hover { transform: translateY(calc(-10 * var(--d))); }
  .qa__face { padding: 0 calc(20 * var(--d)); }
  .qa__face::before { inset: calc(16 * var(--d)) calc(12 * var(--d)); }
  .qa__front { font-size: calc(17 * var(--d)); }
  .qa__back { font-size: calc(12.5 * var(--d)); }
  .qa__pip { font-size: calc(10 * var(--d)); }
  .qa__pip--tl { top: calc(5 * var(--d)); left: calc(8 * var(--d)); }
  .qa__pip--br { bottom: calc(5 * var(--d)); right: calc(8 * var(--d)); }
  .cards__hint { margin-top: calc(30 * var(--d)); font-size: calc(10 * var(--d)); }

  /* Footer: one calm line across */
  .footer { margin: 0 calc(56 * var(--d)); padding: calc(60 * var(--d)) 0 calc(48 * var(--d));
    display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "mark nav contact" "legal legal legal" "privacy privacy privacy" "city city city"; align-items: center; row-gap: 0; }
  .footer__mark { grid-area: mark; justify-self: start; font-size: calc(26 * var(--d)); }
  .footer nav { grid-area: nav; margin: 0; gap: 0 calc(36 * var(--d)); }
  .footer nav a { font-size: calc(10 * var(--d)); }
  .footer__contact { grid-area: contact; justify-self: end; margin: 0; font-size: calc(14 * var(--d)); }
  .footer__legal { grid-area: legal; margin-top: calc(40 * var(--d)); font-size: calc(11.5 * var(--d)); }
  .footer__legal + .footer__legal { grid-area: privacy; margin-top: calc(6 * var(--d)); }
  .footer__city { grid-area: city; margin-top: calc(10 * var(--d)); font-size: calc(10 * var(--d)); }

  /* The Code and Privacy: a centred reading column */
  .code { max-width: calc(760 * var(--d)); margin: 0 auto; padding: calc(210 * var(--d)) 0 calc(120 * var(--d)); }
  .code__title { font-size: calc(72 * var(--d)); line-height: .85; }
  .code__title .italic { font-size: calc(30 * var(--d)); line-height: 1; margin-top: calc(10 * var(--d)); }
  .code__list { margin-top: calc(80 * var(--d)); }
  .code__item { grid-template-columns: calc(96 * var(--d)) minmax(0, 1fr); padding: calc(36 * var(--d)) 0 calc(38 * var(--d)); }
  .code__num { font-size: calc(16 * var(--d)); padding-top: calc(6 * var(--d)); }
  .code__item h2 { font-size: calc(28 * var(--d)); line-height: 1.15; }
  .code__item p, .legal .code__item ul { margin-top: calc(14 * var(--d)); font-size: calc(16.5 * var(--d)); line-height: 1.75; }
  .legal .code__item ul { padding-left: calc(20 * var(--d)); }
  .practical { margin-top: calc(100 * var(--d)); }
  .practical h2 { font-size: calc(11 * var(--d)); margin-bottom: calc(28 * var(--d)); }
  .practical div { grid-template-columns: calc(200 * var(--d)) minmax(0, 1fr); padding: calc(20 * var(--d)) 0; font-size: calc(16.5 * var(--d)); line-height: 1.6; }
  .practical dt { font-size: calc(10.5 * var(--d)); line-height: 1.6; padding-top: calc(3 * var(--d)); }
  .code__cta { width: calc(380 * var(--d)); height: calc(60 * var(--d)); margin: calc(80 * var(--d)) auto 0; font-size: calc(11 * var(--d)); }
  .legal__intro { max-width: calc(560 * var(--d)); margin-top: calc(40 * var(--d)); font-size: calc(16.5 * var(--d)); line-height: 1.75; }
  .legal__date { margin-top: calc(60 * var(--d)); font-size: calc(10 * var(--d)); }

}

/* =========================================================
   DESKTOP refinements from Sofia's Figma (3 Nov) — values in design px at 1440
   ========================================================= */
@media (min-width: 1000px) {
  /* Hero: the full de Troy, larger subtitle and city */
  .hero__img { background-image: url("../img/hero-detroy-full.jpg"); background-position: center 40%; }
  .hero__sub { font-size: calc(16 * var(--d)); letter-spacing: .38em; padding-left: .38em; margin-top: calc(-14 * var(--d)); }
  .js.is-loaded .hero__sub { letter-spacing: .38em; }
  .hero__city { font-size: calc(16 * var(--d)); letter-spacing: .2em; }

  /* Section I: sketch from the left edge, text column at x 811 */
  .intro { grid-template-columns: calc(566 * var(--d)) calc(470 * var(--d)); column-gap: calc(213 * var(--d)); align-items: start;
    max-width: none; margin: 0; padding: calc(10 * var(--d)) 0 0 calc(32 * var(--d)); }
  .intro__sketch { width: calc(566 * var(--d)); height: calc(930 * var(--d)); object-fit: cover; object-position: center 55%; }
  .intro__text { padding-top: calc(320 * var(--d)); }
  .intro__body { max-width: calc(470 * var(--d)); margin-top: calc(30 * var(--d)); font-size: calc(17.5 * var(--d)); line-height: calc(29.8 * var(--d)); }
  .intro__line { margin-top: calc(44 * var(--d)); font-size: calc(28 * var(--d)); line-height: calc(35 * var(--d)); white-space: nowrap; }
  .intro__line br { display: none; }

  /* Salons heading */
  .salons__head h2.caps { font-size: calc(20 * var(--d)); letter-spacing: .18em; }
  .salons__sub { margin-top: calc(4 * var(--d)); font-size: calc(18 * var(--d)); }
  .carousel { padding-top: calc(70 * var(--d)); }

  /* The Code / Privacy titles: Medium */
  .code__title { font-weight: 500; }

  /* Apply: split screen — painting on the left half, form on the right half */
  .apply-art { display: block; position: fixed; left: 0; top: 0; width: 50vw; height: 100vh; background: #2a1d24; z-index: 0; }
  .apply-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
  .apply-art img.is-active { opacity: 1; }
  .page--apply { width: 480px; margin-left: calc(75vw - 240px); margin-right: 0; position: relative; z-index: 1; }
  .page--apply .topbar { left: calc(240px - 25vw); right: calc(240px - 25vw); padding-left: 34px; padding-right: 46px; }
  .page--apply .btn { left: calc(240px - 25vw); right: calc(240px - 25vw); width: auto; height: 64px; }
  .page--apply .back { left: calc(240px - 25vw); right: calc(240px - 25vw); }
}
