:root {
  --bg: #fafaf9;
  --ink: #111111;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e7e5e2;
  --card: #ffffff;
  --radius: 28px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.logo span { color: var(--faint); font-weight: 500; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 99px;
  background: var(--ink); color: #fff !important; font-size: 15px; font-weight: 500;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: #fff; }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
}
.hero h1 .soft { color: #b9b6b1; }
.hero .lead {
  margin-top: 32px; max-width: 640px;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #333; letter-spacing: -0.01em;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 99px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: #333;
}
.badge { padding: 8px 16px 8px 12px; }
.badge svg { width: 18px; height: 18px; color: #555; flex: none; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: 72px;
}
.stats div { padding: 28px 0 0; }
.stats b { display: block; font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; gap: 24px; }
.section-head h2 { font-size: 15px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.section-head p { color: var(--muted); font-size: 15px; }

/* ---------- case cards ---------- */
.cases { display: grid; gap: 56px; }
.case { display: block; }
.cover {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; isolation: isolate;
}
.cover img { position: absolute; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.case:hover .cover img.lift { transform: translateY(-10px); }
.case-meta { display: flex; justify-content: space-between; gap: 32px; margin-top: 22px; align-items: flex-start; }
.case-meta h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; max-width: 760px; }
.case-meta h3 span { color: var(--faint); font-weight: 500; }
.case-meta p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 700px; }
.more { white-space: nowrap; font-size: 15px; font-weight: 500; padding-top: 4px; }
.more.soon { color: var(--faint); font-weight: 400; }
.case:hover .more:not(.soon) { text-decoration: underline; text-underline-offset: 4px; }

/* per-case covers */
.c-fortes { background: radial-gradient(120% 90% at 20% 0%, #4b1d7a 0%, #1c0b30 55%, #0f0619 100%); }
.c-fortes .a { width: 74%; left: 6%; top: 10%; }
.c-fortes .b { width: 20%; right: 6%; top: 16%; border-radius: 22px; }

.c-zabava { background: radial-gradient(90% 90% at 50% 110%, #ffb36b 0%, #ff7a2f 45%, #f2541b 100%); }
.c-zabava img { border-radius: 30px; width: 25%; top: 14%; box-shadow: 0 40px 70px -24px rgba(90,20,0,.55); }
.c-zabava .a { left: 9%; transform: rotate(-5deg); }
.c-zabava .b { left: 37.5%; top: 8%; z-index: 2; }
.c-zabava .c { left: 66%; transform: rotate(5deg); }
.case:hover .c-zabava .a { transform: rotate(-7deg) translateY(-10px); }
.case:hover .c-zabava .c { transform: rotate(7deg) translateY(-10px); }

.c-estudent { background: linear-gradient(160deg, #eceaff 0%, #d9d6ff 100%); }
.c-estudent .a { width: 66%; left: 6%; top: 18%; z-index: 2; }
.c-estudent .b { width: 66%; right: 5%; top: 8%; z-index: 1; }

.c-gift { background: radial-gradient(100% 100% at 50% 0%, #2d2250 0%, #0f0d1c 70%); }
.c-gift { display: flex; align-items: center; justify-content: center; gap: 7%; }
.c-gift img { position: static; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); width: auto; }
.c-gift .old { height: 48%; opacity: .75; clip-path: inset(0 0 8% 0 round 16px); box-shadow: none; }
.c-gift .new { height: 74%; }
.case:hover .c-gift .new { transform: translateY(-10px); }
.c-gift .arrow { color: rgba(255,255,255,.5); font-size: 40px; }
.c-gift .tag { position: absolute; left: 24px; top: 24px; background: #ffd24d; color: #1a1300; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 99px; }

.c-airash { background: #e8dfd3; }
.c-airash img { width: 40%; border-radius: 16px; object-fit: cover; object-position: top; }
.c-airash .a { left: 7%; top: 9%; height: 120%; }
.c-airash .b { right: 7%; top: -30%; height: 120%; object-position: 0 46%; }

/* ---------- visuals masonry ---------- */
.masonry { columns: 3; column-gap: 16px; }
.masonry .tile { break-inside: avoid; margin: 0 0 16px; background: none; border-radius: 0; overflow: visible; }
.masonry .tile img { border-radius: 18px; height: auto; }
.masonry figcaption { color: var(--faint); font-size: 14px; margin-top: 8px; }
.masonry .tile:hover img { transform: none; }

/* ---------- works grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { border-radius: 20px; overflow: hidden; background: #eee; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.03); }
.tile.wide { grid-column: span 2; }
.tile.sq { aspect-ratio: 1; }
.tile.ph {
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #f1efeb 0 12px, #ebe8e3 12px 24px);
  color: var(--faint); font-size: 14px; aspect-ratio: 1;
}
.tile.ph.wide { aspect-ratio: auto; }

/* ---------- footer ---------- */
.foot { padding: 120px 0 48px; border-top: 1px solid var(--line); margin-top: 64px; }
.foot h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 900px; }
.foot .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.foot .small { display: flex; justify-content: space-between; margin-top: 96px; color: var(--faint); font-size: 14px; }

/* ---------- case page ---------- */
.back { display: inline-flex; gap: 8px; color: var(--muted); font-size: 15px; margin-top: 40px; }
.back:hover { color: var(--ink); }
.case-hero { padding: 48px 0 40px; }
.case-hero .eyebrow { color: var(--faint); font-size: 15px; }
.case-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin-top: 12px; max-width: 980px; }
.case-hero .lead { margin-top: 24px; font-size: 20px; color: #333; max-width: 720px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }
.facts span { display: block; color: var(--faint); font-size: 14px; }
.facts b { display: block; font-weight: 500; margin-top: 4px; font-size: 16px; }

.shot { border-radius: var(--radius); overflow: hidden; }
.shot.dark { background: radial-gradient(120% 90% at 20% 0%, #4b1d7a 0%, #1c0b30 55%, #0f0619 100%); padding: 6%; }
.shot.dark img { border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.cap { color: var(--muted); font-size: 15px; margin-top: 14px; }

.prose { max-width: 720px; margin: 0 auto; padding: 72px 0 40px; }
.prose h2 { font-size: 32px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.prose p { margin-top: 16px; color: #333; }
.prose ul { margin-top: 16px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; color: #333; }
.prose li + li { margin-top: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: #999; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba figure { position: relative; }
.ba .label { position: absolute; left: 16px; top: 16px; z-index: 2; background: rgba(255,255,255,.92); color: #111; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; }
.ba img { border-radius: 18px; width: 100%; height: 100%; object-fit: cover; object-position: top left; aspect-ratio: 1280/975; }

.duo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.mobile-strip { background: #140a22; border-radius: var(--radius); padding: 56px 0; display: flex; justify-content: center; overflow: hidden; height: 760px; }
.mobile-strip img { width: 320px; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); object-fit: cover; object-position: top; }

.next { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 96px; padding-top: 32px; }
.next a { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.next span { color: var(--faint); font-size: 15px; display: block; }

.shot.canvas { background: #dce3ea; padding: 0; }
.shot.canvas img { width: 100%; }
.shot.canvas.crop img { aspect-ratio: 1692 / 900; object-fit: cover; object-position: top; }
.cover.static { aspect-ratio: 16 / 9; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .cover { aspect-ratio: 4 / 3.4; }
  .case-meta { flex-direction: column; gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .c-fortes .a { width: 88%; left: 6%; top: 8%; }
  .c-fortes .b { width: 30%; right: 4%; top: 34%; }
  .c-zabava img { width: 34%; border-radius: 20px; }
  .c-zabava .a { left: -2%; } .c-zabava .b { left: 33%; } .c-zabava .c { left: 68%; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; }
  .c-estudent .a, .c-estudent .b { width: 86%; }
  .c-estudent .a { top: 30%; }
  .c-gift { gap: 4%; }
  .c-gift .old { height: 44%; }
  .c-gift .new { height: 72%; }
  .c-gift .arrow { font-size: 24px; }
  .c-airash img { width: 42%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ba, .duo { grid-template-columns: 1fr; }
  .mobile-strip { height: 560px; }
  .mobile-strip img { width: 260px; }
  .foot { padding-top: 80px; }
  .foot .small { flex-direction: column; gap: 8px; margin-top: 64px; }
}
