/* ==========================================================================
   Marharita Khimchuk · Portfolio
   Palette: white + soft sky blues, navy for what matters
   ========================================================================== */

:root {
  --white: #ffffff;
  --sky-50: #f4f8fd;
  --sky-100: #e9f2fb;
  --sky-200: #d4e6f8;
  --sky-300: #b0cfef;
  --sky-400: #7eaee0;
  --navy: #0b2447;
  --navy-2: #19376d;
  --ink: #1b2a41;
  --muted: #55667e;
  --line: #dbe6f2;

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

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: clamp(20px, 3vw, 32px);
  --shadow: 0 1px 2px rgba(11, 36, 71, 0.04), 0 12px 32px -8px rgba(11, 36, 71, 0.14);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--sky-200); color: var(--navy); }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
}

.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  color: var(--navy);
  margin: 0;
}

.h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}

.label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
}

/* ---------- Buttons ---------- */

.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgba(11, 36, 71, 0.55);
}
.btn--navy:hover { background: var(--navy-2); box-shadow: 0 14px 30px -10px rgba(11, 36, 71, 0.6); }

.btn--line {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--line:hover { background: var(--navy); color: var(--white); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.93rem; }

.link-u {
  position: relative;
  font-weight: 600;
  color: var(--navy);
  padding-block: 4px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(0); }

/* ---------- Progress bar ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: var(--navy);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: transform 0.5s var(--ease-out);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.05); }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover,
.nav a.is-active { color: var(--navy); background: var(--sky-100); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Language select (Apple-like popover) ---------- */

.lang { position: relative; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lang__btn:hover { background: var(--sky-50); border-color: var(--sky-300); }
.lang__btn .icon { width: 17px; height: 17px; }
.lang__btn .icon--chev { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.lang__btn[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }

.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(11, 36, 71, 0.08);
  box-shadow: 0 2px 6px rgba(11, 36, 71, 0.06), 0 24px 48px -12px rgba(11, 36, 71, 0.22);
  transform-origin: top right;
  animation: pop 0.22s var(--ease-out);
}
.lang__list[hidden] { display: none; }
@keyframes pop {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.lang__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lang__list li:hover,
.lang__list li.is-focus { background: var(--sky-100); }
.lang__list li .icon { width: 16px; height: 16px; color: var(--navy); stroke-width: 2.2; opacity: 0; }
.lang__list li[aria-selected="true"] { font-weight: 600; color: var(--navy); }
.lang__list li[aria-selected="true"] .icon { opacity: 1; }

/* ---------- Burger + mobile menu ---------- */

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
}
.burger:active { transform: scale(0.94); }
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.5s var(--ease-out), top 0.3s var(--ease-out);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 104px var(--gutter) max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 100% 100%, var(--sky-100), transparent 60%),
    var(--white);
  visibility: hidden;
  clip-path: circle(0% at calc(100% - var(--gutter) - 22px) 36px);
  transition: clip-path 0.7s var(--ease-io), visibility 0s linear 0.7s;
}
.menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 36px);
  transition: clip-path 0.7s var(--ease-io), visibility 0s;
}

.menu__nav li {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 8.5vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-out), color 0.2s ease;
}
.menu__nav a::after {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237eaee0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.menu__nav a.is-active { color: var(--sky-400); }
.menu.is-open .menu__nav a { transform: none; }
.menu.is-open .menu__nav li:nth-child(1) a { transition-delay: 0.18s; }
.menu.is-open .menu__nav li:nth-child(2) a { transition-delay: 0.23s; }
.menu.is-open .menu__nav li:nth-child(3) a { transition-delay: 0.28s; }
.menu.is-open .menu__nav li:nth-child(4) a { transition-delay: 0.33s; }
.menu.is-open .menu__nav li:nth-child(5) a { transition-delay: 0.38s; }
.menu.is-open .menu__nav li:nth-child(6) a { transition-delay: 0.43s; }

.menu__foot {
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: 0.5s; }
.menu__mail {
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.menu__social { display: flex; gap: 20px; }
.menu__social a {
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1.5px solid var(--sky-300);
}

body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .sticky-cta { visibility: hidden; }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--navy-2);
  margin-bottom: 18px;
}
.hero__role::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: var(--sky-400);
}

.hero__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 1.5rem + 6.2vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 28px;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line__in { display: inline-block; }

.hero__lead {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 28px;
}

.hero__avail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--muted);
}
.dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #2f9e6a;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.hero__shape {
  position: absolute;
  inset: 8% -10% -6% 14%;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--sky-200), var(--sky-100));
  z-index: -1;
}
.hero__shape::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  left: -18%;
  top: 2%;
  border-radius: 50%;
  border: 1.5px solid var(--sky-400);
}

.hero__photo {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  background: var(--sky-100);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--s, 1));
  transition: transform 1.6s var(--ease-out);
}

/* ---------- About collage ---------- */

.collage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
}
.collage__blob {
  position: absolute;
  inset: 14% 2% 0 12%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: linear-gradient(160deg, var(--sky-200), var(--white) 90%);
}
.polaroid {
  --r: 0deg;
  margin: 0;
  padding: 10px 10px 0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 22px 44px -18px rgba(11, 36, 71, 0.38), 0 2px 6px rgba(11, 36, 71, 0.06);
  transform: rotate(var(--r));
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease;
}
.polaroid:hover {
  transform: rotate(calc(var(--r) / 2)) translateY(-6px) scale(1.02);
  box-shadow: 0 30px 54px -18px rgba(11, 36, 71, 0.45);
  z-index: 3;
}
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption {
  padding: 12px 4px 14px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
}
.polaroid--main { --r: 4deg; position: absolute; right: 2%; top: 2%; z-index: 1; width: 64%; }
.polaroid--side { --r: -7deg; position: absolute; left: 0; bottom: 4%; z-index: 2; width: 46%; }
.polaroid--inline { --r: 3deg; width: 100%; max-width: 190px; justify-self: end; }
.polaroid--inline figcaption { font-size: 0.95rem; padding: 10px 4px 12px; }

.beyond { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 640px) {
  .beyond { grid-template-columns: 1fr; }
  .polaroid--inline { justify-self: center; max-width: 220px; }
}
.sticker {
  --r: 0deg;
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 26px -10px rgba(11, 36, 71, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transform: rotate(var(--r));
  animation: bob 6s ease-in-out infinite;
}
.sticker .icon { width: 17px; height: 17px; color: var(--sky-400); }
.sticker--1 { --r: -5deg; right: 0; bottom: 8%; z-index: 4; }
.sticker--2 { --r: 6deg; right: -2%; top: 30%; animation-delay: -2.5s; }
@keyframes bob {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-7px); }
}

/* ---------- Contact avatar with a Stories ring ---------- */

.contact__me {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sky-100);
  font-size: 0.95rem;
  font-weight: 600;
}
.story-ring {
  display: block;
  width: 52px;
  height: 52px;
  flex: none;
  padding: 2.5px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
}
.story-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
}

.hero__tag {
  position: absolute;
  left: -12%;
  bottom: 9%;
  max-width: 230px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

/* Proof */

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 7vw, 96px);
}
.proof__item {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.proof__num,
.stat__num,
.facts strong,
.case__index,
.step__n { font-variant-numeric: lining-nums tabular-nums; }

.proof__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.8rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
}
.proof__label {
  max-width: 26ch;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(18px, 2.4vw, 28px);
  border-block: 1px solid var(--line);
  background: var(--sky-50);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  padding-right: 0.4em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem);
  line-height: 1.2;
  color: var(--navy);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 140px); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--navy {
  background: var(--navy);
  color: var(--sky-100);
}
.section--navy .h2 { color: var(--white); }

.section--sky { background: var(--sky-50); }

/* ---------- Cases ---------- */

.case {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 56px);
  background: var(--white);
}
.case + .case { margin-top: clamp(20px, 3vw, 32px); }
.case--tint { background: var(--sky-50); border-color: transparent; }

.case__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2.5vw, 32px);
  align-items: start;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.case__index {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 0.9;
  color: var(--sky-400);
}
.case__client {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-2);
  margin-bottom: 6px;
}
.case__meta {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--muted);
}

.case__body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.case__summary > p:first-child {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  max-width: 44ch;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.case--tint .facts li { border-color: var(--sky-200); }
.facts strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
}

.quote {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--sky-400);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}

/* Phones fan */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 12px;
}
.phone {
  --rot: 0deg;
  --tx: 0px;
  --ty: 0px;
  position: relative;
  flex: none;
  width: clamp(112px, 13vw, 168px);
  aspect-ratio: 9 / 16;
  margin-inline: -14px;
  border-radius: 22px;
  border: 5px solid var(--white);
  overflow: hidden;
  background: var(--sky-100);
  box-shadow: 0 18px 40px -16px rgba(11, 36, 71, 0.4);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  transition: transform 0.7s var(--ease-out), box-shadow 0.3s ease;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(1) { --rot: -8deg; --ty: 14px; z-index: 1; }
.phone:nth-child(2) { --rot: -2.5deg; z-index: 2; }
.phone:nth-child(3) { --rot: 3deg; --ty: 6px; z-index: 3; }
.phone:nth-child(4) { --rot: 9deg; --ty: 20px; z-index: 2; }

.phones:hover .phone:nth-child(1) { --tx: -22px; --rot: -11deg; }
.phones:hover .phone:nth-child(2) { --tx: -8px; --ty: -10px; }
.phones:hover .phone:nth-child(3) { --tx: 8px; --ty: -4px; }
.phones:hover .phone:nth-child(4) { --tx: 22px; --rot: 12deg; }
.phone:hover { z-index: 5; box-shadow: 0 26px 50px -16px rgba(11, 36, 71, 0.5); }

/* stacked before reveal */
.js .case:not(.in) .phone { --rot: 0deg; --tx: 0px; --ty: 40px; }
.phone:nth-child(2) { transition-delay: 0.06s; }
.phone:nth-child(3) { transition-delay: 0.12s; }
.phone:nth-child(4) { transition-delay: 0.18s; }
.phones:hover .phone { transition-delay: 0s; }

/* Placeholders */

.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1.5px dashed var(--sky-300);
  background:
    repeating-linear-gradient(135deg, var(--sky-100) 0 12px, var(--sky-50) 12px 24px);
  color: var(--navy-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.ph .icon { width: 28px; height: 28px; color: var(--sky-400); stroke-width: 1.5; }
.ph--post { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.phone--ph { border-style: solid; border-color: var(--white); border-width: 5px; border-radius: 22px; }
.phone--ph .icon { fill: var(--sky-400); stroke: none; }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tiles--stack { grid-template-columns: 1.5fr 1fr; align-items: end; }

/* Clip reveal of media */
.js .case .ph,
.js .case .tiles > * {
  clip-path: inset(0 0 100% 0 round 18px);
  transition: clip-path 1s var(--ease-io);
}
.js .case.in .ph,
.js .case.in .tiles > * { clip-path: inset(0 0 0 0 round 18px); }
.js .case.in .tiles > :nth-child(2) { transition-delay: 0.12s; }
.js .case .phone.ph { clip-path: none; }

/* Toggle */

.case__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.case--tint .case__toggle { border-top-color: var(--sky-200); }

.plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  transition: background-color 0.25s ease, transform 0.5s var(--ease-out);
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.4s var(--ease-out), background-color 0.25s ease;
}
.plus::after { transform: rotate(90deg); }
.case__toggle:hover .plus { background: var(--navy); }
.case__toggle:hover .plus::before,
.case__toggle:hover .plus::after { background: var(--white); }
.case__toggle[aria-expanded="true"] .plus { transform: rotate(180deg); }
.case__toggle[aria-expanded="true"] .plus::after { transform: rotate(0deg); }

.case__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-io);
}
.case__more.is-open { grid-template-rows: 1fr; }
.case__more-in {
  min-height: 0;
  overflow: hidden;
}
.case__more-in > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.case__more.is-open .case__more-in > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.case__more.is-open .case__more-in > :nth-child(2) { transition-delay: 0.22s; }
.case__more.is-open .case__more-in > :nth-child(3) { transition-delay: 0.29s; }

.case__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
}
.case__part .h4 { margin-bottom: 16px; }

.tdr { margin: 0; display: grid; gap: 4px; }
.tdr dt {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: 12px;
}
.tdr dt:first-child { margin-top: 0; }
.tdr dd { margin: 0; color: var(--ink); max-width: 60ch; }

.result {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 20px;
  background: var(--navy);
  color: var(--sky-100);
}
.result__label { font-weight: 700; color: var(--white); margin-bottom: 16px; }
.result__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { display: grid; gap: 4px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  line-height: 1;
  color: var(--white);
}
.stat__label { font-size: 0.93rem; color: var(--sky-200); }
.result__note { margin-top: 18px; font-size: 0.88rem; color: var(--sky-300); max-width: 70ch; }

.gallery {
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 32px);
  padding-bottom: 4px;
}
.gallery--2 { grid-template-columns: minmax(0, 520px); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
}
.service {
  position: relative;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service .h4 { margin-bottom: 12px; }
.service p { color: var(--muted); max-width: 36ch; }

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 28px;
  right: calc((100% - 4 * 24px) / 5 - 28px);
  top: 28px;
  height: 1.5px;
  background: var(--sky-400);
  opacity: 0.6;
  transform-origin: left;
  transition: transform 1.6s var(--ease-io);
}
.js .steps:not(.in)::before { transform: scaleX(0); }

.step { position: relative; display: grid; gap: 18px; align-content: start; }
.step__n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky-200);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  transition: transform 0.6s var(--ease-out), opacity 0.5s ease;
}
.step:last-child .step__n { background: var(--white); }
.step p { font-size: 1.02rem; color: var(--sky-100); max-width: 22ch; }

.js .steps:not(.in) .step__n { transform: scale(0.6); opacity: 0; }
.js .steps:not(.in) .step p { opacity: 0; transform: translateY(10px); }
.step p { transition: opacity 0.6s ease, transform 0.7s var(--ease-out); }
.step:nth-child(2) .step__n, .step:nth-child(2) p { transition-delay: 0.15s; }
.step:nth-child(3) .step__n, .step:nth-child(3) p { transition-delay: 0.3s; }
.step:nth-child(4) .step__n, .step:nth-child(4) p { transition-delay: 0.45s; }
.step:nth-child(5) .step__n, .step:nth-child(5) p { transition-delay: 0.6s; }

/* ---------- Skills ---------- */

.skills {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.checklist { display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 32px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2447' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease-out);
}
.tags li:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__media { position: sticky; top: 104px; }
.about__lead {
  margin: 24px 0 36px;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 48ch;
}

.facts-list { margin: 0; display: grid; }
.facts-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--sky-200);
}
.facts-list dt { font-weight: 700; color: var(--navy); }
.facts-list dd { margin: 0; color: var(--ink); }

.beyond {
  margin-top: 40px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.beyond .h4 { margin-bottom: 10px; }
.beyond p { color: var(--ink); }

/* ---------- Contact ---------- */

.contact__card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 96px) clamp(22px, 6vw, 88px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--navy);
  color: var(--sky-100);
  text-align: center;
  isolation: isolate;
}
.contact__card::before,
.contact__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}
.contact__card::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -260px;
  background: radial-gradient(circle, rgba(126, 174, 224, 0.35), transparent 65%);
}
.contact__card::after {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(212, 230, 248, 0.22), transparent 65%);
}

.contact__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.4rem + 6vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 auto 22px;
  max-width: 14ch;
}
.contact__lead { max-width: 44ch; margin: 0 auto 36px; color: var(--sky-200); font-size: 1.08rem; }

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-bottom: 32px;
}
.mail {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.55rem + 2.6vw, 2.4rem);
  color: var(--white);
  border-bottom: 1.5px solid var(--sky-400);
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mail:hover { color: var(--sky-200); border-color: var(--white); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.copy:hover { background: rgba(255, 255, 255, 0.1); }
.copy.is-done { background: var(--white); color: var(--navy); }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contact .btn--navy { background: var(--white); color: var(--navy); box-shadow: none; }
.contact .btn--navy:hover { background: var(--sky-100); }
.contact .btn--line { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.contact .btn--line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.contact__loc { margin-top: 32px; font-size: 0.9rem; color: var(--sky-300); }

/* ---------- Footer ---------- */

.footer { padding-block: 32px 48px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Sticky CTA (mobile) ---------- */

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  transform: translate(-50%, 160%);
  transition: transform 0.5s var(--ease-out);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }

/* ---------- Stories viewer ---------- */

button.phone { padding: 0; cursor: pointer; }
button.phone:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 4px; border-radius: 22px; }

.viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop {
  background: rgba(6, 18, 38, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.viewer__stage {
  --dy: 0px;
  position: relative;
  height: min(88dvh, 820px);
  aspect-ratio: var(--ratio, 9 / 16);
  max-width: 100vw;
  border-radius: 20px;
  overflow: hidden;
  background: #0d1a2e;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(var(--dy)) scale(calc(1 - var(--dy) / 2400px));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.viewer.is-dragging .viewer__stage { transition: none; }
.viewer__stage { transition: transform 0.4s var(--ease-out); }
.viewer[open] .viewer__stage { animation: viewer-in 0.45s var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: scale(0.92) translateY(20px); } }

.viewer__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.viewer__img.is-swap { animation: swap 0.35s ease; }
.viewer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.viewer__video[hidden],
.viewer__img[hidden] { display: none; }
.viewer.is-contain .viewer__stage { background: #0a1220; }
.viewer.is-contain .viewer__img,
.viewer.is-contain .viewer__video { object-fit: contain; }
@keyframes swap { from { opacity: 0.4; transform: scale(1.02); } }

.viewer__stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
  z-index: 1;
  pointer-events: none;
}

.viewer__bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.viewer__bars span {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}
.viewer__bars i {
  display: block;
  height: 100%;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}
.viewer__bars .is-done i { transform: scaleX(1); }
.viewer__bars .is-active i { animation: fill var(--story-dur, 5s) linear forwards; }
.viewer.is-paused .viewer__bars .is-active i { animation-play-state: paused; }
.viewer__bars .is-active.is-video i { animation: none; transition: transform 0.25s linear; }
.viewer.is-static .viewer__bars .is-active i { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

.viewer__top {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.viewer__who { display: inline-flex; align-items: center; gap: 8px; }
.viewer__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky-200);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.75rem;
  box-shadow: 0 0 0 2px var(--white);
}
.viewer__count { margin-left: auto; opacity: 0.8; font-weight: 500; font-variant-numeric: tabular-nums; }
.viewer__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s ease;
}
.viewer__btn:hover { background: rgba(255, 255, 255, 0.16); }
.viewer__btn .icon { width: 20px; height: 20px; }
.viewer__pause .i-play { display: none; fill: currentColor; stroke: none; }
.viewer.is-paused .viewer__pause .i-play { display: block; }
.viewer.is-paused .viewer__pause .i-pause { display: none; }
.viewer.is-static .viewer__pause { display: none; }

.viewer__nav {
  position: absolute;
  top: 64px;
  bottom: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.viewer__prev { left: 0; width: 34%; }
.viewer__next { right: 0; width: 66%; }
.viewer__nav:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; border-radius: 14px; }

@media (max-width: 600px) {
  .viewer__stage { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; }
}

/* ---------- Case links, videos, creatives ---------- */

.case__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-2);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ig-link .icon { width: 15px; height: 15px; }
.ig-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone__tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 36, 71, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
}

.tiles--covers { grid-template-columns: 1fr 1fr; }
.cover,
.slide {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--sky-100);
  box-shadow: 0 14px 34px -18px rgba(11, 36, 71, 0.45);
}
.slide { border-radius: 14px; }
.cover img,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.cover:hover img,
.slide:hover img { transform: scale(1.04); }
.cover:focus-visible,
.slide:focus-visible,
.cap:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; }

.media-block { margin-top: clamp(28px, 4vw, 44px); }
.media-block__label {
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 19vw, 210px);
  gap: 12px;
  padding: 4px 4px 14px;
  margin-inline: -4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--sky-300) transparent;
}
.strip .slide { scroll-snap-align: start; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 210px));
  gap: 12px;
}

/* captions: small on purpose, the visuals carry the case */
.captions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cap {
  display: grid;
  gap: 6px;
  width: 76px;
  padding: 0;
  text-align: left;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.cap:hover { opacity: 1; }
.cap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}
.cap span { font-size: 0.72rem; line-height: 1.3; color: var(--muted); }

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-auto-columns: 62%; }
}

/* ---------- Case share + clock ---------- */

.case__head { grid-template-columns: auto 1fr auto; }
.case__share {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.4s var(--ease-out);
}
.case__share:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.case__share .icon { width: 18px; height: 18px; }
.case { scroll-margin-top: 88px; }
.case.is-target { animation: target 1.6s var(--ease-out); }
@keyframes target {
  0% { box-shadow: 0 0 0 0 rgba(126, 174, 224, 0.7); }
  100% { box-shadow: 0 0 0 18px rgba(126, 174, 224, 0); }
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--sky-200);
  font-variant-numeric: tabular-nums;
}
.clock:has(.clock__text:empty) { display: none; }
.clock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd39b;
  box-shadow: 0 0 0 4px rgba(95, 211, 155, 0.18);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(11, 36, 71, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 0.25s ease, transform 0.45s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Cursor ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--cx, -200px), var(--cy, -200px)) scale(0.3);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
  will-change: transform;
}
.cursor.is-on { opacity: 1; transform: translate(var(--cx), var(--cy)) scale(1); }

/* ==========================================================================
   Motion: load + reveal (only with JS)
   ========================================================================== */

.js .line__in {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.js .line:nth-child(2) .line__in { transition-delay: 0.08s; }

.js [data-anim="fade"] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease-out);
}
.js .hero__photo {
  clip-path: inset(100% 0 0 0 round 999px 999px 0 0);
  transition: clip-path 1.3s var(--ease-io) 0.1s;
}
.js .hero__photo img { --s: 1.18; }
.js .hero__shape {
  opacity: 0;
  transform: translate(30px, 20px);
  transition: opacity 1s ease 0.4s, transform 1.4s var(--ease-out) 0.4s;
}

.is-loaded .line__in { transform: none; }
.is-loaded [data-anim="fade"] { opacity: 1; transform: none; }
.is-loaded .hero__role { transition-delay: 0s; }
.is-loaded .hero__lead { transition-delay: 0.35s; }
.is-loaded .hero__cta { transition-delay: 0.45s; }
.is-loaded .hero__avail { transition-delay: 0.55s; }
.is-loaded .hero__tag { transition-delay: 1s; }
.is-loaded .hero__photo { clip-path: inset(0 0 0 0 round 999px 999px var(--radius) var(--radius)); }
.is-loaded .hero__photo img { --s: 1; }
.is-loaded .hero__shape { opacity: 1; transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 1s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }

/* word-by-word heading reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.w > span { display: inline-block; }
.js .reveal-lines .w > span {
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.js .reveal-lines.in .w > span { transform: none; }

/* View transition for language switch */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .skills { grid-template-columns: 1fr 1fr; }
  .skills .h2 { grid-column: 1 / -1; }
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: block; }
  .menu { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; justify-self: center; max-width: 300px; }
  .hero__tag { left: -8%; }

  .section__head { grid-template-columns: 1fr; }
  .case__body { grid-template-columns: 1fr; }
  .case__cols { grid-template-columns: 1fr; }
  .gallery--4 { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1.5px; height: auto; transform-origin: top; }
  .js .steps:not(.in)::before { transform: scaleY(0); }
  .step { grid-template-columns: 56px 1fr; align-items: center; gap: 20px; padding-block: 10px; }
  .step p { max-width: none; }

  .about { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 360px; }

  .sticky-cta { display: inline-flex; }
}

@media (max-width: 640px) {
  .header__actions .btn { display: none; }

  .hero__media { max-width: 230px; }
  .hero__shape { inset: 8% -8% -5% 12%; }
  .hero__shape::after { width: 64px; height: 64px; }
  .hero__tag { left: auto; right: -14%; bottom: 7%; max-width: 170px; padding: 10px 14px; font-size: 0.8rem; }
  .lang__current { font-size: 0.9rem; }

  .proof { grid-template-columns: 1fr; gap: 0; }
  .proof__item { grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding-block: 16px; }
  .proof__label { font-size: 0.9rem; }

  .phone { margin-inline: -18px; }
  .tiles--stack { grid-template-columns: 1fr 1fr; }
  .result__grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .facts-list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer { padding-bottom: 96px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
  .cursor { display: none; }
}

/* ---------- Stories strip + creatives ticker ---------- */

.strip--stories { grid-auto-columns: clamp(120px, 13vw, 160px); }
.slide--story { aspect-ratio: 9 / 16; border-radius: 16px; }

.case__body--solo { grid-template-columns: 1fr; }
.case__body--solo .case__summary { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 48px; align-items: start; }
.case__body--solo .case__summary .facts { margin-top: 0; }

.ticker {
  margin: clamp(24px, 3.5vw, 40px) calc(-1 * clamp(22px, 4vw, 56px)) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  padding-block: 10px 18px;
  animation: ticker 55s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; gap: 14px; padding-right: 14px; }
.tick {
  position: relative;
  flex: none;
  width: clamp(140px, 15vw, 200px);
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sky-100);
  box-shadow: 0 14px 30px -18px rgba(11, 36, 71, 0.5);
  transition: transform 0.5s var(--ease-out);
}
.tick:nth-child(odd) { transform: rotate(-1.5deg); }
.tick:nth-child(even) { transform: rotate(1.5deg) translateY(8px); }
.tick:hover { transform: rotate(0) translateY(-6px) scale(1.03); z-index: 1; }
.tick img { width: 100%; height: 100%; object-fit: cover; }
.tick:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .case__body--solo .case__summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker__track { animation: none; }
  .ticker__set[aria-hidden="true"] { display: none; }
}

/* ---------- Six-story fan + reel card ---------- */

.phones--fan { padding-block: 24px 36px; }
.phones--fan .phone { width: clamp(92px, 9.5vw, 134px); margin-inline: -20px; border-width: 4px; border-radius: 18px; }
.phones--fan .phone:nth-child(1) { --rot: -15deg; --ty: 34px; z-index: 1; }
.phones--fan .phone:nth-child(2) { --rot: -9deg;  --ty: 14px; z-index: 2; }
.phones--fan .phone:nth-child(3) { --rot: -3deg;  --ty: 2px;  z-index: 3; }
.phones--fan .phone:nth-child(4) { --rot: 3deg;   --ty: 2px;  z-index: 4; }
.phones--fan .phone:nth-child(5) { --rot: 9deg;   --ty: 14px; z-index: 5; }
.phones--fan .phone:nth-child(6) { --rot: 15deg;  --ty: 34px; z-index: 6; }
.phones--fan .phone:nth-child(5) { transition-delay: 0.24s; }
.phones--fan .phone:nth-child(6) { transition-delay: 0.3s; }
.phones--fan:hover .phone:nth-child(1) { --tx: -40px; --rot: -19deg; }
.phones--fan:hover .phone:nth-child(2) { --tx: -24px; --rot: -11deg; --ty: 6px; }
.phones--fan:hover .phone:nth-child(3) { --tx: -8px;  --ty: -6px; }
.phones--fan:hover .phone:nth-child(4) { --tx: 8px;   --ty: -6px; }
.phones--fan:hover .phone:nth-child(5) { --tx: 24px;  --rot: 11deg; --ty: 6px; }
.phones--fan:hover .phone:nth-child(6) { --tx: 40px;  --rot: 19deg; }
.phones--fan .phone:hover { --ty: -14px; z-index: 10; }

@media (max-width: 640px) {
  .phones--fan .phone { width: 84px; margin-inline: -24px; }
}

.reel-card {
  position: relative;
  display: block;
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 22px;
  background: var(--sky-100);
  box-shadow: 0 18px 40px -16px rgba(11, 36, 71, 0.4);
  transition: transform 0.5s var(--ease-out);
}
.reel-card:hover { transform: translateY(-6px) rotate(-1.5deg); }
.reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.reel-card__play .icon { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.reel-card:hover .reel-card__play,
.reel-card:focus-visible .reel-card__play { opacity: 1; transform: none; }
.reel-card:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; }

/* ---------- Video creatives grid (case 01) ---------- */
.reels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  max-width: 920px;
}
.reels .reel-card { width: 100%; }
.reels .reel-card:nth-child(even):hover { transform: translateY(-6px) rotate(1.5deg); }
@media (max-width: 640px) {
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Analytics screenshot (case 02) ---------- */
.shot {
  display: block;
  width: 100%;
  max-width: 560px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 40px -20px rgba(11, 36, 71, 0.35);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.shot img { display: block; width: 100%; height: auto; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgba(11, 36, 71, 0.45); }
.shot:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; }

/* ---------- Strategy slides (case 01) ---------- */
.tiles--deck { grid-template-columns: 1fr 1fr; gap: 12px; }
.tiles--deck > :first-child { grid-column: 1 / -1; }
.deck__slide {
  display: block;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sky-100);
  box-shadow: 0 14px 34px -18px rgba(11, 36, 71, 0.45);
}
.deck__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.deck__slide:hover img { transform: scale(1.04); }
.deck__slide:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; }

/* ---------- Analysis tables (case 01) ---------- */
.sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: clamp(12px, 2vw, 20px);
}
.sheet {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 34px -20px rgba(11, 36, 71, 0.4);
  transition: transform 0.5s var(--ease-out);
}
.sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sheet:hover { transform: translateY(-4px); }
.sheet:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; }
.sheet__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px -6px rgba(11, 36, 71, 0.4);
}
.sheet__tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 0;
}
.sheet__tag--orange::before { background: #f1c897; }
.sheet__tag--blue::before { background: #1a2bf0; }
.sheets__note { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Reel + analytics side by side (case 02) ---------- */
.duo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 48px);
}
.media-block--shot { flex: 1 1 260px; max-width: 400px; }
.media-block--shot .shot { max-width: none; }

.inline-link {
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sky-300);
  text-underline-offset: 3px;
}
.inline-link:hover { text-decoration-color: currentColor; }

@media (max-width: 640px) {
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.media-block--tight { margin-top: clamp(14px, 2vw, 20px); }
.sheet--wide { max-width: 700px; aspect-ratio: 2000 / 924; }
.sheet__tag--sky::before { background: #19aef0; }

/* ---------- Case 02: Reel + stats up front, Stories fan inside ---------- */
.duo--body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.4vw, 32px);
}
.duo--body .media-block { margin-top: 0; }
.duo--body .reel-card { width: clamp(140px, 14vw, 190px); }
.duo--body .media-block--shot { max-width: none; }
.result--main { margin-top: clamp(28px, 4vw, 44px); }
.case__more .phones--fan .phone { width: clamp(100px, 11vw, 150px); }
@media (max-width: 640px) {
  .duo--body { grid-template-columns: 1fr; }
  .duo--body .reel-card { width: 170px; }
}
.duo--body > .media-block:first-child { width: clamp(140px, 14vw, 190px); }
.duo--body { align-items: center; }
@media (max-width: 640px) {
  .duo--body > .media-block:first-child { width: auto; }
}

/* ---------- Small phones (iPhone SE, 320–400px) ---------- */
.case__head { grid-template-columns: auto minmax(0, 1fr) auto; }
.case__head > div { min-width: 0; }
.case__head .h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 400px) {
  .case__head { gap: 10px; }
  .case__index { font-size: 2rem; }
  .case__share { width: 38px; height: 38px; }
  .phones--fan .phone,
  .case__more .phones--fan .phone { width: 64px; margin-inline: -16px; border-width: 3px; border-radius: 12px; }
}
.sheet--wide { width: 100%; }

/* ---------- Phones in landscape: text and photo side by side ---------- */
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
  .hero__media { order: 0; max-width: 220px; }
  .about__media { max-width: 280px; }
}

/* ---------- Touch screens: 44px tap targets ---------- */
@media (pointer: coarse) {
  .ig-link, .copy, .link-u, .mail, .lang__btn { min-height: 44px; display: inline-flex; align-items: center; }
  .case__share { width: 44px; height: 44px; }
}

/* AVIF wrappers: let <picture> vanish from layout so the <img> sizes exactly as before */
picture { display: contents; }
