/* ============================================
   EVGENY HOTEI — COMPONENTS
   ============================================ */

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--milk);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}

.header.is-scrolled {
  border-bottom-color: var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.wordmark .glyph {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  transition: transform 0.8s var(--ease);
}

.wordmark:hover .glyph {
  transform: scale(1.12);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 0.4rem + 1.8vw, 2.5rem);
}

.nav__link {
  white-space: nowrap;
  position: relative;
  padding-block: 0.5rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0.22em;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header .header__cta {
  display: none;
  margin-left: auto;
}

@media (min-width: 560px) {
  .header .header__cta {
    display: inline-flex;
  }
}

@media (min-width: 1040px) {
  .nav {
    display: flex;
  }

  .header .header__cta {
    margin-left: 0;
  }
}

/* Menu toggle */
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--t-base), top var(--t-base);
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 25px;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

@media (min-width: 1040px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--gutter) var(--space-7);
  background: var(--sage);
  border-top: 1px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility 0s linear 0.35s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base), visibility 0s;
}

.mobile-menu__link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--ink);
}

.mobile-menu__link.is-active {
  font-style: italic;
}

.mobile-menu .btn {
  margin-top: var(--space-6);
  align-self: flex-start;
}

@media (min-width: 1040px) {
  .mobile-menu {
    display: none;
  }
}

/* ============================================
   BUTTONS
   Outlined, with the echo behind. Pressing in closes the echo.
   ============================================ */

.btn {
  --echo-fill: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--milk);
  box-shadow: 5px 5px 0 0 var(--echo-fill), 5px 5px 0 1px var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 0 var(--echo-fill), 2px 2px 0 1px var(--ink);
}

.btn--primary {
  background: var(--forest);
  color: var(--milk);
}

.btn--sm {
  padding: 0.7rem 1.25rem;
  box-shadow: 4px 4px 0 0 var(--echo-fill), 4px 4px 0 1px var(--ink);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 0.74rem;
}

/* on a sage block the echo turns milk so it stays visible */
.block--sage .btn,
.mobile-menu .btn {
  --echo-fill: var(--milk);
}

.block--sand .btn {
  --echo-fill: var(--milk);
}

/* ============================================
   FIRST SCREEN (HOME)
   Words first. Then the portrait, melting into the page,
   with the name and one quiet line beneath it.
   Phones: one column. Desktop: words on the left, the portrait
   runs to the right edge of the window, the name sits under it.
   ============================================ */

.intro {
  position: relative;
  border-bottom: 1px solid var(--ink);
  background: var(--milk);
  overflow: hidden;
}

.intro__inner {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
  grid-template-areas:
    ". text ."
    "photo photo photo"
    ". note .";
  padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.5rem) calc(var(--space-7) + var(--arc));
}

.intro__text {
  grid-area: text;
}

.intro__text h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.2vw, 4.3rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.intro__text h1 span {
  display: block;
  margin-top: 0.35em;
  font-size: 0.52em;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.intro__lead {
  max-width: 34rem;
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.intro__photo {
  grid-area: photo;
  position: relative;
  width: 100%;
  height: min(100vw, 34rem);
  margin: var(--space-5) 0 0;
  overflow: hidden;
}

.intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

/* the portrait melts into the page above and below it
   (a mask on the photo itself, so no edge can show) */
.intro__photo {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 64%, rgba(0, 0, 0, 0.15) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 64%, rgba(0, 0, 0, 0.15) 90%, transparent 100%);
}

.intro__note {
  grid-area: note;
  position: relative;
  margin-top: calc(var(--space-5) * -1);
}

.intro__note .label {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.intro__promise {
  max-width: 34rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--leaf);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.4rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

/* desktop: words on the left; on the right the portrait keeps its
   own upright shape (sized to the screen height, so it is seen
   almost whole) in the site's outline with its green echo;
   the name and the quote under it */
@media (min-width: 920px) {
  .intro__inner {
    --photo-h: clamp(22rem, calc(100vh - var(--header-h) - 18rem), 36rem);
    --photo-w: calc(var(--photo-h) * 0.8);
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, calc(var(--container) * 0.54))
      minmax(0, calc(var(--container) * 0.46))
      minmax(var(--gutter), 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      ". text photo ."
      ". text note .";
    padding-block: clamp(2rem, 1rem + 2.5vw, 3.5rem) calc(var(--space-6) + var(--arc));
  }

  .intro__text {
    align-self: center;
    padding-block: var(--space-6);
    padding-right: clamp(2rem, 4vw, 4.5rem);
  }

  .intro__photo {
    justify-self: center;
    width: min(100%, var(--photo-w));
    height: var(--photo-h);
    margin: 0;
    border: 1px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--echo) var(--echo) 0 0 var(--sage), var(--echo) var(--echo) 0 1px var(--ink);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .intro__photo img {
    object-position: 50% 30%;
  }

  .intro__note {
    justify-self: center;
    width: min(100%, var(--photo-w));
    margin-top: calc(var(--space-6) + var(--echo));
  }
}

/* the words arrive one after another, the portrait settles */
.js .intro__text > *,
.js .intro__note > * {
  animation: rise 0.9s var(--ease) both;
}

.js .intro__text > :nth-child(2) {
  animation-delay: 0.12s;
}

.js .intro__note > :nth-child(1) {
  animation-delay: 0.3s;
}

.js .intro__note > :nth-child(2) {
  animation-delay: 0.42s;
}

.js .intro__photo img {
  animation: settle 2.4s var(--ease) both;
}

/* Photos standing in an arch, on the ground line (about page) */
.arch {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 4.85;
  border-radius: 999px 999px 0 0;
}

.arch::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  border-bottom: 0;
  border-radius: inherit;
  transform: translate(16px, -16px);
  z-index: -1;
}

.arch__clip {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons in a row (events page first screen) */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}

/* ============================================
   PAGE HEAD (INNER PAGES)
   ============================================ */

.page-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) calc(clamp(2.5rem, 2rem + 3vw, 4.5rem) + var(--arc));
}

.page-head h1 {
  max-width: 14em;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.page-head .lead {
  max-width: 40rem;
  margin-top: var(--space-5);
}

/* ============================================
   DISCLOSURES
   ============================================ */

.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-5);
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--t-base);
}

.more[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.more[open] > summary {
  margin-bottom: var(--space-5);
}

/* once opened, the text simply continues */
.more--inline[open] > summary {
  display: none;
}

.more--inline[open] > .more__body {
  margin-top: 1.1em;
}

/* ============================================
   LIST OF REASONS
   ============================================ */

.reasons {
  --echo-fill: var(--sand);
  padding: clamp(1.5rem, 1.1rem + 2.4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--milk);
}

.ticks {
  display: grid;
  column-gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

@media (min-width: 760px) {
  .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ticks li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.9rem;
  border-bottom: 1px solid var(--hair);
  line-height: 1.5;
  color: var(--ink);
}

/* a small ring, like the mark in the logo */
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 11px;
  height: 11px;
  border: 1px solid var(--leaf);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2.5px var(--milk), inset 0 0 0 6px var(--leaf);
}

.ticks--single {
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .ticks--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================
   FUSED CARD — photo and words in one outline
   ============================================ */

.fused {
  --echo-fill: var(--sage);
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--sand);
  overflow: hidden;
}

@media (min-width: 900px) {
  .fused {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .fused--flip .fused__photo {
    order: 2;
    border-right: 0;
    border-left: 1px solid var(--ink);
  }
}

.fused__photo {
  min-height: 260px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

@media (min-width: 900px) {
  .fused__photo {
    border-bottom: 0;
    border-right: 1px solid var(--ink);
  }
}

.fused__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fused__body {
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
}

/* words only: on wide screens the heading sits left, the text right */
.fused--text {
  display: block;
}

@media (min-width: 900px) {
  .fused--text .fused__body {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 1rem + 4vw, 5.5rem);
    align-items: start;
  }

  .fused--text .fused__body > .label,
  .fused--text .fused__body > h2 {
    grid-column: 1;
  }

  .fused--text .fused__body > .prose {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

.fused--sage {
  --echo-fill: var(--sand);
  background: var(--sage);
}

.fused--milk {
  --echo-fill: var(--sage);
  background: var(--milk);
}


/* Short lines, one thought per line */
.lines {
  display: grid;
  gap: 0.2rem;
  margin-block: var(--space-5);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.95rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
}

/* ============================================
   ABOUT (ARCH PHOTO + TEXT)
   ============================================ */

.about {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }

  .about--top {
    align-items: start;
  }
}

.about .arch {
  width: min(100%, 380px);
  margin-inline: auto;
  border-bottom: 1px solid var(--ink);
}

.about__name {
  margin-top: var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: var(--ink);
}

/* format and price cards on a sky-white block: green echo instead of sky */
.block--sand .format,
.block--sand .intensive {
  --echo-fill: var(--sage);
}

.block--sand .format:nth-child(2) {
  --echo-fill: var(--sage-deep);
}

.block--sand .intensive__option {
  background: var(--milk);
}

.about__role {
  margin-top: 0.9rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   FORMATS & PRICES
   ============================================ */

.formats {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 940px) {
  .formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.format {
  --echo-fill: var(--sand);
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--milk);
}

.format:nth-child(2) {
  --echo-fill: var(--sage-deep);
  background: var(--sage);
}

.format h3 {
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
}

.format__price {
  margin-top: var(--space-5);
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 2.8rem + 2vw, 4.6rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.format__price small {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.format__text:empty {
  margin-top: 0;
}

.format__text {
  flex: 1;
  margin-top: var(--space-5);
  font-size: 0.98rem;
}

.format__text p + p {
  margin-top: 0.9em;
}

.format .go {
  align-self: flex-start;
  margin-top: var(--space-5);
  font-size: 1.3rem;
}

.formats-note {
  max-width: 38rem;
  margin: var(--space-8) auto 0;
  text-align: center;
}

.formats-note .btn {
  margin-top: var(--space-6);
}


/* format pages: subtitle and the plain facts under each format */
.format__sub {
  margin-top: 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted);
}

.format__facts {
  display: grid;
  gap: 0.8rem;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
}

.format__facts dt {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.format__facts dd {
  margin: 0;
  color: var(--ink);
}

@media (min-width: 900px) {
  .formats--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* the price, right under the title of each format */
.format__cost {
  margin-top: var(--space-5);
}

.format__cost .format__price {
  margin-top: 0;
  font-size: clamp(2.8rem, 2.3rem + 1.6vw, 3.8rem);
}

.format__cost .format__price--text {
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.7rem);
}

.format__per {
  max-width: 30rem;
  margin-top: 0.55rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

.format__price--text {
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.7rem);
  font-style: italic;
  line-height: 1.05;
}

/* intensives: one wide card with its two options */
.intensive {
  --echo-fill: var(--sand);
  display: grid;
  gap: var(--space-6) clamp(2rem, 1rem + 4vw, 4rem);
  margin-top: var(--space-6);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--milk);
}

@media (min-width: 980px) {
  .intensive {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .intensive__note {
    grid-column: 1 / -1;
  }
}

.intensive h3 {
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.1rem);
  font-style: italic;
}

.intensive .format__text {
  margin-top: var(--space-5);
}

.intensive__options {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

@media (min-width: 640px) {
  .intensive__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.intensive__option {
  padding: var(--space-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sand);
  font-size: 0.95rem;
}

.intensive__option h4 {
  margin-bottom: var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.intensive__option h4 span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
}

.intensive__option p + p {
  margin-top: 0.8em;
}

.intensive__note {
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
  font-size: var(--fs-small);
  color: var(--ink);
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* wide screens: all four side by side, in one row */
@media (min-width: 1200px) {
  .reviews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .reviews .review {
    padding: 1.5rem;
  }

  .reviews .review blockquote {
    font-size: 1.25rem;
  }
}

.review {
  --echo-fill: var(--sage);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--milk);
}

.review blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.review .more > summary {
  font-size: 1.15rem;
}

.review .more__body {
  font-size: 0.96rem;
  line-height: 1.65;
}

.review figcaption {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--muted);
}

.review figcaption strong {
  display: block;
  color: var(--ink);
}

/* ============================================
   CONTACT (FINAL BLOCK)
   ============================================ */

.contact {
  text-align: center;
}

.contact h2 {
  max-width: 13em;
  margin-inline: auto;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.contact__text {
  max-width: 34rem;
  margin: var(--space-6) auto 0;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background var(--t-fast);
}

.channels a:hover {
  background: var(--milk);
}

.channels .icon {
  font-size: 0.95rem;
}

/* Contact cards (contacts page) */
.channel-cards {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .channel-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.channel-card {
  --echo-fill: var(--milk);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--milk);
  color: var(--text);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.channel-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--echo-fill), 3px 3px 0 1px var(--ink);
}

.channel-card .icon {
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
  color: var(--ink);
}

.channel-card strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.channel-card span {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================
   FOOTER — the one dark band
   ============================================ */

.footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--forest);
  color: rgba(246, 249, 251, 0.72);
  font-size: var(--fs-small);
}

.footer a {
  color: var(--milk);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6) var(--space-7);
}

.footer .wordmark {
  font-size: 1.9rem;
}

.footer .glyph {
  stroke: var(--milk);
}

.footer__motto {
  margin-top: var(--space-4);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--milk);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.footer__nav a {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.footer__nav a:hover {
  border-bottom-color: var(--milk);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(246, 249, 251, 0.24);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================
   QUICK CONTACT BUTTONS
   Small, bottom-right, appear after the first screen.
   ============================================ */

.quick {
  position: fixed;
  right: clamp(0.9rem, 0.5rem + 1.5vw, 1.5rem);
  bottom: clamp(0.9rem, 0.5rem + 1.5vw, 1.5rem);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear 0.35s;
}

.quick.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s;
}

.is-locked .quick {
  opacity: 0;
  visibility: hidden;
}

.quick a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--milk);
  box-shadow: 3px 3px 0 0 var(--sage), 3px 3px 0 1px var(--ink);
  color: var(--ink);
  font-size: 1.15rem;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.quick a:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--sage), 1px 1px 0 1px var(--ink);
}

/* ============================================
   SMALL SCREENS
   ============================================ */

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   QUIET MOTION
   Small, slow, and only once — nothing loops except
   the breathing echo and the sound waves.
   ============================================ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }

  to {
    transform: none;
  }
}

@keyframes echo-breathe {
  from {
    transform: translate(16px, -16px);
  }

  to {
    transform: translate(10px, -10px);
  }
}

/* Photos settle into their frames as they come into view */
.js .reveal .arch__clip img,
.js .reveal .fused__photo img,
.js .reveal.arch img {
  transform: scale(1.06);
  transition: transform 2.2s var(--ease);
}

.js .reveal.is-visible .arch__clip img,
.js .reveal.is-visible .fused__photo img,
.js .reveal.is-visible.arch img {
  transform: none;
}

/* Wave lines draw themselves when their heading appears */
.js .reveal .wave-word path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease) 0.35s;
}

.js .reveal.is-visible .wave-word path {
  stroke-dashoffset: 0;
}

/* Groups of cards arrive one after another; their glyphs are drawn in */
.js .stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.js .stagger .glyph > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 250ms);
}

.js .stagger.is-visible .glyph > * {
  stroke-dashoffset: 0;
}

/* Opened text fades in instead of popping */
.more[open] > :not(summary) {
  animation: rise 0.5s var(--ease) both;
}

/* ============================================
   EVENTS PAGE — «Встречи и мероприятия»
   ============================================ */

/* a link to one event shows only that event (set in <head>, before the list can flash) */
.event-view [data-listing] {
  display: none;
}

.event-view #event {
  display: block !important;
}

/* First screen: words on one side, a real master class on the other */
.ev-head__grid {
  display: grid;
  gap: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 920px) {
  .ev-head__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ev-head__sub {
  margin-top: var(--space-4);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
}

.ev-head .lead + .lead {
  margin-top: 1em;
}

.ev-banner {
  --echo-fill: var(--sage);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--sand);
  overflow: hidden;
}

.ev-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 920px) {
  .ev-banner {
    aspect-ratio: 4 / 4.6;
    max-height: calc(100vh - var(--header-h) - 3rem);
    width: 100%;
    justify-self: end;
  }
}

/* Three kinds of meetings */
.ev-kinds {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .ev-kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ev-kind {
  --echo-fill: var(--sage-deep);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--milk);
  overflow: hidden;
}

.ev-kind__photo {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.ev-kind__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.ev-kind:hover .ev-kind__photo img {
  transform: scale(1.03);
}

.ev-kind__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}

.ev-kind h3 {
  font-size: clamp(1.55rem, 1.35rem + 0.6vw, 1.9rem);
  font-style: italic;
}

.ev-kind p {
  font-size: 0.98rem;
}

.ev-kind .go {
  align-self: flex-start;
  margin-top: auto;
  font-size: 1.25rem;
}

/* tablets: photo beside the words, so the three cards stay short */
@media (min-width: 600px) and (max-width: 899.98px) {
  .ev-kind {
    flex-direction: row;
  }

  .ev-kind__photo {
    flex: none;
    width: 38%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--ink);
  }
}

/* Upcoming meetings */
.ev-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
}

.ev-filter button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-size: inherit;
  cursor: pointer;
}

.ev-list {
  display: grid;
  gap: var(--space-6);
}

.js .ev-list > * {
  animation: rise 0.7s var(--ease) both;
}

.ev-card {
  --echo-fill: var(--sand);
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--milk);
  overflow: hidden;
}

@media (min-width: 800px) {
  .ev-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.ev-card__photo {
  display: block;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

@media (min-width: 800px) {
  .ev-card__photo {
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--ink);
  }
}

.ev-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-card__body {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.75rem);
}

.ev-cat {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

.ev-card h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
}

.ev-card h3 a {
  color: inherit;
}

.ev-card__summary {
  margin-top: var(--space-5);
}

.ev-card .btn {
  margin-top: var(--space-6);
}

/* date, time, place, price — small labels over plain values */
.ev-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 0.9rem 1.25rem;
  margin-top: var(--space-5);
  padding-block: var(--space-4);
  border-block: 1px solid var(--hair);
}

.ev-facts dt {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

.ev-facts dd {
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
}

.ev-empty {
  --echo-fill: var(--sand);
  max-width: 46rem;
  padding: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--milk);
}

.ev-empty p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
}

.ev-empty .go {
  margin-top: var(--space-5);
  font-size: 1.3rem;
}

/* Finished meetings: a quiet list under the schedule */
.ev-archive {
  margin-top: var(--space-7);
}

.ev-archive ul {
  max-width: 46rem;
  border-top: 1px solid var(--hair);
}

.ev-archive li {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--hair);
}

@media (min-width: 600px) {
  .ev-archive li {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
}

.ev-archive li span {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* One event in detail */
.ev-detail-block {
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) calc(var(--section-y) + var(--arc));
}

.ev-back {
  display: inline-block;
  margin-bottom: var(--space-6);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ev-detail {
  display: grid;
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .ev-detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  }

  .ev-jump {
    display: none !important;
  }
}

.ev-detail__photo {
  --echo-fill: var(--sage);
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ev-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-detail__title {
  margin-top: 0.6rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.ev-detail__title:focus {
  outline: none;
}

.ev-when {
  margin-top: var(--space-4);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--ink);
}

.ev-detail__h {
  margin: var(--space-7) 0 var(--space-4);
  font-size: clamp(1.7rem, 1.45rem + 0.9vw, 2.2rem);
}

.ev-jump {
  margin-top: var(--space-6);
}

/* Sign-up card */
.ev-signup {
  --echo-fill: var(--sage);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--sand);
}

.ev-signup .ev-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.ev-signup__note {
  margin-top: var(--space-6);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--ink);
}

.ev-signup .btn {
  --echo-fill: var(--milk);
}

.ev-signup__actions {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.ev-signup > .btn {
  margin-top: var(--space-6);
}

/* Telegram: the channel announces, the chat talks */
.tg-cards {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 820px) {
  .tg-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tg-card {
  --echo-fill: var(--sage-deep);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--milk);
}

.tg-card:nth-child(2) {
  background: var(--sand);
}

.tg-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.tg-card h3 {
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem);
  font-style: italic;
}

.tg-list {
  display: grid;
  gap: 0.3rem;
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tg-list li {
  position: relative;
  padding-left: 1.2rem;
}

.tg-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--leaf);
  border-radius: 50%;
}

.tg-card .btn {
  margin-top: auto;
}

/* phones: long button labels stay on one line */
@media (max-width: 480px) {
  .tg-card .btn,
  .ev-card .btn {
    padding-inline: 1.2rem;
    letter-spacing: 0.14em;
  }
}

/* First screen of the events page arrives like the home page: quietly, in order */
.js .ev-head__text > * {
  animation: rise 0.9s var(--ease) both;
}

.js .ev-head__text > :nth-child(2) {
  animation-delay: 0.08s;
}

.js .ev-head__text > :nth-child(3) {
  animation-delay: 0.16s;
}

.js .ev-head__text > :nth-child(n + 4) {
  animation-delay: 0.24s;
}

.js .ev-banner img {
  animation: settle 2.4s var(--ease) both;
}

/* Home: a short card that leads to the events page */
.teaser {
  --echo-fill: var(--sage);
  display: grid;
  gap: var(--space-5) clamp(2rem, 1rem + 5vw, 6rem);
  align-items: end;
  padding: clamp(1.75rem, 1.2rem + 2.6vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--sand);
}

@media (min-width: 900px) {
  .teaser {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* on the sky-white block the card turns white */
.block--sand .teaser {
  --echo-fill: var(--sage);
  background: var(--milk);
}

.teaser .label {
  margin-bottom: var(--space-4);
}

.teaser .btn {
  --echo-fill: var(--milk);
}

/* Home: the next meetings under the events card (hidden while nothing is planned) */
.home-events {
  margin-top: var(--space-7);
}

.home-events h3 {
  margin-bottom: var(--space-5);
  font-size: clamp(1.6rem, 1.4rem + 0.7vw, 2rem);
}

.home-events__list {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .home-events__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-event {
  --echo-fill: var(--sand);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--milk);
  color: var(--text);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.block--sand .home-event {
  --echo-fill: var(--sage);
}

.home-event:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--echo-fill), 3px 3px 0 1px var(--ink);
}

.home-event strong {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.home-event__when {
  font-size: var(--fs-small);
  color: var(--muted);
}
