/* =========================================================
   Мариам — портфолио
   ========================================================= */

:root {
  --bg: #FBF7F0;
  --bg-soft: #F0E8DA;
  --ink: #332B24;
  --ink-soft: #4A3D32;
  --cream: #FDFBF6;
  --muted: #A08A7A;
  --muted-light: rgba(51, 43, 36, 0.56);
  --accent: #D96C3F;
  --accent-soft: #F2C4A0;
  --line: rgba(51, 43, 36, 0.14);
  --line-light: rgba(51, 43, 36, 0.16);
  --white: #FDFAF5;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "El Messiri", "Trebuchet MS", sans-serif;
  --serif: "Snell Roundhand", "Snell Roundhand W01", "Brush Script MT", cursive;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #c7c0b4;
  border: 3px solid var(--bg);
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
}

.section {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
  scroll-margin-top: 90px;
}

.section--dark {
  background: #F1E3F4;
  color: var(--ink);
}

/* ---------- Helpers ---------- */
.dot {
  color: var(--accent);
}

.h2 {
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.h2 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.h2--light {
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(38px, 5vw, 68px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head__index {
  color: var(--accent);
  font-weight: 600;
}

.section-head__label {
  white-space: nowrap;
}

.section-head__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head--light {
  color: var(--muted);
}

.section-head--light .section-head__line {
  background: var(--line);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 52px);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader__inner {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 34px;
}

.loader__name {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.loader__name sup {
  color: var(--accent);
  font-size: 0.45em;
  margin-left: 2px;
  top: -1.2em;
}

.loader__count {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.loader__count i {
  font-style: normal;
  font-size: 0.36em;
  color: var(--accent);
  margin-left: 4px;
}

.loader__bar {
  position: absolute;
  left: clamp(24px, 4vw, 52px);
  right: clamp(24px, 4vw, 52px);
  bottom: clamp(24px, 4vw, 52px);
  height: 1px;
  background: rgba(246, 242, 234, 0.18);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Grain / cursor / progress ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  pointer-events: none;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  display: none;
}

.cursor__dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(217, 108, 63, 0.55);
  transform: scale(1);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.cursor.is-hover .cursor__dot {
  transform: scale(3);
}

.cursor.is-hidden {
  opacity: 0;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor .case-card {
  cursor: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 901;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--accent);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--ink);
}

.btn--small {
  min-height: 46px;
  padding: 0 20px;
  font-size: 13px;
}

.link-underline {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}

.link-underline:hover::after {
  transform: scaleX(0);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  transition: background 0.4s var(--ease-soft), border-color 0.4s, padding 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
  height: 88px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  transition: height 0.4s var(--ease-soft);
}

.header.is-scrolled .header__inner {
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  line-height: 1;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.06em;
  padding-left: 6px;
  position: relative;
  transition: background 0.3s, transform 0.5s var(--ease);
}

.logo__mark i {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 7px;
  font-style: normal;
  color: var(--accent);
  transition: transform 0.6s var(--ease);
}

.logo:hover .logo__mark {
  background: var(--accent);
  transform: rotate(-8deg);
}

.logo:hover .logo__mark i {
  transform: rotate(140deg);
}

.logo__text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo__text small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav__link span {
  font-size: 8px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}

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

.nav__link.is-active span {
  color: var(--accent);
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger span:first-child {
  top: 18px;
}
.burger span:last-child {
  top: 25px;
}

.burger.is-open span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.burger.is-open span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--ink);
  color: var(--cream);
  padding: 110px clamp(20px, 6vw, 48px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.mobile-menu__nav a span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.mobile-menu__nav a:active {
  color: var(--accent);
}

.mobile-menu__foot {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: clamp(120px, 14vh, 170px) 0 clamp(50px, 7vh, 80px);
  display: flex;
  align-items: center;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 1.6vw, 24px);
  align-items: start;
}

.hero__eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(26px, 4vw, 54px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3da46a;
  box-shadow: 0 0 0 0 rgba(61, 164, 106, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 164, 106, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(61, 164, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 164, 106, 0); }
}

.hero__eyebrow-line {
  width: clamp(24px, 5vw, 70px);
  height: 1px;
  background: var(--line);
}

.hero__title {
  grid-column: 1 / span 8;
  font-size: clamp(58px, 8.9vw, 142px);
  line-height: 0.88;
  letter-spacing: -0.052em;
  font-weight: 600;
  padding-top: 4px;
}

.hero__line {
  display: block;
}

.hero__title em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.005em;
  margin-right: 0.02em;
  color: var(--accent);
}

.hero__aside {
  grid-column: 9 / -1;
  grid-row: 2 / span 2;
  position: relative;
  padding-top: 10px;
  padding-left: 18px;
  z-index: 2;
  align-self: center;
}

.portrait {
  position: relative;
}

.portrait::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -16px;
  bottom: -16px;
  left: 18px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.55;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}

.portrait:hover::before {
  transform: translate(4px, -4px);
  opacity: 1;
}

.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
  background: var(--bg-soft);
  will-change: transform;
  transition: transform 0.8s var(--ease);
}

.portrait:hover img {
  transform: scale(1.015);
}

.portrait__caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.roundel {
  position: absolute;
  left: -46px;
  bottom: 44px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 16px 40px rgba(207, 90, 46, 0.3);
}

.roundel__text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 20s linear infinite;
}

.roundel__text text {
  fill: currentColor;
  font-size: 8px;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.roundel__star {
  width: 30px;
  height: 30px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__bottom {
  grid-column: 1 / span 7;
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 26px;
}

.hero__desc {
  max-width: 36ch;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}

.hero__intro {
  max-width: 34ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--muted);
}

.hero__desc {
  max-width: 36ch;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}

.hero__scroll {
  grid-column: 12;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll i {
  width: 1px;
  height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  animation: scrollLine 2.2s var(--ease-soft) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 1.6vw, 20px) 0;
  overflow: hidden;
  background: var(--bg);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 15px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: 48px;
}

.about__main {
  grid-column: 1 / span 7;
}

.about__side {
  grid-column: 9 / -1;
  padding-top: 10px;
}

.about__copy {
  max-width: 58ch;
  margin-top: clamp(24px, 3vw, 40px);
}

.about__copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.about__copy .lead {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 42ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact__num {
  font-family: var(--serif);
  font-size: clamp(42px, 4vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.fact:first-child .fact__num {
  color: var(--accent);
}

.fact__label {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  background: rgba(255, 255, 255, 0.22);
}

.side-card__label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.timeline__year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 2px;
}

.timeline__text {
  font-size: 14px;
  line-height: 1.4;
}

.side-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 0 4px;
}

.side-note img {
  width: 26px;
  height: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.side-note__heart {
  width: 26px;
  height: 26px;
  fill: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  animation: heartbeat 2.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.18); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.12); }
  60%      { transform: scale(1); }
}

.side-note p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Experience ---------- */
.experience {
  overflow: hidden;
}

.experience::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(207, 90, 46, 0.16), transparent 65%);
  pointer-events: none;
}

.experience__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  align-items: end;
}

.experience__top .h2 {
  grid-column: 1 / span 7;
}

.experience__text {
  grid-column: 9 / -1;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
  color: var(--muted-light);
  max-width: 36ch;
  padding-bottom: 8px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(58px, 7vw, 100px);
  border-top: 1px solid var(--line-light);
}

.process__item {
  padding: clamp(22px, 2.4vw, 34px) clamp(16px, 2vw, 28px) 0 0;
  position: relative;
  transition: opacity 0.4s;
}

.process__item + .process__item {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line-light);
}

.process__num {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 26px;
}

.process__item h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.process__item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-light);
  max-width: 26ch;
}

/* ---------- Cases ---------- */
.cases__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  align-items: end;
}

.cases__head .h2 {
  grid-column: 1 / span 6;
}

.cases__aside {
  grid-column: 8 / -1;
  padding-bottom: 6px;
}

.cases__aside p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filter span {
  font-size: 8px;
  color: var(--muted);
  transition: color 0.3s;
}

.filter:hover {
  border-color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.filter.is-active span {
  color: var(--accent);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 54px) clamp(16px, 2.2vw, 28px);
  margin-top: clamp(42px, 5vw, 70px);
}

.case-card {
  position: relative;
  cursor: pointer;
  outline-offset: 6px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.case-card--wide {
  grid-column: 1 / -1;
}

.case-card.is-hidden {
  display: none;
}

.case-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  aspect-ratio: 1.68 / 1;
}

.case-card--wide .case-card__media {
  aspect-ratio: 2.15 / 1;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.case-card:hover .case-card__media img {
  transform: scale(1.035);
}

.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0) 55%, rgba(20, 19, 17, 0.32));
  opacity: 0;
  transition: opacity 0.5s;
}

.case-card:hover .case-card__media::after {
  opacity: 1;
}

.case-card__view {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.case-card:hover .case-card__view {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.case-card__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.case-card__index {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
  flex-shrink: 0;
}

.case-card__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  flex: 1;
}

.case-card__title small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-card__arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}

.case-card__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-card:hover .case-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}

/* ---------- Skills ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: 48px;
}

.skills__intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 54px);
}

.skills__intro .h2 {
  margin: 0;
}

.skills__intro > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
  padding-bottom: 8px;
}

.services {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(240, 232, 218, 0.35));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.35s;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}

.service::after {
  content: "";
  display: none;
}

.service:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 108, 63, 0.5);
  box-shadow: 0 22px 44px rgba(217, 108, 63, 0.14);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__num {
  font-family: var(--font);
  font-size: 0.78em;
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.35em;
  white-space: nowrap;
}

.service__num::after {
  content: "/";
  margin-left: 0.45em;
  color: var(--accent);
  opacity: 0.6;
}

.service h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.service p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
  padding-right: 20px;
}

@media (max-width: 680px) {
  .skills__intro {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .services {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contacts ---------- */
.contacts {
  overflow: hidden;
}

.contacts::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(207, 90, 46, 0.15), transparent 62%);
  pointer-events: none;
}

.contacts__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.contacts__mail {
  display: inline-block;
  font-size: clamp(44px, 8.2vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.4s;
}

.contacts__mail span {
  display: block;
}

.contacts__mail em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.005em;
  margin: 0 0.06em;
}

.contacts__mail svg {
  width: clamp(38px, 5vw, 76px);
  height: clamp(38px, 5vw, 76px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.08em;
  transform: translateY(-0.08em);
  transition: transform 0.5s var(--ease);
}

.contacts__mail:hover {
  color: var(--accent);
}

.contacts__mail:hover em {
  color: var(--ink);
}

.contacts__mail:hover svg {
  transform: translate(8px, -8px);
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(54px, 7vw, 92px);
  border-top: 1px solid var(--line-light);
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px 26px 26px 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding 0.4s var(--ease);
}

.contact-card + .contact-card {
  padding-left: 26px;
  border-left: 1px solid var(--line-light);
}

.contact-card__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.contact-card__value {
  font-size: clamp(14px, 1.2vw, 16px);
  transition: color 0.3s;
}

.contact-card svg {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted-light);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s, transform 0.4s var(--ease);
}

.contact-card:hover .contact-card__value {
  color: var(--accent);
}

.contact-card:hover svg {
  stroke: var(--accent);
  transform: translate(3px, -3px);
}

.contacts__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.contacts__foot .link-underline {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.contacts__foot .link-underline:hover {
  color: var(--accent);
}

.contacts__foot .link-underline:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 30px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__note {
  opacity: 0.7;
}

.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s;
}

.footer__up svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__up:hover {
  color: var(--accent);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%) translateY(24px) scale(0.985);
  background: var(--bg);
  border-radius: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform 0.55s var(--ease);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.modal.is-open .modal__panel {
  transform: translateX(-50%) translateY(0) scale(1);
}

.modal__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(243, 240, 234, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.modal__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color 0.3s;
}

.modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  transition: transform 0.4s var(--ease);
}

.modal__close:hover {
  color: var(--accent);
}

.modal__close:hover svg {
  transform: rotate(90deg);
}

.modal__counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.modal__hero {
  width: 100%;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
  background: var(--bg-soft);
}

.modal__body {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 52px) 20px;
}

.modal__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.modal__label i {
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.modal__title {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 28px;
}

.modal__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 28px;
}

.modal__meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal__meta dt {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__meta dd {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.modal__desc {
  max-width: 68ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 26px;
}

.modal__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.modal__col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal__col p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.modal__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal__gallery button {
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

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

.modal__gallery button:hover img {
  transform: scale(1.04);
}

.modal__gallery button.is-tall {
  aspect-ratio: 3 / 4;
}

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

.modal__gallery--single button {
  aspect-ratio: auto;
}

.modal__gallery--single img {
  height: auto;
  object-fit: contain;
}

.modal__nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 52px) 36px;
  border-top: 1px solid var(--line);
}

.modal__arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.modal__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.modal__arrow:hover {
  color: var(--accent);
}

.modal__arrow:first-child:hover svg {
  transform: translateX(-4px);
}

.modal__arrow--next:hover svg {
  transform: translateX(4px);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 9, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 234, 0.28);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}

.lightbox__close {
  top: 22px;
  right: 22px;
}

.lightbox__arrow--prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__arrow--next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted-light);
}

/* ---------- Hero button under photo ---------- */
.hero__btn {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

.experience .process {
  margin-bottom: clamp(58px, 7vw, 100px);
}

.exp-list {
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding: 26px 0;
  transition: background 0.4s;
}

.exp-item + .exp-item {
  border-top: 1px solid var(--line-light);
}

.exp-item:hover {
  background: rgba(217, 108, 63, 0.05);
}

.exp-item__year {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  padding-top: 4px;
  white-space: nowrap;
}

.exp-item__body h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.exp-item__place {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 10px;
}

.exp-item__body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-light);
  max-width: 62ch;
}

.exp-item__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  max-width: 62ch;
}

.exp-item__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-light);
}

.exp-item__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* тёмная секция "Опыт": светлый текст пунктов */
#experience .exp-item__list li {
  color: rgba(253, 246, 253, 0.62);
}

@media (max-width: 680px) {
  .exp-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__cta {
    margin-left: auto;
  }

  .hero__title {
    grid-column: 1 / span 8;
  }

  .hero__aside {
    grid-column: 9 / -1;
  }

  .roundel {
    width: 108px;
    height: 108px;
    left: -34px;
  }

  .cases__aside {
    grid-column: 7 / -1;
  }

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

@media (max-width: 900px) {
  .header__cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__eyebrow {
    margin-bottom: 30px;
  }

  .hero__title {
    font-size: clamp(56px, 12.5vw, 104px);
  }

  .hero__aside {
    width: min(360px, 72%);
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bottom {
    margin-top: 36px;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .hero__scroll {
    display: none;
  }

  .about__grid {
    display: flex;
    flex-direction: column;
  }

  .about__side {
    padding-top: 0;
  }

  .experience__top {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .process__item {
    border-top: 1px solid var(--line-light);
    padding: 24px 20px 24px 0;
  }

  .process__item + .process__item {
    padding-left: 20px;
  }

  .process__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .cases__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .cases__aside p {
    margin-bottom: 18px;
  }

  .skills__grid {
    display: flex;
    flex-direction: column;
  }

  .skills__intro > p {
    max-width: 52ch;
  }

  .skills__list {
    width: 100%;
  }

  .contacts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .contact-card:nth-child(odd) {
    padding-right: 22px;
  }

  .contact-card:nth-child(even) {
    padding-left: 22px;
    border-left: 1px solid var(--line-light);
  }

  .modal__hero {
    aspect-ratio: 1.6 / 1;
  }

  .footer__note {
    display: none;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 70px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero__eyebrow {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 9px;
  }

  .hero__eyebrow-line {
    display: none;
  }

  .hero__title {
    font-size: clamp(48px, 14.5vw, 84px);
    line-height: 0.92;
  }

  .hero__aside {
    width: min(330px, 86%);
  }

  .portrait img {
    border-radius: 16px;
  }

  .roundel {
    width: 94px;
    height: 94px;
    left: -22px;
    bottom: 38px;
  }

  .roundel__text text {
    font-size: 7.5px;
  }

  .roundel__star {
    width: 22px;
    height: 22px;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .marquee__track {
    gap: 18px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .timeline li {
    grid-template-columns: 82px 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process__item,
  .process__item + .process__item {
    padding: 20px 0;
    border-left: 0;
  }

  .process__item h3 {
    font-size: 21px;
  }

  .process__num {
    margin-bottom: 14px;
  }

  .cases__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .case-card--wide .case-card__media,
  .case-card__media {
    aspect-ratio: 1.45 / 1;
  }

  .case-card__view {
    display: none;
  }

  .case-card__caption {
    margin-top: 12px;
  }

  .case-card__arrow {
    width: 38px;
    height: 38px;
  }

  .contacts__mail {
    font-size: clamp(40px, 12vw, 64px);
  }

  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-card + .contact-card,
  .contact-card:nth-child(even),
  .contact-card:nth-child(odd) {
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .contact-card__value {
    font-size: 15px;
  }

  .contacts__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__inner {
    flex-wrap: wrap;
  }

  .modal__panel {
    top: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
  }

  .modal__bar {
    padding: 12px 16px;
  }

  .modal__hero {
    aspect-ratio: 1.35 / 1;
  }

  .modal__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal__cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal__gallery {
    grid-template-columns: 1fr;
  }

  .modal__gallery button,
  .modal__gallery button.is-tall {
    aspect-ratio: 1.4 / 1;
  }

  .modal__nav {
    padding: 20px 20px 28px;
  }

  .modal__arrow span {
    display: none;
  }

  .lightbox {
    padding: 0;
  }

  .lightbox__arrow--prev {
    left: 10px;
  }

  .lightbox__arrow--next {
    right: 10px;
  }

  .lightbox__close {
    top: 14px;
    right: 14px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 82vh;
  }
}

@media (hover: none) {
  .case-card__view {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Контакты: тёмный фон + розовые акценты + плавающие блики
   ========================================================= */
#contacts {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

#contacts .container {
  position: relative;
  z-index: 3;
}

/* Плавающие полупрозрачные розовые блики */
#contacts::before,
#contacts::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  opacity: 0.85;
}

#contacts::before {
  width: 62vmax;
  height: 62vmax;
  top: -22%;
  left: -14%;
  background: radial-gradient(circle, rgba(242, 196, 160, 0.45), rgba(242, 196, 160, 0) 68%);
  animation: glowA 18s ease-in-out infinite;
}

#contacts::after {
  width: 46vmax;
  height: 46vmax;
  bottom: -16%;
  right: -8%;
  background: radial-gradient(circle, rgba(217, 108, 63, 0.5), rgba(217, 108, 63, 0) 66%);
  animation: glowB 24s ease-in-out infinite;
}

@keyframes glowA {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(28%, 20%) scale(1.18); }
  66%  { transform: translate(6%, -14%) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes glowB {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-30%, -22%) scale(1.2); }
  66%  { transform: translate(-8%, 12%) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Текст: светлый на тёмном, акценты — розовые */
#contacts .section-head--light {
  color: rgba(253, 246, 253, 0.6);
}

#contacts .section-head--light .section-head__line {
  background: rgba(253, 246, 253, 0.2);
}

#contacts .contacts__eyebrow {
  color: rgba(253, 246, 253, 0.55);
}

#contacts .contacts__mail {
  color: var(--cream);
}

#contacts .contacts__mail em {
  color: var(--accent);
}

#contacts .contacts__mail:hover {
  color: var(--accent-soft);
}

#contacts .contacts__mail:hover em {
  color: var(--accent-soft);
}

#contacts .contact-card {
  border-color: rgba(253, 246, 253, 0.18);
}

#contacts .contact-card__label {
  color: rgba(253, 246, 253, 0.6);
}

#contacts .contact-card__value {
  color: var(--cream);
}

#contacts .contact-card svg {
  stroke: rgba(253, 246, 253, 0.55);
}

#contacts .contact-card:hover .contact-card__value {
  color: var(--accent-soft);
}

#contacts .contact-card:hover svg {
  stroke: var(--accent);
}

#contacts .contacts__foot {
  color: rgba(253, 246, 253, 0.55);
}

#contacts .contacts__foot .link-underline {
  color: var(--cream);
}

#contacts .contacts__foot .link-underline:hover {
  color: var(--accent-soft);
}

/* Мобильная адаптация границ карточек на тёмном фоне */
@media (max-width: 900px) {
  #contacts .contact-card:nth-child(even) {
    border-left-color: rgba(253, 246, 253, 0.18);
  }
}

@media (max-width: 680px) {
  #contacts .contact-card,
  #contacts .contact-card + .contact-card,
  #contacts .contact-card:nth-child(even),
  #contacts .contact-card:nth-child(odd) {
    border-bottom-color: rgba(253, 246, 253, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  #contacts::before,
  #contacts::after {
    animation: none;
  }
}

/* =========================================================
   Опыт: тёмный фон + розовые акценты + плавающие блики
   (в едином стиле с блоком контактов)
   ========================================================= */
#experience {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

#experience .container {
  position: relative;
  z-index: 3;
}

/* Плавающие полупрозрачные розовые блики */
#experience::before,
#experience::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
}

#experience::before {
  width: 60vmax;
  height: 60vmax;
  top: -20%;
  right: -12%;
  background: radial-gradient(circle, rgba(242, 196, 160, 0.4), rgba(242, 196, 160, 0) 68%);
  animation: glowC 20s ease-in-out infinite;
}

#experience::after {
  width: 42vmax;
  height: 42vmax;
  bottom: -14%;
  left: -8%;
  background: radial-gradient(circle, rgba(217, 108, 63, 0.48), rgba(217, 108, 63, 0) 66%);
  animation: glowD 26s ease-in-out infinite;
}

@keyframes glowC {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-26%, 18%) scale(1.16); }
  66%  { transform: translate(-5%, -16%) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes glowD {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30%, -22%) scale(1.2); }
  66%  { transform: translate(10%, 14%) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Текст: светлый на тёмном, акценты — розовые */
#experience .section-head--light {
  color: rgba(253, 246, 253, 0.6);
}

#experience .section-head--light .section-head__line {
  background: rgba(253, 246, 253, 0.2);
}

#experience .h2--light {
  color: var(--cream);
}

#experience .h2--light .dot {
  color: var(--accent);
}

#experience .experience__text {
  color: rgba(253, 246, 253, 0.62);
}

#experience .process {
  border-top-color: rgba(253, 246, 253, 0.18);
}

#experience .process__item + .process__item {
  border-left-color: rgba(253, 246, 253, 0.18);
}

#experience .process__num {
  color: var(--accent);
}

#experience .process__item h3 {
  color: var(--cream);
}

#experience .process__item p {
  color: rgba(253, 246, 253, 0.62);
}

#experience .exp-list {
  border-top-color: rgba(253, 246, 253, 0.18);
}

#experience .exp-item + .exp-item {
  border-top-color: rgba(253, 246, 253, 0.18);
}

#experience .exp-item__year {
  color: var(--accent);
}

#experience .exp-item__body h3 {
  color: var(--cream);
}

#experience .exp-item__place {
  color: rgba(253, 246, 253, 0.55);
}

#experience .exp-item__body p {
  color: rgba(253, 246, 253, 0.62);
}

#experience .exp-item:hover {
  background: rgba(242, 196, 160, 0.05);
}

/* Мобильная адаптация границ этапов на тёмном фоне */
@media (max-width: 900px) {
  #experience .process__item {
    border-top-color: rgba(253, 246, 253, 0.18);
  }
  #experience .process__item + .process__item {
    border-top-color: rgba(253, 246, 253, 0.18);
    border-left-color: transparent;
  }
}

@media (max-width: 680px) {
  #experience .process__item,
  #experience .process__item + .process__item {
    border-top-color: rgba(253, 246, 253, 0.18);
    border-left-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  #experience::before,
  #experience::after {
    animation: none;
  }
}

/* =========================================================
   Навыки: иконки карточек + блок инструментов
   ========================================================= */
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--accent);
}

.service__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tools {
  grid-column: 1 / -1;
  margin-top: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  background: rgba(255, 255, 255, 0.45);
}

.tools__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.tools__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.tools__group__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tools__group p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .tools__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tools__cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service__icon {
    margin-bottom: 16px;
  }
}

/* =========================================================
   Опыт: типографика и акценты
   ========================================================= */
.exp-item__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-item__body h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.exp-item__place {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
}

.exp-item__list {
  gap: 7px;
  margin-top: 2px;
}

.exp-item__list li {
  font-size: 13.5px;
  line-height: 1.6;
}

.exp-item__period {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}

#experience .exp-item:hover {
  background: rgba(217, 108, 63, 0.06);
}

/* =========================================================
   Контакты: описание + кнопка
   ========================================================= */
.contacts__note {
  margin-top: 22px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(253, 246, 253, 0.68);
}

.contacts__cta {
  margin-top: 26px;
}

.contacts__cta .btn {
  min-height: 52px;
}

.contacts__cta-arrow {
  margin-left: 10px;
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.contacts__cta .btn:hover .contacts__cta-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  #contacts .contacts__mail {
    font-size: clamp(34px, 9vw, 60px);
  }
}

.tools__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.modal__gallery-title {
  margin: 8px 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal__gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modal__gallery button {
  aspect-ratio: 3 / 3.9;
}
@media (max-width: 680px) {
  .modal__gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Модалка кейса ACE: подзаголовок, секции, мета-сетка
   ========================================================= */
.modal__subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif);
  margin-bottom: 4px;
}

.modal__section-title {
  margin: 8px 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal__meta--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modal__col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal__col p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 10px;
}

.modal__col p:last-child {
  margin-bottom: 0;
}

.modal__desc {
  max-width: 72ch;
}

@media (max-width: 900px) {
  .modal__meta--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Кейс ACE: компактный editorial-макет
   ========================================================= */
.modal__subtitle {
  margin-bottom: 28px;
}

.modal__meta--compact {
  padding: 16px 0 !important;
  margin-bottom: 34px !important;
}

.modal__meta--compact dt {
  white-space: nowrap;
  letter-spacing: 0.12em;
}

.modal__meta--compact dd {
  padding-right: 14px;
}

.modal__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 64px);
  margin-top: 4px;
  margin-bottom: 42px;
}

.modal__split h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.modal__split p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}

@media (max-width: 680px) {
  .modal__split {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 34px;
  }
}

/* Мета-панель: авто-подгонка под число колонок */
.modal__meta--4 {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* Вертикальная раскладка для 3+ блоков */
.modal__stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 6px;
  margin-bottom: 42px;
}

.modal__stack .modal__split-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.modal__stack .modal__split-col p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

/* =========================================================
   Навыки: креативная строка «Языки»
   ========================================================= */
.languages {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}

.languages__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.languages__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.languages__list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.languages__list li span {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.3s;
  position: relative;
}

.languages__list li span:hover {
  color: var(--accent);
}

.languages__list li i {
  font-style: normal;
  color: var(--accent-soft);
  font-size: 14px;
  margin: 0 12px;
}
