/* ==========================================================================
   Галина Дзись — prof de français
   Palette B «Півонія»
   ========================================================================== */

:root {
  --bg: #FBF5F2;
  --bg-blur: #FBF5F2F0;
  --ink: #2A1820;
  --accent: #8E2F4B;
  --muted: #4E5550;
  --green: #6F8A4E;
  --pink: #F4D6DA;
  --line: #E9E0D0;
  --white: #FFFFFF;
  --paper: #FFFEFA;
  --foot: #737A74;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(48px, 6vw, 88px);

  --sans: 'Montserrat', sans-serif;
  --script: 'Caveat', cursive;
  --serif: 'Lora', serif;

  /* one soft ease-out for all motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --soft: var(--ease);
  --reveal-tr: opacity 1s ease var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

img { display: block; }
.ico {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.script { font-family: var(--script); }

@media (max-width: 720px) { .desktop-only { display: none !important; } }
@media (min-width: 721px) { .mobile-only { display: none !important; } }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-blur);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: box-shadow .35s ease;
}
.topbar.is-scrolled { box-shadow: 0 10px 30px -22px rgba(42, 24, 32, .45); }

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 16px;
  padding: 14px 0;
}

.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__name { font-weight: 500; font-size: 17px; letter-spacing: .04em; transition: color .35s ease; }
.brand__tag {
  font-family: var(--script);
  font-size: 24px;
  color: var(--accent);
  display: inline-block;
  transition: transform .6s var(--soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav__link { position: relative; padding: 8px 0; transition: color .35s ease; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__cta {
  padding: 13px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  white-space: nowrap;
  transition: background-color .35s ease, color .35s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.nav__cta:hover { background: var(--accent); color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(16px, 2.5vw, 32px) 0 clamp(40px, 5vw, 64px);
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title-row { display: flex; gap: 24px; align-items: stretch; }
.hero__rule { width: 1.5px; background: var(--ink); transform-origin: top; }
.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-transform: uppercase;
}
.hero__light {
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: .01em;
}
.hero__bold {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 74px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--accent);
}
.hero__diag { display: flex; flex-direction: column; gap: 10px; max-width: 34em; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
}
.eyebrow__line { width: 28px; height: 1.5px; background: var(--accent); }
.text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__about { max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 30px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px var(--accent);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  white-space: nowrap;
}
.cta:hover {
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px var(--accent);
}
.cta::before {
  /* light sheen that sweeps across on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%);
}
.cta__label { display: flex; flex-direction: column; gap: 2px; }
.cta__main { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.cta__sub { font-size: 12.5px; opacity: .85; }
.cta__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease);
}
.cta__circle .ico { transition: transform .5s var(--ease); }

.hero__note {
  font-family: var(--script);
  font-size: 24px;
  line-height: 1.1;
  color: var(--green);
  transform: rotate(-3deg);
}

.hero__media {
  position: relative;
  padding: 34px 0 0 24px;
  width: 100%;
  max-width: min(440px, calc((100vh - 170px) * .8));
  justify-self: center;
}
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 10px solid var(--pink);
  background: var(--pink);
  box-shadow: 0 30px 60px -30px rgba(30, 60, 40, .3);
  translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -6px);
  transition: translate 1.2s var(--ease);
}
.hero__frame img,
.path__frame img,
.atmo__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.bonjour {
  position: absolute;
  left: 34%;
  top: 4px;
  transform: rotate(-5deg);
  pointer-events: none;
  translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 10px);
  transition: translate 1.2s var(--ease);
}
.bonjour__bubble {
  position: relative;
  padding: 10px 20px;
  background: var(--bg);
  border: 3px solid var(--accent);
  border-radius: 40px;
  font-weight: 900;
  font-size: 20px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.bonjour__tail {
  position: absolute;
  left: 34px;
  bottom: -12px;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
}
.hero__badge {
  position: absolute;
  right: 0;
  bottom: 36px;
  padding: 12px 22px;
  background: var(--green);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transform: rotate(4deg);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- Stats strip ---------- */

.stats { background: var(--accent); color: var(--bg); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: clamp(12px, 3vw, 48px);
}
.stats__item {
  padding: clamp(22px, 3vw, 36px) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stats__big {
  font-weight: 900;
  font-size: clamp(19px, 4vw, 40px);
  text-transform: uppercase;
  white-space: nowrap;
}
.stats__small {
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.35;
  opacity: .85;
  max-width: 19em;
  text-wrap: balance;
}

.stats-m { background: var(--accent); color: var(--bg); }
/* one shared label column sized by the widest word («CAVILAM») */
.stats-m__list {
  padding: 8px 20px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 20px;
}
.stats-m__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}
@supports (grid-template-columns: subgrid) {
  .stats-m__row { grid-template-columns: subgrid; gap: 0; column-gap: inherit; }
}
.stats-m__row + .stats-m__row { border-top: 1px solid rgba(255, 255, 255, .18); }
.stats-m__big { font-weight: 900; font-size: 22px; text-transform: uppercase; white-space: nowrap; }
.stats-m__small { font-size: 14px; line-height: 1.4; opacity: .9; }

/* ---------- Shared headings ---------- */

.h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-transform: uppercase;
}
.h2__light { font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; }
.h2__bold { font-weight: 900; line-height: .95; color: var(--accent); letter-spacing: -.02em; }

/* ---------- Who ---------- */

.who {
  padding: var(--section) 0 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 40px);
}
.who__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.who__head .h2 { gap: clamp(12px, 1.4vw, 16px); }
.who__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.who__bold { font-size: clamp(36px, 4.4vw, 62px); }
.who__one { position: relative; padding: 0 18px; letter-spacing: normal; }
.who__ring {
  position: absolute;
  /* sized in em so the ring hugs «1:1» the same way at every font size
     and never reaches the descenders of the line above */
  inset: -.1em -.06em -.14em;
  border: 2px solid var(--green);
  border-radius: 50%;
  transform: rotate(-5deg);
}
.who__lead { line-height: 1.6; max-width: 24em; }

.who__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(calc(25% - 12px), (1000px - 100%) * 999, max(calc(50% - 8px), min(100%, 300px))), 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 32px);
  min-height: clamp(150px, 22vw, 230px);
  border: 1.5px solid var(--line);
  transition: var(--reveal-tr), transform .7s var(--soft), box-shadow .7s var(--soft), border-color .5s ease;
}
.card__n {
  font-family: var(--script);
  font-size: 34px;
  color: var(--green);
  line-height: 1;
  align-self: flex-start;
  transform-origin: left center;
  transition: transform .8s var(--soft), color .5s ease;
}
.card__body { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.card__title { margin: 0; font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--accent); }
.card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.who__mobile { display: flex; flex-direction: column; gap: 14px; }
.who__scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  margin: 0 -16px;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.who__scroller::-webkit-scrollbar { display: none; }
.card--m { min-height: 210px; flex: 0 0 78%; scroll-snap-align: start; }
.who__spacer { flex: 0 0 4px; }
.who__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--script);
  font-size: 22px;
  color: var(--green);
}
.who__hint .ico { animation: nudge 1.6s ease-in-out infinite; }

/* Mobile carousel: neighbours shrink & fade as they leave the snap point */
.card--m {
  --p: 0;
  transform: scale(calc(1 - var(--p) * .07));
  transform-origin: left center;
  opacity: calc(1 - var(--p) * .4);
  transition: border-color .5s ease, box-shadow .5s ease;
}
.card--m.is-active {
  border-color: #E3BCC4;
  box-shadow: 0 18px 34px -24px rgba(142, 47, 75, .45);
}
.card--m.is-active .card__n { color: var(--accent); }
.carousel-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.carousel-ctrl__right { display: flex; align-items: center; gap: 8px; }
.dots { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #DCC3C9;
  cursor: pointer;
  transition: width .6s var(--ease), background-color .4s ease;
}
.dot.is-active { width: 24px; background: var(--accent); }
.dot::before { content: ""; display: block; margin: -18px -4px; height: 44px; } /* touch target */
.carr {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color .25s, color .25s, opacity .25s, transform .15s;
}
.carr--prev .ico { transform: scaleX(-1); }
.carr:active { transform: scale(.92); background: var(--accent); color: var(--bg); }
.carr:disabled { opacity: .3; pointer-events: none; }

/* ---------- Path / about ---------- */

.path {
  margin-top: var(--section);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 40px;
  padding: clamp(24px, 4vw, 56px);
}
.path__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.path__media {
  position: relative;
  padding: 28px 28px 0 0;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
.path__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 10px solid var(--pink);
  background: var(--pink);
  transform: rotate(-2deg);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.path__badge {
  position: absolute;
  right: 0;
  top: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transform: rotate(8deg);
  pointer-events: none;
  transition: transform .9s var(--soft);
}
.path__badge-num { font-weight: 900; font-size: 38px; line-height: 1; }
.path__badge-txt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.path__quote { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; padding-right: 8px; }
.path__quote-main {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--accent);
}
.path__quote-sub { font-size: 14.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.path__text { display: flex; flex-direction: column; gap: 28px; }
.path__hello { font-size: 32px; color: var(--green); line-height: 1; }
.path__name { font-size: clamp(40px, 5vw, 74px); line-height: .92; }
.path__bio {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 28em;
  text-wrap: pretty;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 10px 18px;
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--soft);
}
.tag--fill { padding: 12px 20px; border: 0; background: var(--accent); color: var(--bg); }

/* ---------- Method (notebook) ---------- */

.method { padding: var(--section) 0 0; }
.notebook {
  --margin: clamp(26px, 7vw, 88px);
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent var(--margin), rgba(214, 72, 92, .55) var(--margin), rgba(214, 72, 92, .55) calc(var(--margin) + 1.5px), transparent calc(var(--margin) + 1.5px)),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(120, 110, 190, .38) 31px, rgba(120, 110, 190, .38) 32px),
    repeating-linear-gradient(180deg, transparent 0, transparent 7px, rgba(120, 150, 210, .16) 7px, rgba(120, 150, 210, .16) 8px),
    repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(120, 110, 190, .12) 31px, rgba(120, 110, 190, .12) 32px);
  border-radius: 6px 28px 28px 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 48px -28px rgba(40, 20, 20, .35);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px) clamp(40px, 6vw, 80px) calc(var(--margin) + clamp(18px, 3vw, 48px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.method__intro { display: flex; flex-direction: column; gap: 20px; }
.method__eyebrow {
  font-size: clamp(28px, 3vw, 36px);
  color: var(--green);
  line-height: 1;
  transform: rotate(-2deg);
  transform-origin: left;
}
.method__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.method__em {
  position: relative;
  white-space: nowrap;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.method__underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.12em;
  height: .32em;
  border-bottom: 2.5px solid var(--green);
  border-radius: 0 0 50% 50%;
  transform: rotate(-1.2deg);
}
.method__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 30em;
  text-wrap: pretty;
}
.method__sign {
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  transform: rotate(-3deg);
  transform-origin: left;
  margin-top: 16px;
}
.method__list { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}
.step__n {
  font-family: var(--script);
  font-size: 44px;
  line-height: .8;
  color: var(--green);
  display: inline-block;
  transition: transform .7s var(--soft), color .5s ease;
}
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.step__fr {
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  display: inline-block;
  transform-origin: left bottom;
  transition: transform .7s var(--soft);
}
.step__title { font-weight: 700; font-size: 17px; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Atmosphere ---------- */

.atmo { padding: var(--section) 0 0; }
.atmo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.atmo__text { display: flex; flex-direction: column; gap: 24px; }
.atmo__eyebrow {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1;
  color: var(--green);
  transform: rotate(-2deg);
  transform-origin: left;
}
.atmo__bold { font-size: clamp(34px, 4.2vw, 60px); }
.atmo__p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.atmo__quote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 4px;
}
.atmo__mark { font-family: var(--serif); font-size: 76px; line-height: .8; color: var(--green); }
.atmo__quote-text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.35;
  color: var(--accent);
  max-width: 24em;
  text-wrap: pretty;
}
.atmo__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  padding: 12px 12px 0;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .03), 0 30px 60px -30px rgba(40, 20, 20, .4);
  transform: rotate(1.2deg);
  transition: var(--reveal-tr), transform .9s var(--ease), box-shadow .9s var(--ease);
}
.atmo__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 380px);
  min-height: 260px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pink);
}
.atmo__pill {
  position: absolute;
  left: -14px;
  top: 30px;
  padding: 10px 22px 12px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(40, 20, 20, .45);
  transform: rotate(-6deg);
  pointer-events: none;
}
.atmo__pill span {
  display: block;
  font-family: var(--script);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1;
  white-space: nowrap;
  color: var(--green);
}
.atmo__card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 24px) clamp(10px, 1.6vw, 18px) clamp(18px, 2.2vw, 26px);
}
.atmo__card-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.15;
  color: var(--accent);
  text-wrap: balance;
}
.atmo__card-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Contact ---------- */

.contact {
  margin: var(--section) 0 clamp(16px, 2vw, 24px);
  padding: clamp(28px, 6vw, 88px) clamp(18px, 5vw, 72px) 28px;
  background: var(--pink);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.contact__title { gap: 6px; }
.contact__light { font-size: clamp(22px, 2.6vw, 36px); }
.contact__bold { font-size: clamp(34px, 5.4vw, 80px); letter-spacing: -.025em; }
.contact__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  text-transform: none;
}
.chip {
  padding: 8px 16px;
  background: var(--green);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  transform: rotate(-2deg);
}
.contact__sub-text { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.contact__bye { font-size: 40px; color: var(--green); transform: rotate(-5deg); }
.contact__note { margin: 0; font-size: 16px; color: var(--muted); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(calc(33.33% - 10px), (780px - 100%) * 999, 100%), 1fr));
  gap: 14px;
}
.msg {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.4vw, 26px);
  min-width: 0;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  transition: var(--reveal-tr), background-color .35s ease, color .35s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.msg--fill { transition: var(--reveal-tr), opacity .4s ease, transform .45s var(--ease); }
.msg:hover { background: var(--accent); color: var(--bg); }
.msg--fill { border: 0; background: var(--accent); color: var(--bg); }
.msg--fill:hover, .js .msg--fill.reveal.is-visible:hover { opacity: .88; transform: translateY(-2px); color: var(--bg); }
.msg__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.msg__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  transition: transform .6s var(--soft), background-color .3s;
}
.msg__name { font-size: 18px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.msg__arrow { transition: transform .5s var(--ease); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1.5px solid rgba(0, 0, 0, .12);
  font-size: 14px;
  color: var(--foot);
}
.footer__links { display: flex; gap: 24px; }
.footer__links a { position: relative; transition: color .35s ease; }
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

/* ---------- Viber fallback dialog ---------- */

.vdlg {
  width: min(440px, calc(100vw - 32px));
  padding: clamp(26px, 5vw, 36px);
  border: 0;
  border-radius: 28px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(42, 24, 32, .55);
  opacity: 0;
  translate: 0 16px;
  scale: .98;
  transition: opacity .45s ease, translate .6s var(--ease), scale .6s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.vdlg[open] { opacity: 1; translate: none; scale: none; }
@starting-style { .vdlg[open] { opacity: 0; translate: 0 16px; scale: .98; } }
.vdlg::backdrop {
  background: rgba(42, 24, 32, 0);
  backdrop-filter: blur(0);
  transition: background-color .45s ease, backdrop-filter .45s ease, overlay .45s allow-discrete, display .45s allow-discrete;
}
.vdlg[open]::backdrop { background: rgba(42, 24, 32, .38); backdrop-filter: blur(4px); }
@starting-style { .vdlg[open]::backdrop { background: rgba(42, 24, 32, 0); backdrop-filter: blur(0); } }
.vdlg__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, transform .5s var(--ease);
}
.vdlg__close:hover { background: var(--pink); color: var(--accent); transform: rotate(90deg); }
.vdlg__hello { display: block; font-size: 30px; line-height: 1; color: var(--green); transform: rotate(-3deg); transform-origin: left; }
.vdlg__title { margin: 12px 0 0; font-weight: 900; font-size: 24px; line-height: 1.1; text-transform: uppercase; color: var(--accent); }
.vdlg__text { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.vdlg__number {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
}
.vdlg__tel { min-width: 0; font-weight: 800; font-size: clamp(16px, 4.4vw, 18px); letter-spacing: .02em; white-space: nowrap; }
.vdlg__copy {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: 800 13px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background-color .35s ease, transform .45s var(--ease);
}
.vdlg__copy:hover { transform: translateY(-1px); }
.vdlg__copy.is-done { background: var(--green); }
.vdlg__ico-done, .vdlg__copy.is-done .vdlg__ico-copy { display: none; }
.vdlg__copy.is-done .vdlg__ico-done { display: block; }

.vdlg__actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.vdlg__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background-color .35s ease, color .35s ease, transform .45s var(--ease);
}
.vdlg__btn:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.vdlg__btn--fill { border: 0; background: var(--accent); color: var(--bg); }
.vdlg__btn--fill:hover { color: var(--bg); opacity: .9; }
.vdlg__dl { display: block; margin-top: 16px; text-align: center; font-size: 14px; color: var(--foot); text-decoration: underline; text-underline-offset: 3px; }

/* room for the iPhone home indicator under the last block */
@media (max-width: 720px) {
  .contact { margin-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Motion — entrance, reveal-on-scroll, idle life
   ========================================================================== */

@keyframes loadIn {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}
@keyframes photoIn {
  from { opacity: 0; translate: 0 20px; scale: .97; }
  to { opacity: 1; translate: none; scale: none; }
}
@keyframes ruleIn {
  from { transform: scaleY(0); }
  to { transform: none; }
}
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@keyframes bubble {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-2px); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Hero entrance (runs on load) */
.js .load-in { animation: loadIn 1.2s var(--ease) var(--d, 0s) both; }
.js .load-in--photo { animation-name: photoIn; animation-duration: 1.5s; }
.js .hero__rule { animation: ruleIn 1.2s var(--ease) .1s both; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  translate: 0 20px;
  transition: var(--reveal-tr);
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* Handwritten bits are "written" left-to-right instead of sliding */
.js .script.reveal {
  translate: none;
  clip-path: inset(-30% 100% -30% -10%);
  transition: opacity .5s ease var(--d, 0s), clip-path 1.6s var(--ease) var(--d, 0s);
}
.js .script.reveal.is-visible { clip-path: inset(-30% -10% -30% -10%); }
.js .hero__note { animation: none; clip-path: inset(-30% 100% -30% -10%); transition: clip-path 1.6s var(--ease) 1s; }
.js.is-loaded .hero__note { clip-path: inset(-30% -10% -30% -10%); }

/* Hand-drawn ring around «1:1» and the underline under «вільно говорити» */
@property --sweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 360deg;
}
.js .who__ring {
  --sweep: 0deg;
  -webkit-mask: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
  mask: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
  transition: --sweep 1.6s var(--ease) .45s;
}
.js .is-visible .who__ring { --sweep: 360deg; }
.js .method__underline {
  clip-path: inset(-50% 100% -50% 0);
  transition: clip-path 1.4s var(--ease) .55s;
}
.js .is-visible .method__underline { clip-path: inset(-50% -5% -50% -5%); }

/* Idle life */
.bonjour__bubble { animation: bubble 4.5s ease-in-out infinite; }
.hero__badge { animation: floatY 5s ease-in-out 1.2s infinite; }
.path__badge-num, .path__badge-txt { animation: floatY 6s ease-in-out infinite; }
.chip { animation: sway 4.5s ease-in-out 1s infinite; }
.contact__bye { display: inline-block; }
.contact__bye.is-visible { animation: floatY 5.5s ease-in-out 1.2s infinite; }

/* ==========================================================================
   Hover (pointer devices only)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__name { color: var(--accent); }
  .brand:hover .brand__tag { transform: rotate(-6deg) translateY(-1px); }

  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta:hover { box-shadow: 0 10px 22px -12px var(--accent); transform: translateY(-1px); }

  .cta:hover::before { transform: translateX(120%); transition: transform 1.2s var(--ease) .05s; }
  .cta:hover .cta__circle { transform: scale(1.06); }
  .cta:hover .cta__circle .ico { transform: translateX(3px); }
  .cta:active { transform: translateY(0) scale(.98); }

  .hero__media:hover .hero__frame img { transform: scale(1.05); }

  .card:hover {
    transform: translateY(-4px);
    transition-delay: 0s, 0s, 60ms, 60ms, 60ms;
    border-color: #E3BCC4;
    box-shadow: 0 26px 44px -28px rgba(142, 47, 75, .45);
  }
  .card:hover .card__n { transform: rotate(-5deg) scale(1.06); color: var(--accent); transition-delay: 120ms; }

  .path__media:hover .path__frame { transform: rotate(0deg) scale(1.015); box-shadow: 0 30px 60px -32px rgba(142, 47, 75, .45); }
  .path__media:hover .path__frame img { transform: scale(1.05); }
  .path__media:hover .path__badge { transform: rotate(-4deg) scale(1.05); }

  .tag:not(.tag--fill):hover { background: var(--accent); color: var(--bg); border-style: solid; transform: translateY(-2px) rotate(-1.5deg); }
  .tag--fill:hover { transform: translateY(-2px) rotate(1.5deg); }

  .step:hover .step__n { transform: rotate(-6deg) scale(1.08); color: var(--accent); }
  .step:hover .step__fr { transform: rotate(-2deg) scale(1.04); transition-delay: 60ms; }

  .atmo__card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .03), 0 40px 70px -32px rgba(40, 20, 20, .5);
  }
  .atmo__card:hover .atmo__photo img { transform: scale(1.06); }
  .atmo__pill { transition: transform .9s var(--ease); }
  .atmo__card:hover .atmo__pill { transform: rotate(-9deg) translate(-4px, -3px); }

  .msg:hover .msg__arrow { transform: translateX(5px); }
  .msg:hover .msg__icon { transform: rotate(-8deg) scale(1.04); }
  .msg--fill:hover .msg__icon { background: rgba(255, 255, 255, .12); }
  .msg:active { transform: scale(.98); }

  .footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ==========================================================================
   Reduced motion: keep the layout, drop the movement
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero__frame, .bonjour { translate: none !important; }
}
