/* ============================================================
   ALMA FIALLA — Чепетова Фиалла · light editorial
   mobile-first → tablet (768) → desktop (1024 / 1440)
   ============================================================ */

:root {
  /* palette — warm ivory & espresso */
  --bg: #f8f4ee;
  --surface: #fffdfa;
  --cream: #f1e9dd;
  --ink: #2b2520;
  --ink-soft: #6b6157;
  --rose: #a9836f;
  --rose-deep: #8a6453;
  --gold: #c2a878;
  --border: #e6dccd;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --maxw-narrow: 760px;
  --pad: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(43, 37, 32, 0.04), 0 4px 14px rgba(43, 37, 32, 0.05);
  --shadow-md: 0 8px 22px rgba(43, 37, 32, 0.08), 0 22px 60px rgba(43, 37, 32, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 66px;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: var(--rose);
  color: #fff;
}
a {
  color: inherit;
}
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow {
  max-width: var(--maxw-narrow);
}
.block {
  padding-block: 64px;
}
.block--alt {
  background: linear-gradient(180deg, var(--bg), #fbf7f1);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  translate: -50% -160%;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--pill);
  text-decoration: none;
  font-size: 14px;
  transition: translate 0.25s var(--ease);
}
.skip-link:focus {
  translate: -50% 0;
}

/* shared heads */
.block__head {
  text-align: center;
  margin-bottom: 36px;
}
.block__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1.05;
}
.js .block__head .block__title::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.25s;
}
.js .block__head.is-visible .block__title::after {
  transform: scaleX(1);
}
.block__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--gold);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --shine: rgba(255, 255, 255, 0.3);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.12s var(--ease);
}
/* shine: a soft band that sweeps across the button, under the label */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn.is-shining::after {
  animation: shine 0.9s var(--ease);
}
/* the hero CTA glints on its own every few seconds */
.hero .btn--light::after {
  animation: shine-loop 5.5s ease-in-out 1.8s infinite;
}
@keyframes shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes shine-loop {
  0% { transform: translateX(-120%); }
  22%,
  100% { transform: translateX(120%); }
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--rose-deep);
  box-shadow: var(--shadow-md);
}
.btn--light {
  --shine: rgba(194, 168, 120, 0.45);
  background: var(--surface);
  color: var(--ink);
}
.btn--light:hover,
.btn--light:focus-visible {
  background: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn--block {
  display: flex;
  width: 100%;
  max-width: 340px;
  margin: 30px auto 0;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}
.header.is-solid {
  background: rgba(248, 244, 238, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.header__bar {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--ink);
}
.nav {
  display: none;
}
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rose-deep);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  scale: 1 1;
}

/* Burger — two unequal lines morphing to X */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  /* pull the 46px hit area out so the visible lines sit on the same gutter as the wordmark */
  margin-right: -10px;
}
.burger__box {
  position: relative;
  display: block;
  width: 26px;
  height: 12px;
}
.burger__box span {
  position: absolute;
  left: 0;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.32s var(--ease), width 0.32s var(--ease),
    top 0.32s var(--ease), opacity 0.2s var(--ease);
}
.burger__box span:nth-child(1) {
  top: 0;
  width: 26px;
}
.burger__box span:nth-child(2) {
  top: 10px;
  width: 17px;
}
.burger.is-active .burger__box span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.burger.is-active .burger__box span:nth-child(2) {
  top: 5px;
  width: 26px;
  transform: rotate(-45deg);
}

/* ============================================================
   Fullscreen overlay menu
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--pad) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.overlay__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(30px, 6vh, 56px);
  width: 100%;
  max-width: var(--maxw);
  height: 100%;
  margin-inline: auto;
  /* .overlay already provides the side gutter; no second one from .container */
  padding-inline: 0;
}
.overlay__nav {
  display: flex;
  flex-direction: column;
}
.overlay__link {
  padding-block: 14px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 13vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  translate: 0 16px;
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}
.overlay.is-open .overlay__link {
  animation: rise 0.5s var(--ease) forwards;
}
.overlay.is-open .overlay__link:nth-child(1) { animation-delay: 0.06s; }
.overlay.is-open .overlay__link:nth-child(2) { animation-delay: 0.14s; }
.overlay.is-open .overlay__link:nth-child(3) { animation-delay: 0.22s; }
.overlay__link:hover {
  color: var(--rose-deep);
  padding-left: 10px;
}
.overlay__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  opacity: 0;
}
.overlay.is-open .overlay__foot {
  animation: rise 0.5s var(--ease) 0.3s forwards;
}
.overlay__contacts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-left: 0;
}
.overlay__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.overlay__contacts a:hover {
  color: var(--rose-deep);
}
@keyframes rise {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ============================================================
   To-top
   ============================================================ */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease),
    visibility 0.3s, background 0.2s, color 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.to-top:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================
   Hero — fullscreen portrait + overlaid name
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #f3f3f4; /* matches the studio wall at the top of the photo */
}
@media (max-width: 1023px) {
  /* lower the portrait so the head clears the wordmark */
  .hero .hero__img {
    top: 44px;
    height: calc(100% - 44px);
  }
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* soft ivory haze under the wordmark so it never sits on the hair */
    linear-gradient(
      to bottom,
      rgba(248, 244, 238, 0.82) 0%,
      rgba(248, 244, 238, 0.45) 9%,
      rgba(248, 244, 238, 0) 18%
    ),
    linear-gradient(
      to top,
      rgba(43, 37, 32, 0.74) 0%,
      rgba(43, 37, 32, 0.32) 30%,
      rgba(43, 37, 32, 0) 56%
    );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(56px, 12vh, 120px);
  color: #fff;
}
.hero__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero__name {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 12.5vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(43, 37, 32, 0.35);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}
.hero__textlink {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease);
}
.hero__textlink:hover {
  border-color: #fff;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--pill);
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  translate: -50% 0;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; translate: -50% -4px; }
  35% { opacity: 1; }
  70% { opacity: 0; translate: -50% 14px; }
  100% { opacity: 0; }
}

/* ============================================================
   Philosophy / manifesto
   ============================================================ */
.manifesto {
  padding-block: 72px;
  text-align: center;
}
.manifesto__quote {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 5.4vw, 2.3rem);
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.manifesto__quote::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 18px;
}
.manifesto__sign {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* ============================================================
   Services — price with dotted leaders
   ============================================================ */
.price {
  display: flex;
  flex-direction: column;
}
.price__row {
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
}
.price__row:first-child {
  border-top: 1px solid var(--border);
}
.price__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.price__dots {
  flex: 1;
  align-self: center;
  border-bottom: 1.5px dotted var(--border);
}
.price__value {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price__desc {
  margin-top: 6px;
  max-width: 46ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============================================================
   Education — numbered accordions
   ============================================================ */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.acc[open] {
  box-shadow: var(--shadow-md);
  border-color: #d9cdba;
}
.acc__sum {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title plus"
    "price plus";
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}
.acc__sum::-webkit-details-marker {
  display: none;
}
.acc__title {
  grid-area: title;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.16;
}
.acc__price {
  grid-area: price;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rose-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.acc__plus {
  grid-area: plus;
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.acc[open] .acc__plus {
  transform: rotate(180deg);
}
.acc__plus::before,
.acc__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  border-radius: 2px;
}
.acc__plus::before {
  width: 16px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}
.acc__plus::after {
  width: 1.6px;
  height: 16px;
  transform: translate(-50%, -50%) scaleY(1);
  transition: transform 0.3s var(--ease);
}
.acc[open] .acc__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.acc[open] .acc__body {
  animation: acc-in 0.5s var(--ease) 0.05s both;
}
.acc.is-closing .acc__body {
  animation: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
@keyframes acc-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.acc__body {
  padding: 4px 22px 26px;
}
.acc__body > * + * {
  margin-top: 14px;
}
.acc__body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.acc__body .intro {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.48;
  color: var(--ink);
}
.acc__h {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* Lists — one consistent marker set */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding-left: 24px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--rose);
}
.list--num {
  counter-reset: step;
}
.list--num li {
  counter-increment: step;
  padding-left: 28px;
}
.list--num li::before {
  content: counter(step) ".";
  inset: 0 auto auto 0;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--rose-deep);
}

/* Sub-heading inside body (e.g. "1 день") */
.acc__sub {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.acc__body .acc__sub + .list {
  margin-top: 0;
}

/* Highlighted note (e.g. бонус) */
.acc__note {
  padding: 14px 18px;
  background: var(--cream);
  border-left: 2px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
  color: var(--ink) !important;
}
.acc__note b {
  color: var(--rose-deep);
}

.tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.tag--multi {
  flex-direction: column;
  gap: 12px;
}
.tag__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.tag--multi .tag__row + .tag__row {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tag__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag__value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Contacts
   ============================================================ */
.contacts {
  padding-left: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.contacts li + li {
  border-top: 1px solid var(--border);
}
.contact {
  --brand: var(--rose-deep);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s var(--ease);
}
.contact[data-social="wa"] { --brand: #25d366; }
.contact[data-social="tg"] { --brand: #2aabee; }
.contact[data-social="inst"] { --brand: #c13584; }
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: var(--rose-deep);
  background: var(--cream);
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.contact__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
.contact__handle {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.contact__arrow {
  font-size: 18px;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}
.contact:active {
  background: #faf6f0;
}
@media (hover: hover) {
  .contact:hover {
    background: #faf6f0;
  }
  .contact:hover .contact__icon {
    color: #fff;
    background: var(--brand);
  }
  .contact:hover .contact__arrow {
    color: var(--ink);
    transform: translate(2px, -2px);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding-block: 48px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.footer__note {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
.footer__copy {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer__legal {
  max-width: 34ch;
  margin: 14px auto 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
/* footnote mark for Meta-owned services */
.footmark {
  margin-left: 1px;
  font-family: var(--sans);
  font-size: 0.7em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  color: var(--rose-deep);
}
.footer__dev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 58px;
  padding: 7px 14px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.footer__dev svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}
.footer__dev:hover,
.footer__dev:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface);
}
.footer__dev:hover svg {
  transform: translateX(3px);
}
.footer__dev-handle {
  color: var(--rose-deep);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ============================================================
   Tablet (≥768)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --pad: 40px;
    --header-h: 78px;
  }
  .block {
    padding-block: 96px;
  }
  .burger {
    display: none;
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .manifesto {
    padding-block: 100px;
  }
  .acc__sum {
    padding: 26px 30px;
    column-gap: 22px;
  }
  .acc__title {
    font-size: 1.55rem;
  }
  .acc__body {
    padding: 4px 30px 32px;
  }
  .price__name {
    font-size: 1.8rem;
  }
  .contact {
    padding: 18px 30px;
  }
  .contact__name {
    font-size: 1.4rem;
  }
}

/* ============================================================
   Desktop (≥1024)
   ============================================================ */
@media (min-width: 1024px) {
  .block {
    padding-block: 120px;
  }
  .hero__content {
    padding-bottom: clamp(72px, 12vh, 140px);
  }
  .acc:not([open]) .acc__sum:hover {
    background: #faf6f0;
  }
  .acc__sum {
    transition: background 0.25s var(--ease);
  }
}

@media (min-width: 1440px) {
  :root {
    --maxw: 1240px;
  }
}

/* ============================================================
   Scroll reveal + hero life
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* staggered children */
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}
.js .reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.js .reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* hero entrance + slow zoom */
.js .hero__img {
  animation: heroZoom 9s var(--ease) both;
}
.js .hero__content > * {
  opacity: 0;
  animation: heroRise 0.9s var(--ease) both;
}
.js .hero__role { animation-delay: 0.15s; }
.js .hero__name { animation-delay: 0.28s; }
.js .hero__actions { animation-delay: 0.45s; }
/* name appears letter by letter (spans added by script.js) */
.js .hero__name.is-split {
  opacity: 1;
  animation: none;
}
.hero__word {
  display: inline-block;
  white-space: nowrap;
}
.hero__name .ch {
  display: inline-block;
  animation: letter-in 0.9s var(--ease) both;
  animation-delay: calc(0.3s + var(--i) * 45ms);
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(0.3em); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* manifesto words darken as the quote scrolls through the screen */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .manifesto__quote .w {
      color: rgba(43, 37, 32, 0.22);
      animation: word-fill linear both;
      animation-timeline: view();
      animation-range: cover calc(26% + var(--p) * 34%) cover calc(33% + var(--p) * 34%);
    }
  }
}
@keyframes word-fill {
  to { color: var(--ink); }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-group > *,
  .js .hero__content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .js .hero__img {
    animation: none !important;
  }
  .hero__scroll span {
    animation: none;
  }
  .overlay.is-open .overlay__link,
  .overlay.is-open .overlay__foot {
    animation: none;
    opacity: 1;
    translate: 0 0;
  }
  .btn::after,
  .hero .btn--light::after {
    display: none;
  }
  .hero__name .ch,
  .acc[open] .acc__body {
    animation: none;
  }
  .js .block__head .block__title::after {
    transform: none;
    transition: none;
  }
  .acc__plus,
  .acc__plus::after {
    transition: none;
  }
  .btn:active,
  .contact:hover .contact__arrow,
  .to-top.is-visible {
    transform: none;
    translate: 0;
  }
}
