/* =========================================================
   MSMM — Landing page styles
   ========================================================= */

:root {
  /* palette */
  --cream:        #fdf4f1;
  --cream-2:      #fbeeeb;
  --rose-50:      #fceef1;
  --rose-100:     #f9dfe4;
  --rose-200:     #f3c9d1;
  --rose-accent:  #dd8497;   /* dusty rose — primary buttons */
  --rose-dark:    #c96c82;
  --pink-hot:     #ec4c9c;   /* accent from "нейросети" block */
  --pink-hot-2:   #f06ab0;
  --ink:          #2a2320;
  --ink-soft:     #7a6d68;
  --line:         #f0d8dd;
  --white:        #ffffff;

  /* type */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Montserrat", "Segoe UI", sans-serif;
  --gara:  "Cormorant Garamond", Georgia, serif;

  /* layout */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 60px);
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(180, 90, 110, .45);
  --shadow-sm: 0 12px 30px -18px rgba(180, 90, 110, .4);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(72px, 10vw, 130px); }
[id] { scroll-margin-top: 90px; }

/* ---------- shared type ---------- */
.eyebrow,
.section__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.section__eyebrow { text-align: center; margin-bottom: 14px; }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  text-align: center;
  color: var(--ink);
  margin-bottom: clamp(40px, 6vw, 70px);
}
.section__title--left { text-align: left; margin-bottom: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 40px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--primary {
  background: var(--rose-accent);
  color: var(--white);
  padding: 17px 30px;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--rose-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -16px rgba(201, 108, 130, .7);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn--primary svg { transition: transform .3s var(--ease); }
.btn--pill {
  background: var(--rose-accent);
  color: var(--white);
  padding: 12px 26px;
  font-size: 12px;
}
.btn--pill:hover { background: var(--rose-dark); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 20px;
}
.header.is-scrolled {
  background: rgba(253, 244, 241, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -22px rgba(180, 90, 110, .6);
  padding-block: 12px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--ink);
}
.logo--light { color: var(--white); }

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--rose-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--rose-dark); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 170px);
  padding-bottom: clamp(60px, 9vw, 110px);
  background:
    radial-gradient(120% 90% at 80% 20%, var(--rose-100) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  position: relative;
}
.hero .eyebrow { margin-bottom: 26px; }
.hero .eyebrow span { color: var(--rose-200); margin-inline: 4px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(84px, 15vw, 190px);
  line-height: .9;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero__lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero__sub {
  max-width: 380px;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* hero visual */
.hero__visual { position: relative; align-self: stretch; min-height: 380px; }
.hero__arch {
  position: absolute;
  inset: 0 4% 12% auto;
  width: 78%;
  background: linear-gradient(160deg, var(--rose-200), var(--rose-100));
  border-radius: 220px 220px 24px 24px;
  box-shadow: var(--shadow);
}
.hero__photo {
  position: absolute;
  right: 0; bottom: 0;
  width: 92%;
  aspect-ratio: 420 / 380;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7e6e4, #f0d5d3);
  box-shadow: var(--shadow);
}
.hero__scene { width: 100%; height: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__side {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose-dark);
  text-align: center;
  padding-left: 20px;
  border-left: 1px solid var(--rose-200);
}

/* =========================================================
   ABOUT / WHY ME
   ========================================================= */
.about {
  background: linear-gradient(180deg, var(--rose-100) 0%, var(--rose-50) 100%);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.feature { text-align: center; }
.feature__icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--rose-accent);
  background: rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.feature:hover .feature__icon { transform: translateY(-6px); background: var(--white); }
.feature__icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--rose-dark); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.feature__text { font-size: 14.5px; color: var(--ink-soft); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--rose-100);
  display: grid; place-items: center;
  margin-bottom: 26px;
}
.card__icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--rose-dark); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.card__text { font-size: 15px; color: var(--ink-soft); margin-bottom: 26px; }
.card__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-dark);
  display: inline-flex; gap: 8px;
}
.card__link span { transition: transform .3s var(--ease); }
.card__link:hover span { transform: translateX(6px); }

/* =========================================================
   PORTFOLIO / NEURAL NETWORKS
   ========================================================= */
.portfolio {
  background:
    radial-gradient(80% 60% at 90% 0%, var(--rose-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--rose-50));
}
.portfolio__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  margin-bottom: clamp(46px, 6vw, 70px);
}
.portfolio__title {
  font-family: var(--serif);
  font-weight: 700;
  line-height: .92;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.portfolio__title-1 { font-size: clamp(38px, 6vw, 68px); }
.portfolio__title-2 {
  font-size: clamp(38px, 6vw, 68px);
  color: var(--pink-hot);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sparkle {
  width: clamp(24px, 3vw, 38px); height: clamp(24px, 3vw, 38px);
  fill: var(--pink-hot);
  flex: none;
}
.portfolio__intro { border-left: 2px solid var(--pink-hot); padding-left: 24px; }
.portfolio__intro-text { font-size: clamp(17px, 2vw, 21px); color: var(--ink); margin-bottom: 10px; }
.portfolio__nets {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--pink-hot);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.work { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.work__img {
  aspect-ratio: 3 / 4;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:hover .work__img { transform: translateY(-8px); box-shadow: var(--shadow); }
.work__img img { width: 100%; height: 100%; object-fit: cover; }
.work__img span {
  font-family: var(--serif);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  padding: 10px;
  color: rgba(255, 255, 255, .92);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.work figcaption { font-size: 13px; color: var(--ink-soft); position: relative; padding-left: 16px; }
.work figcaption::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--pink-hot);
}

/* real images — no placeholder backgrounds needed */

/* =========================================================
   COPYWRITING MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(42, 35, 32, 0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(180, 90, 110, .6);
  padding: clamp(30px, 4vw, 50px);
  transform: translateY(30px);
  transition: transform .45s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--rose-100);
  display: grid; place-items: center;
  transition: background .3s, transform .3s;
  z-index: 10;
}
.modal__close:hover { background: var(--rose-200); transform: rotate(90deg); }
.modal__close svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--rose-dark); stroke-width: 2;
  stroke-linecap: round;
}

.modal__icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--rose-100);
  display: grid; place-items: center;
  margin: 0 auto 22px;
}
.modal__icon svg {
  width: 34px; height: 34px;
  fill: none; stroke: var(--rose-dark); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.modal__title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}
.modal__subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 34px;
}

.modal__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.copy-detail {
  background: var(--cream-2);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.copy-detail:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.copy-detail__icon { font-size: 36px; margin-bottom: 14px; }
.copy-detail h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ink);
}
.copy-detail p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.modal__cta { display: flex; justify-content: center; margin: 0 auto; }

/* =========================================================
   AI VIDEO
   ========================================================= */
.terezi {
  background: linear-gradient(180deg, var(--rose-50), var(--cream));
}
.terezi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

/* demo: фото → стрелка → видео */
.terezi__demo {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  position: relative;
}

.terezi__photo-wrap {
  width: 220px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.terezi__photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--white);
  transition: transform .4s var(--ease);
}
.terezi__photo:hover { transform: scale(1.06); }
.terezi__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-hot);
}

/* розовая стрелка */
.terezi__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-inline: -4px;
  position: relative;
  z-index: 2;
}
.terezi__arrow svg {
  width: 90px;
  height: 50px;
}
.terezi__arrow-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink-hot);
  white-space: nowrap;
  background: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(236, 76, 156, .2);
}

/* видео */
.terezi__video-wrap {
  width: 220px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.terezi__video {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--pink-hot);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
  background: #000;
}
.terezi__video:hover { transform: scale(1.06); }
.terezi__video-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fceef1, #f9dfe4);
  border: 3px dashed var(--pink-hot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--pink-hot);
  transition: transform .4s var(--ease);
  cursor: pointer;
}
.terezi__video-placeholder:hover { transform: scale(1.06); }
.terezi__video-placeholder svg {
  width: 38px; height: 38px;
  opacity: .8;
}
.terezi__video-placeholder span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  padding-inline: 8px;
  opacity: .9;
}

/* info */
.terezi__info { display: flex; flex-direction: column; gap: 20px; }
.terezi__heading {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.terezi__desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.terezi__links {
  display: grid;
  gap: 12px;
}
.terezi__links li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(180, 90, 110, .08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.terezi__links li:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(180, 90, 110, .16);
}
.terezi__links svg {
  width: 18px; height: 18px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--pink-hot); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.terezi__links a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  transition: color .25s;
}
.terezi__links a:hover { color: var(--pink-hot); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--cream); }
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 34px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--rose-accent);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step__num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--rose-200);
  display: block;
  margin-bottom: 14px;
}
.step__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step__text { font-size: 14.5px; color: var(--ink-soft); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: linear-gradient(180deg, var(--rose-50), var(--rose-100));
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.contact__info .section__eyebrow { text-align: left; }
.contact__lead { font-size: 16px; color: var(--ink-soft); margin-bottom: 34px; max-width: 420px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.contact__list svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--rose-dark); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact__list a { transition: color .25s; }
.contact__list a:hover { color: var(--rose-dark); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  transition: border-color .25s, background .25s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #c7b6b1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-accent);
  background: var(--white);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #e0698a; }
.form__status { font-size: 14px; min-height: 20px; text-align: center; }
.form__status.is-ok { color: #3f9d6a; }
.form__status.is-err { color: #d8556f; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #2b2320;
  color: rgba(255, 255, 255, .85);
  padding-block: clamp(50px, 6vw, 74px);
}
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__tag { font-family: var(--gara); font-size: 20px; color: rgba(255, 255, 255, .8); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.5vw, 30px); }
.footer__nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); transition: color .25s;
}
.footer__nav a:hover { color: var(--pink-hot-2); }
.footer__copy { font-size: 12.5px; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .terezi__grid { grid-template-columns: 1fr; }
  .modal__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* mobile nav */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: var(--cream);
    box-shadow: -20px 0 60px -30px rgba(180, 90, 110, .6);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { font-size: 16px; }
  .nav__cta { display: none; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    z-index: 95;
  }
  .burger span {
    display: block;
    width: 24px; height: 2px;
    margin-inline: auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 340px; order: -1; margin-bottom: 20px; }
  .hero__side { display: none; }

  .portfolio__head { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .terezi__demo { flex-direction: column; gap: 16px; }
  .terezi__arrow svg { transform: rotate(90deg); width: 50px; height: 90px; }
}

@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: 1fr; }
  .modal__cards { grid-template-columns: 1fr; }
  .modal { padding: 24px 18px; }
}

@media (max-width: 420px) {
  .about__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
}
