/* Anita — tratamente faciale. Direction: the split stage (taste seed 576480145); colours from Anita's brief. */
:root {
  --bg: #eef3f6;
  --paper: #f8fafb;
  --ink: #1b2a35;
  --muted: #475765;
  --accent: #23495d;
  --accent-ink: #f8fafb;
  --night: #1b2a35;
  --night-2: #263845;
  --night-3: #324757;
  --night-ink: #eef3f6;
  --night-muted: #b9c7d2;
  --f-blue: #d2e3ef;
  --f-green: #d6e8d4;
  --f-lilac: #e1d9f0;
  --f-mint: #d8ebe5;
  --f-sky: #dbe7f5;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-head: clamp(2.375rem, 1.5rem + 3vw, 4.25rem);
  --step-display: clamp(5rem, 22vw, 22rem);

  --m: clamp(20px, 4vw, 56px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --face: "Boska", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--face); font-size: var(--step-body); line-height: 1.5; letter-spacing: .005em;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: .98; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--f-lilac); color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; border-radius: 0;
  font: 500 var(--step-body)/1 var(--face); cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { background: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-small { min-height: 44px; padding: 0 20px; }
.link { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s; }
.link:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0; background: var(--paper);
}
.wordmark { font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.bar nav a:not(.btn) { text-decoration: none; white-space: nowrap; transition: color .2s; }
.bar nav .btn { white-space: nowrap; }
.bar nav a:not(.btn):hover { color: var(--accent); }
.lang {
  font: 500 var(--step-body)/1 var(--face); color: var(--ink); background: var(--f-blue);
  border: 0; min-width: 44px; min-height: 44px; cursor: pointer; transition: background-color .2s, transform .2s var(--ease);
}
.lang:hover { background: var(--f-lilac); }
.lang:active { transform: scale(.95); }

/* split stage */
.split { display: grid; grid-template-columns: 1fr; }
.read { background: var(--paper); padding: 0 var(--m); }
.stage { display: none; }

.hero { padding: 0 0 72px; text-align: center; }
.hero-plate { margin: 0 calc(var(--m) * -1) 32px; height: 40svh; padding: 20px; position: relative; transition: background-color 1.6s var(--ease); }
.hero-plate img { position: absolute; inset: 20px; margin: auto; max-height: calc(100% - 40px); max-width: calc(100% - 40px); opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-plate img.is-on { opacity: 1; animation: drift 7s var(--ease) both; }
.js .plate-inline.rv.in img { animation: drift 18s var(--ease) both; }
.hero h1 { font-size: var(--step-head); max-width: 13ch; margin: 0 auto; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; margin: 32px auto 0; color: var(--ink); }
.hero-act { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 40px; }

.plate-inline { margin: 0 0 32px; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.plate-inline img { mix-blend-mode: multiply; max-height: 100%; width: auto; object-fit: contain; }
.tint-blue { background: var(--f-blue); }
.tint-green { background: var(--f-green); }
.tint-lilac { background: var(--f-lilac); }
.tint-mint { background: var(--f-mint); }
.tint-sky { background: var(--f-sky); }

.finder { padding: var(--gap) 0 40px; }
.finder h2 { font-size: var(--step-head); }
.finder > p { margin-top: 32px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  font: 400 var(--step-body)/1.2 var(--face); color: var(--ink); background: var(--bg);
  border: 0; border-radius: 0; padding: 14px 18px; min-height: 48px; cursor: pointer; text-align: left;
  transition: background-color .25s var(--ease), color .25s, transform .2s var(--ease);
}
.chip:hover { background: var(--f-blue); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.treat { padding: 72px 0; scroll-margin-top: 24px; transition: background-color .6s var(--ease); }
.treat .plate-inline { height: 62vw; max-height: 440px; }
.treat h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; max-width: 22ch; }
.for { margin-top: 20px; max-width: 42ch; }
.facts { margin-top: 24px; display: grid; gap: 12px; max-width: 46ch; }
.facts b { font-weight: 500; }
.treat-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.min { font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.treat.is-picked h3 { color: var(--accent); }
.treat.is-picked .min { color: var(--accent); }

/* ritual */
.ritual { background: var(--f-green); padding: var(--gap) var(--m); display: grid; gap: 56px; }
.ritual h2 { font-size: var(--step-head); }
.ritual-text > p { margin-top: 32px; max-width: 30ch; font-size: var(--step-lead); line-height: 1.35; }

.slip {
  background: var(--paper); padding: 32px clamp(20px, 4vw, 32px) 64px; width: 100%; max-width: 480px; justify-self: end;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 97.5% 100%, 95% calc(100% - 14px), 92.5% 100%, 90% calc(100% - 14px), 87.5% 100%, 85% calc(100% - 14px), 82.5% 100%, 80% calc(100% - 14px), 77.5% 100%, 75% calc(100% - 14px), 72.5% 100%, 70% calc(100% - 14px), 67.5% 100%, 65% calc(100% - 14px), 62.5% 100%, 60% calc(100% - 14px), 57.5% 100%, 55% calc(100% - 14px), 52.5% 100%, 50% calc(100% - 14px), 47.5% 100%, 45% calc(100% - 14px), 42.5% 100%, 40% calc(100% - 14px), 37.5% 100%, 35% calc(100% - 14px), 32.5% 100%, 30% calc(100% - 14px), 27.5% 100%, 25% calc(100% - 14px), 22.5% 100%, 20% calc(100% - 14px), 17.5% 100%, 15% calc(100% - 14px), 12.5% 100%, 10% calc(100% - 14px), 7.5% 100%, 5% calc(100% - 14px), 2.5% 100%, 0 calc(100% - 14px));
}
.slip h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; margin: 28px 0 8px; }
.slip h3:first-child { margin-top: 0; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: var(--step-body); }
.row span:first-child { flex: 0 1 auto; min-width: 0; }
.row span:last-child { flex: none; white-space: nowrap; }
.dots {
  flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; margin-top: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='4'%3E%3Ccircle cx='2' cy='2' r='2' fill='%23475765'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.row.total { margin: 28px calc(clamp(20px, 4vw, 32px) * -1) 0; padding: 0 clamp(20px, 4vw, 32px); min-height: 48px; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); }

/* about */
.about { padding: 120px var(--m); background: var(--bg); display: grid; gap: 56px; }
.letter { width: 100%; max-width: 560px; }
.about-fig { margin: 0; padding: clamp(20px, 3vw, 40px); align-self: center; }
.about-fig img { mix-blend-mode: multiply; width: 100%; }
.about-fig figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--ink); }
.letter h2 { font-size: var(--step-head); }
.letter p { margin-top: 1.4em; }
.letter h2 + p { margin-top: 36px; }
.letter mark { background: var(--f-lilac); color: var(--ink); padding: 0 .15em; }
.letter .draft { color: var(--muted); font-style: italic; }
.sign { font-size: var(--step-lead); font-style: italic; margin-top: 44px !important; }
.role { margin-top: 4px !important; font-size: var(--step-small); color: var(--muted); }

/* booking */
.book { background: var(--night); color: var(--night-ink); padding: 48px 0 var(--gap); overflow: hidden; scroll-margin-top: 0; }
.strip { overflow: hidden; }
.strip-run { display: flex; gap: 8px; width: max-content; animation: run 60s linear infinite; }
.strip-run img { height: 110px; width: auto; object-fit: cover; background: var(--f-blue); }
.strip-run img:nth-child(3n+2) { background: var(--f-green); }
.strip-run img:nth-child(3n) { background: var(--f-lilac); }
@keyframes run { to { transform: translateX(-50%); } }
.book-in { padding: 0 var(--m); }
.book h2 { font-size: var(--step-head); margin-top: 64px; }
.form { margin-top: 40px; display: grid; gap: 8px; grid-template-columns: 1fr; }
.cell {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 18px;
  background: var(--night-2); transition: background-color .25s var(--ease);
}
.cell > span { font-size: var(--step-small); color: var(--night-muted); }
.cell:focus-within { background: var(--night-3); }
.cell input, .cell select {
  font: 400 var(--step-body)/1.3 var(--face); color: var(--night-ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--night-muted); padding: 4px 0; width: 100%; color-scheme: dark; border-radius: 0;
}
.cell input:focus, .cell select:focus { outline: none; border-bottom-color: var(--night-ink); }
.cell select option { background: var(--night-2); color: var(--night-ink); }
.send {
  border: 0; cursor: pointer; background: var(--f-blue); color: var(--ink); font: 500 var(--step-lead)/1 var(--face);
  align-items: center; transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.send:hover { background: var(--f-lilac); }
.send:active { transform: scale(.98); }
.note { margin-top: 16px; font-size: var(--step-small); color: var(--night-muted); }
.done { margin-top: 28px; padding: 24px; background: var(--f-green); color: var(--ink); font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.contact { margin-top: 72px; display: grid; gap: 24px; }
.contact p { font-size: var(--step-body); color: var(--night-muted); }
.contact a { color: var(--night-ink); text-decoration: none; transition: color .2s; }
.contact a:hover { color: var(--f-blue); text-decoration: underline; text-underline-offset: 6px; }

/* footer */
.foot { background: var(--bg); padding: 48px var(--m) 40px; }
.foot-name { font-size: var(--step-display); line-height: .8; letter-spacing: -0.04em; margin-left: -0.04em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; }
.credits { margin-top: 24px; font-size: var(--step-small); color: var(--muted); max-width: 75ch; }
.credits a { color: var(--muted); }

/* demo notice, in the flow of the page */
.demo { display: flex; line-height: 1.35; align-items: center; gap: 16px; flex-wrap: nowrap; justify-content: space-between; padding: 8px var(--m); background: var(--f-lilac); font-size: var(--step-small); }
.demo[hidden] { display: none; }
.demo p { max-width: 90ch; }
.demo b { font-weight: 500; }
.demo-ok { flex: none; font: 500 var(--step-small)/1 var(--face); background: var(--ink); color: var(--paper); border: 0; min-height: 44px; padding: 0 18px; cursor: pointer; transition: transform .2s var(--ease); }
.demo-ok:active { transform: scale(.96); }

/* entrances: content stays visible without script */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (min-width: 700px) {
  .form { grid-template-columns: repeat(3, 1fr); }
  .cell { min-height: 96px; }
  .ritual { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .ritual-text { grid-column: 1 / 6; }
  .about { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .letter { grid-column: 1 / 7; }
  .about-fig { grid-column: 8 / 13; }
  .slip { grid-column: 7 / 13; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .read { padding: 0 clamp(40px, 5vw, 88px); }
  .plate-inline:not(.ritual-fig) { display: none; }
  .hero { min-height: calc(100svh - 96px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0 96px; }
  .treat { min-height: 86svh; display: flex; flex-direction: column; justify-content: center; }
  .treat h3 { font-size: clamp(1.75rem, 1.2rem + 1.1vw, 2.375rem); }
  .stage { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .plate { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease); display: grid; place-items: center; padding: 64px 56px 104px; }
  .plate.is-on { opacity: 1; }
  .plate img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.0); }
  .plate.is-on img { animation: drift 24s var(--ease) both; }
  .plate figcaption { position: absolute; top: 22px; left: 28px; right: 28px; font-size: var(--step-small); color: var(--ink); }
  .stage-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--paper); font-size: var(--step-small); }
  .book-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .book h2, .form, .note, .done, .contact { grid-column: 1 / -1; }
  .strip-run img { height: 150px; }
}
@media (min-width: 1100px) { .contact { grid-template-columns: repeat(3, 1fr); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }

@media (max-width: 1179px) {
  .bar nav a:not(.btn) { display: none; }
}
@media (max-width: 899px) {
  :root { --gap: 96px; }
  .bar { padding: 14px 0; }
  .hero { padding-bottom: 48px; }
  .hero-act { margin-top: 28px; gap: 16px; }
  .lead { margin-top: 20px; }
  .finder { padding-top: 88px; }
  .chips { gap: 8px; }
  .chip { flex: 1 1 auto; }
  .treat { padding: 56px 0; }
  .treat-foot .btn { flex: 1 1 auto; }
  .ritual { gap: 40px; }
  .about { padding: 96px var(--m); }
  .row { flex-wrap: wrap; }
  .row span:first-child { flex: 1 1 60%; }
  .row .dots { display: none; }
  .row span:last-child { margin-left: auto; }
}

/* Alex, 08.11.2026: the motion stays on for phones that ask for reduced motion too. */
