:root {
  --bg: #f3f1ea;
  --ink: #171512;
  --muted: #77736a;
  --panel: #fffdf7;
  --line: rgba(222, 217, 204, 0.4);
  --blue-line: rgba(67, 100, 210, 0.4);
  --sage: #75886a;
  --coral: #ef6a4d;
  --sage-soft: #e3eadc;
  --coral-soft: #f7d7cb;
  --shadow: 0 24px 70px rgba(23, 21, 18, 0.08);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius: 28px;
  --radius-tight: 16px;
  --button-radius: 14px;
  --radius-pill: 999px;
  --font-display: "Merriweather", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
  background:
    linear-gradient(90deg, rgba(222, 217, 204, 0.45) 1px, transparent 1px),
    linear-gradient(180deg, rgba(222, 217, 204, 0.45) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.985);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0s),
    transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0s),
    filter 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0s);
}

body[data-route="admin"] {
  background: #e6eef3;
  overflow-x: hidden;
}

body[data-route="case"] {
  background: #141414;
}

body[data-route="shots"],
body[data-route="shot"] {
  background: #141414;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  line-height: 1.65;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  margin: 0.45rem 0;
  line-height: 1.55;
}

.site-shell {
  width: calc(100% - 240px);
  margin: 0 auto;
  padding: 132px 0 var(--space-12);
}

.home-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: #141414;
}

.case-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 12px 24px 24px;
  background: #141414;
}

.quick-shot-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #141414;
}

.home-header {
  position: fixed;
  top: 48px;
  left: 48px;
  right: 48px;
  z-index: 10000;
  width: auto;
  height: 36px;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 300;
}

.home-header-actions,
.home-time {
  position: absolute;
  top: 0;
  pointer-events: auto;
  transition:
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-header-actions {
  right: 0;
  display: flex;
  gap: var(--space-2);
}

.home-header-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--button-radius);
  background: #fff;
  padding: 0 var(--space-4);
  color: #283237;
  font-size: 1rem;
  font-weight: 300;
  white-space: nowrap;
}

.home-header-button-primary {
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 6.6px rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 12px;
}

.home-time {
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 36px;
  border-radius: var(--button-radius);
  background: #fff;
  padding: 0 var(--space-4);
  color: #283237;
  font-size: 1rem;
  font-weight: 300;
  white-space: nowrap;
}

.home-clock {
  font-style: italic;
}

.topbar {
  position: fixed;
  top: 48px;
  left: 48px;
  right: 48px;
  z-index: 10000;
  width: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 247, 0.78);
  backdrop-filter: blur(18px);
  font-family: var(--font-display);
  font-weight: 300;
}

.brand-chip,
.topnav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-chip {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 var(--space-3) 0 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--panel);
  font-family: var(--font-display);
}

.topnav button,
.topnav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
}

.topnav button:hover,
.topnav a:hover,
.topnav .nav-active {
  background: var(--ink);
  color: var(--panel);
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-height: 100vh;
  padding: var(--space-6);
  background: #141414;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 1032px;
}

.hero-stage {
  position: relative;
  min-height: 1032px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  overflow: hidden;
  border-radius: 32px;
  background: #e6eef3;
  padding: clamp(48px, 5vw, 96px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 1286px);
  text-align: center;
}

.hero-telegram-zone {
  width: clamp(360px, 30vw, 460px);
  height: clamp(70px, 6vw, 90px);
  display: grid;
  place-items: center;
  padding: 24px 0;
  border-radius: 50%;
}

.hero h1 {
  max-width: 1242px;
  color: #283237;
  font-size: clamp(2.4rem, 2.6vw, 3.125rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.hero-telegram {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  padding: 0 var(--space-12);
  overflow: hidden;
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 11px rgba(255, 255, 255, 0.5);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  white-space: nowrap;
  will-change: transform;
}

.hero-telegram-label {
  display: block;
  will-change: transform;
}

.hero-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  overflow: visible;
}

.hero-nav-card {
  --card-rotate: 0deg;
  --card-skew: 0deg;
  --card-y: 0px;
  position: relative;
  width: clamp(260px, 26.35vw, 506px);
  height: clamp(300px, 19.42vw, 373px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  padding: 0 var(--space-6);
  background: linear-gradient(180deg, #93a8ed 33.16%, #4364d2 100%);
  color: #fff;
  text-align: center;
  box-shadow: none;
  transform-origin: 50% 50%;
  transform: translateY(var(--card-y)) rotate(var(--card-rotate)) skewX(var(--card-skew));
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
  will-change: transform;
}

.hero-nav-card::after {
  display: none;
}

.hero-nav-card img {
  display: none;
}

.hero-nav-card span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.45vw, 1.75rem);
  line-height: 36px;
  white-space: nowrap;
}

.hero-nav-card-left {
  --card-rotate: -4deg;
  --card-skew: 2.47deg;
  z-index: 1;
  margin-right: -110px;
  background: linear-gradient(180deg, #84b5f5 33.16%, #6ac7ef 100%);
}

.hero-nav-card:not(.hero-nav-card-left):not(.hero-nav-card-right) {
  --card-skew: 0.08deg;
  --card-rotate: 4deg;
  --card-y: 0px;
  z-index: 2;
  margin-right: 0;
}

.hero-nav-card-about {
  background: linear-gradient(180deg, #93a8ed 33.16%, #4364d2 100%);
}

.hero-nav-card-right {
  --card-rotate: 4deg;
  --card-skew: -2.31deg;
  z-index: 3;
  background: linear-gradient(180deg, #897cf9 0%, #8145ea 100%);
}

.hero-nav-card:hover {
  transform: translateY(calc(var(--card-y) - 14px)) rotate(var(--card-rotate)) skewX(var(--card-skew));
}

.hero-nav-card-left:hover {
  transform: translateY(calc(var(--card-y) - 14px)) rotate(var(--card-rotate)) skewX(var(--card-skew));
}

.hero-nav-card-right:hover {
  transform: translateY(calc(var(--card-y) - 14px)) rotate(var(--card-rotate)) skewX(var(--card-skew));
}

.prototype-panel {
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #e6eef3;
  padding: 67px 120px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.prototype-panel-inner {
  width: 100%;
  max-width: 1632px;
  margin: 0 auto;
}

.prototype-panel h2 {
  color: #283237;
  font-size: 2.5rem;
  line-height: 1.25;
}

.portfolio-panel {
  min-height: 1530px;
}

.portfolio-panel .prototype-panel-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.portfolio-extra-grid {
  margin-top: 0;
}

.portfolio-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  perspective: 1400px;
}

.portfolio-case-tile,
.quick-shot-tile,
.quick-shot-banner {
  border-radius: 24px;
  background: #dae0eb;
}

.portfolio-case-tile,
.quick-shot-tile {
  position: relative;
  min-height: 588px;
  overflow: hidden;
  contain: layout paint;
}

.portfolio-case-tile {
  display: block;
  padding: 0;
}

.portfolio-case-tile-interactive {
  --portfolio-tilt-x: 0deg;
  --portfolio-tilt-y: 0deg;
  --portfolio-shift-x: 0px;
  --portfolio-shift-y: 0px;
  transform: translate3d(0, 0, 0) rotateX(var(--portfolio-tilt-x)) rotateY(var(--portfolio-tilt-y));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
  will-change: transform;
}

.portfolio-case-tile-interactive:hover,
.portfolio-case-tile-interactive:focus-within {
  z-index: 5;
  filter: saturate(1.04);
  transform: translate3d(0, -16px, 0) rotateX(var(--portfolio-tilt-x)) rotateY(var(--portfolio-tilt-y));
}

.portfolio-tile-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.portfolio-mark {
  width: 77px;
  height: 45px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #283237;
  color: #eef4f7;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

.portfolio-brand-lines {
  display: grid;
  gap: 8px;
  width: 190px;
  padding-top: 2px;
}

.portfolio-brand-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(40, 50, 55, 0.16);
}

.portfolio-brand-lines span:nth-child(2) {
  width: 42%;
}

.portfolio-cover-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.portfolio-cover-stage-disabled {
  cursor: none;
}

.portfolio-case-tile-locked {
  --locked-cursor-x: 50%;
  --locked-cursor-y: 50%;
}

.locked-cursor-label {
  position: absolute;
  left: var(--locked-cursor-x);
  top: var(--locked-cursor-y);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-height: 41px;
  border-radius: 14px;
  padding: 12px;
  background: rgba(16, 33, 65, 0.5);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  text-rendering: geometricPrecision;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(16, 33, 65, 0.16);
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 140ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.portfolio-case-tile-locked:hover .locked-cursor-label,
.portfolio-case-tile-locked:focus-within .locked-cursor-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.case-cover-image-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 588px;
  overflow: hidden;
  border-radius: 24px;
  transform: translateZ(0);
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms ease;
  will-change: transform;
}

.case-cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.001);
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
  will-change: transform;
}

.case-cover-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: var(--space-4);
  align-items: start;
  padding: 0 32px 32px;
  color: #283237;
  text-align: left;
  pointer-events: none;
  transform: translate3d(0, 0, 22px);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.portfolio-case-tile-interactive:hover .case-cover-image-shell,
.portfolio-case-tile-interactive:focus-within .case-cover-image-shell {
  box-shadow: 0 30px 70px rgba(16, 33, 65, 0.18);
  transform: translateZ(22px);
}

.portfolio-case-tile-interactive:hover .case-cover-image,
.portfolio-case-tile-interactive:focus-within .case-cover-image {
  filter: saturate(1.05) contrast(1.02);
  transform: translate3d(var(--portfolio-shift-x), var(--portfolio-shift-y), 0) scale(1.055);
}

.portfolio-case-tile-interactive:hover .case-cover-overlay,
.portfolio-case-tile-interactive:focus-within .case-cover-overlay {
  transform: translate3d(calc(var(--portfolio-shift-x) * -0.35), calc(var(--portfolio-shift-y) * -0.35), 34px);
}

.portfolio-case-tile .case-cover-image-shell,
.portfolio-case-tile .case-cover-image,
.portfolio-case-tile .case-cover-overlay,
.portfolio-case-tile .local-cover,
.portfolio-case-tile .local-cover *,
.portfolio-case-tile .animated-cover,
.portfolio-case-tile .animated-cover * {
  transition: none;
  animation: none;
}

.portfolio-case-tile-interactive:hover .case-cover-image-shell,
.portfolio-case-tile-interactive:focus-within .case-cover-image-shell,
.portfolio-case-tile-interactive:hover .case-cover-image,
.portfolio-case-tile-interactive:focus-within .case-cover-image,
.portfolio-case-tile-interactive:hover .case-cover-overlay,
.portfolio-case-tile-interactive:focus-within .case-cover-overlay,
.portfolio-case-tile:hover .local-cover,
.portfolio-case-tile:focus-within .local-cover,
.portfolio-case-tile:hover .local-cover *,
.portfolio-case-tile:focus-within .local-cover *,
.portfolio-case-tile:hover .animated-cover,
.portfolio-case-tile:focus-within .animated-cover,
.portfolio-case-tile:hover .animated-cover *,
.portfolio-case-tile:focus-within .animated-cover * {
  filter: none;
  transform: none;
}

@media (hover: none) {
  .about-trail-layer {
    display: none;
  }

  .portfolio-case-tile-interactive,
  .portfolio-case-tile-interactive:hover,
  .portfolio-case-tile-interactive:focus-within,
  .portfolio-case-tile-interactive:hover .case-cover-image-shell,
  .portfolio-case-tile-interactive:focus-within .case-cover-image-shell,
  .portfolio-case-tile-interactive:hover .case-cover-image,
  .portfolio-case-tile-interactive:focus-within .case-cover-image,
  .portfolio-case-tile-interactive:hover .case-cover-overlay,
  .portfolio-case-tile-interactive:focus-within .case-cover-overlay {
    transform: none;
    filter: none;
    box-shadow: none;
  }

  .portfolio-cover-stage-disabled {
    cursor: default;
  }
}

.case-cover-overlay h3 {
  max-width: 100%;
  color: #283237;
  font-size: 1.55rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.case-cover-overlay p {
  margin-top: 4px;
  color: rgba(40, 50, 55, 0.68);
  font-size: 0.95rem;
  line-height: 1.28;
}

.case-cover-lock {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.animated-cover {
  position: relative;
  width: 100%;
  height: 319px;
  overflow: visible;
  border-radius: 24px;
  isolation: isolate;
}

.figma-case-cover {
  height: 319px;
  overflow: visible;
}

.figma-phone {
  position: absolute;
  overflow: hidden;
  border: 4px solid #f9fbfc;
  border-radius: 34px;
  background: #fffdf7;
  box-shadow: 0 24px 55px rgba(40, 50, 55, 0.2);
}

.figma-phone-left {
  left: 0.5%;
  top: 30px;
  z-index: 2;
  width: 41.5%;
  height: 318px;
}

.figma-phone-right {
  right: -3%;
  top: 5px;
  z-index: 3;
  width: 41.5%;
  height: 318px;
}

.figma-phone-small {
  left: 33%;
  top: 0;
  z-index: 1;
  width: 30.75%;
  height: 297px;
  border-radius: 30px;
}

.figma-phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: #283237;
  transform: translateX(-50%);
}

.figma-phone-small .figma-phone-island {
  width: 42px;
  height: 12px;
}

.figma-phone-icons {
  position: absolute;
  top: 13px;
  left: 20px;
  right: 20px;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(40, 50, 55, 0.42) 0 12%, transparent 12% 78%, rgba(40, 50, 55, 0.36) 78% 100%);
}

.figma-phone-screen {
  position: absolute;
  inset: 4px;
  overflow: hidden;
  border-radius: 28px;
  background: #f7f4ed;
  color: #283237;
  padding: 18px 11px 12px;
  font-family: var(--font-display);
  font-weight: 300;
}

.figma-phone-small .figma-phone-screen {
  border-radius: 24px;
  padding: 18px 9px 10px;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  margin-bottom: 16px;
}

.phone-top-bar span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid rgba(40, 50, 55, 0.8);
}

.phone-top-bar i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dae0eb;
}

.figma-phone-screen h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.15;
}

.figma-phone-screen p {
  color: rgba(40, 50, 55, 0.66);
  font-size: 0.48rem;
  line-height: 1.25;
}

.phone-form-link,
.phone-hint {
  color: rgba(40, 50, 55, 0.6);
  font-size: 0.48rem;
  line-height: 1.3;
}

.phone-form-link {
  margin-bottom: 4px;
}

.phone-input,
.phone-search,
.phone-button,
.route-card,
.route-next,
.phone-menu-grid span {
  border-radius: 13px;
  background: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(40, 50, 55, 0.05);
}

.phone-input {
  height: 42px;
  margin-bottom: -18px;
  padding: 8px 9px;
  color: rgba(40, 50, 55, 0.48);
  font-size: 0.66rem;
}

.phone-hint {
  display: flex;
  gap: 5px;
  margin: 28px 0 84px;
}

.phone-hint::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 2px;
  border-radius: 50%;
  background: #6a89ef;
}

.phone-back {
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(40, 50, 55, 0.75);
}

.phone-button {
  height: 39px;
  display: grid;
  place-items: center;
  color: #283237;
  font-size: 0.55rem;
  text-align: center;
}

.phone-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: -2px;
}

.phone-menu-grid span {
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  padding: 0 6px 5px;
  color: rgba(40, 50, 55, 0.72);
  font-size: 0.5rem;
}

.phone-menu-grid span:first-child {
  grid-column: span 2;
}

.phone-search {
  height: 42px;
  margin-top: 9px;
  padding: 11px 9px;
  font-size: 0.6rem;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.phone-gallery span {
  min-height: 66px;
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  background: #dae0eb;
  padding: 5px;
  color: rgba(40, 50, 55, 0.72);
  font-size: 0.38rem;
  line-height: 1.15;
}

.screen-route h4 {
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 0.75rem;
}

.route-card {
  min-height: 25px;
  margin-top: 8px;
  padding: 6px 7px;
}

.route-card span {
  display: block;
  font-size: 0.38rem;
  line-height: 1.15;
}

.route-card span + span {
  margin-top: 2px;
  color: rgba(40, 50, 55, 0.48);
}

.route-next {
  min-height: 18px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  font-size: 0.4rem;
}

.local-cover {
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.78), transparent 27%),
    linear-gradient(135deg, rgba(246, 250, 252, 0.9), rgba(194, 207, 222, 0.55));
}

.portfolio-case-tile .local-cover {
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.portfolio-case-tile:hover .local-cover,
.portfolio-case-tile:focus-within .local-cover {
  transform: translateY(-8px) scale(1.015);
  filter: saturate(1.04);
}

.cover-logo-row {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-logo-mark {
  width: 77px;
  height: 45px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, transparent 28%, #4364d2 30%, #4364d2 42%, transparent 44%),
    #fff;
  border: 1px solid var(--blue-line);
}

.cover-logo-lines {
  width: 150px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(#283237 0 0) 0 2px / 100% 10px no-repeat,
    linear-gradient(rgba(40, 50, 55, 0.35) 0 0) 0 26px / 42% 8px no-repeat;
  opacity: 0.42;
}

.local-cover-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #283237;
  padding: 0 12px;
  font-size: 0.8rem;
  box-shadow: 0 16px 34px rgba(40, 50, 55, 0.14);
}

.chip-top {
  top: 20px;
  right: 18px;
}

.chip-bottom {
  left: 22px;
  bottom: 22px;
}

.museum-cover .phone-left,
.museum-cover .phone-right {
  animation-play-state: paused;
}

.portfolio-case-tile:hover .museum-cover .phone-left,
.portfolio-case-tile:focus-within .museum-cover .phone-left {
  animation: none;
}

.portfolio-case-tile:hover .museum-cover .phone-right,
.portfolio-case-tile:focus-within .museum-cover .phone-right {
  animation: none;
}

.dashboard-window,
.dashboard-rail,
.builder-board,
.builder-json,
.shot-palette,
.default-card {
  position: absolute;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 44px rgba(40, 50, 55, 0.14);
}

.dashboard-window {
  left: 13%;
  top: 17%;
  width: 66%;
  height: 58%;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dashboard-window span {
  border-radius: 12px;
  background: #e6eef3;
}

.dashboard-rail {
  right: 10%;
  top: 26%;
  width: 13%;
  height: 44%;
  background: #4364d2;
  opacity: 0.82;
}

.portfolio-case-tile:hover .dashboard-window {
  transform: translateX(-8px);
}

.portfolio-case-tile:hover .dashboard-rail {
  transform: translateX(10px);
}

.builder-board {
  left: 10%;
  top: 14%;
  width: 56%;
  height: 66%;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.builder-board span {
  border-radius: 14px;
  background: #dae0eb;
}

.builder-json {
  right: 12%;
  bottom: 18%;
  width: 34%;
  height: 34%;
  display: grid;
  place-items: center;
  background: #283237;
  color: #fffdf7;
  font-size: 1.1rem;
}

.portfolio-case-tile:hover .builder-json {
  transform: translateY(-12px) rotate(2deg);
}

.shot-palette {
  width: 46%;
  height: 42%;
}

.shot-palette.a {
  left: 10%;
  top: 12%;
}

.shot-palette.b {
  right: 12%;
  top: 24%;
  background: rgba(67, 100, 210, 0.78);
}

.shot-palette.c {
  left: 26%;
  bottom: 12%;
  background: rgba(255, 255, 255, 0.7);
}

.portfolio-case-tile:hover .shot-palette.a {
  transform: translate(-8px, -8px);
}

.portfolio-case-tile:hover .shot-palette.b {
  transform: translate(8px, -4px);
}

.portfolio-case-tile:hover .shot-palette.c {
  transform: translateY(10px);
}

.default-card {
  width: 52%;
  height: 40%;
}

.default-card.card-a {
  left: 10%;
  top: 15%;
}

.default-card.card-b {
  right: 11%;
  top: 30%;
  background: rgba(67, 100, 210, 0.26);
}

.default-card.card-c {
  left: 20%;
  bottom: 12%;
  width: 64%;
  height: 20%;
}

.portfolio-case-tile:hover .default-card.card-a {
  transform: rotate(-2deg) translateY(-8px);
}

.portfolio-case-tile:hover .default-card.card-b {
  transform: rotate(2deg) translateY(8px);
}

.dashboard-window,
.dashboard-rail,
.builder-board,
.builder-json,
.shot-palette,
.default-card {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-backdrop {
  position: absolute;
  inset: 14% 7%;
  width: 86%;
  height: 72%;
  border-radius: 28px;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.8) blur(0.2px);
}

.cover-haze {
  position: absolute;
  inset: 8% 4%;
  border-radius: 30px;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.42), rgba(117, 136, 106, 0.14));
}

.phone-pair {
  position: absolute;
  inset: 0;
}

.phone-mockup {
  position: absolute;
  top: 0;
  width: 36%;
  max-width: 193px;
  height: 318px;
  overflow: hidden;
  border: 5px solid #f9fbfc;
  border-radius: 34px;
  background: #fffdf7;
  box-shadow: 0 24px 55px rgba(40, 50, 55, 0.2);
}

.phone-left {
  left: 7%;
  transform: rotate(-4deg);
  animation: none;
}

.phone-right {
  right: 4%;
  transform: rotate(4deg);
  animation: none;
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: #283237;
  transform: translateX(-50%);
}

.phone-screen-title {
  margin: 48px 14px 0;
  color: #283237;
  font-size: 0.92rem;
  line-height: 1.15;
}

.phone-stack,
.phone-bottom-list {
  display: grid;
  gap: 10px;
  margin: 18px 14px 0;
}

.phone-stack span,
.phone-bottom-list span {
  display: block;
  border-radius: 14px;
  background: #e6eef3;
}

.phone-stack span {
  height: 44px;
}

.phone-bottom-list span {
  height: 58px;
  background: #dae0eb;
}

.cover-layer {
  position: absolute;
  z-index: 3;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 253, 247, 0.9);
  color: #283237;
  box-shadow: 0 14px 34px rgba(40, 50, 55, 0.14);
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  transform: translate(-50%, -50%) rotate(var(--rotate));
}

.layer-chip {
  background: #283237;
  color: #fffdf7;
}

.layer-image {
  min-height: 0;
  padding: 0;
  border-radius: 18px;
  object-fit: cover;
}

.layer-motion-float {
  animation: none;
}

.layer-motion-pulse {
  animation: none;
}

.layer-motion-slide {
  animation: none;
}

.portfolio-tile-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: var(--space-4);
  align-items: start;
}

.portfolio-tile-footer h3,
.quick-shot-tile h3 {
  color: #283237;
  font-size: 1.55rem;
  line-height: 1.18;
}

.portfolio-tile-footer p,
.quick-shot-tile p {
  margin-top: 4px;
  color: rgba(40, 50, 55, 0.68);
  font-size: 0.95rem;
  line-height: 1.28;
}

.portfolio-lock-button {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: transparent;
  position: relative;
}

.portfolio-lock-button.is-locked::before,
.portfolio-lock-button.is-locked::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.portfolio-lock-button.is-locked::before {
  top: 9px;
  width: 13px;
  height: 11px;
  border: 2px solid #283237;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.portfolio-lock-button.is-locked::after {
  top: 18px;
  width: 18px;
  height: 14px;
  border-radius: 5px;
  background: #283237;
}

.portfolio-lock-button.is-open::before {
  content: "↗";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #283237;
  font-size: 1.1rem;
  line-height: 1;
}

.quick-shot-banner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 48px;
  color: #fff;
  text-align: left;
  border-radius: 100px;
  background: linear-gradient(0deg, #4364d2 0%, #6a89ef 100%);
  box-shadow: inset 0 0 64px rgba(255, 255, 255, 0.35);
}

.portfolio-panel .quick-shot-banner {
  display: none;
}

.quick-shot-banner:hover {
  background: linear-gradient(0deg, #4364d2 0%, #6a89ef 100%);
}

.quick-shot-banner span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6875rem;
  line-height: normal;
}

.quick-shot-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.quick-shot-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: var(--space-6);
}

.quick-shot-preview {
  position: relative;
  min-height: 386px;
  overflow: hidden;
  border-radius: 22px;
  background: #cfd8e7;
}

.quick-shot-preview img {
  width: 100%;
  height: 100%;
  min-height: 386px;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.86);
}

.shot-cardlet {
  position: absolute;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 18px 40px rgba(40, 50, 55, 0.15);
}

.cardlet-a {
  left: 8%;
  top: 14%;
  width: 42%;
  height: 34%;
}

.cardlet-b {
  right: 9%;
  top: 28%;
  width: 37%;
  height: 43%;
}

.cardlet-c {
  left: 16%;
  bottom: 11%;
  width: 66%;
  height: 18%;
}

.quick-shot-tile footer {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

.quick-shot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-shot-tags span {
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  padding: 6px 10px;
  color: rgba(40, 50, 55, 0.7);
  font-size: 0.8rem;
}

@keyframes coverFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

@keyframes coverFloatReverse {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(14px) rotate(2deg);
  }
}

@keyframes layerFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes layerPulse {
  0%,
  100% {
    scale: 1;
    opacity: 0.92;
  }
  50% {
    scale: 1.05;
    opacity: 1;
  }
}

@keyframes layerSlide {
  0%,
  100% {
    translate: -8px 0;
  }
  50% {
    translate: 8px 0;
  }
}

.portfolio-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.portfolio-placeholder,
.portfolio-placeholder-wide {
  border-radius: 24px;
  background: #dae0eb;
}

.portfolio-placeholder {
  height: 588px;
}

.portfolio-placeholder-wide {
  height: 151px;
}

.experience-panel {
  min-height: 753px;
}

.experience-panel-inner {
  width: 100%;
  max-width: 1632px;
  margin: 0 auto;
}

.experience-panel h2 {
  color: #283237;
  font-size: 2.5rem;
  line-height: 1.25;
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 52px;
  width: 100%;
  margin-top: 48px;
  padding-left: 100px;
}

.experience-row {
  display: grid;
  grid-template-columns: 218px 1px minmax(0, 616px);
  gap: 48px;
  align-items: stretch;
  color: #283237;
}

.experience-company > p {
  font-size: 1rem;
  line-height: 1.25;
}

.experience-company > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.experience-company h3 {
  font-size: 1.375rem;
  line-height: 1.28;
  white-space: nowrap;
}

.experience-logo {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  background: #fff;
  color: #283237;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.experience-logo img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.experience-logo img.experience-icon-cat {
  width: 24px;
  height: 26px;
}

.experience-logo img.experience-icon-freelance {
  width: 24px;
  height: 54px;
}

.experience-line {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(40, 50, 55, 0.12);
}

.experience-row ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 18px;
  color: #283237;
  font-size: 1.125rem;
}

.experience-row li {
  margin: 0;
  line-height: 1.28;
}

.experience-panel.prototype-panel {
  min-height: auto;
  padding: 67px 120px;
}

.experience-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience-panel h2 {
  width: 100%;
  color: #283237;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  line-height: normal;
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  margin-top: 0;
  padding-left: 0;
}

.experience-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  border-bottom: 1px solid rgba(40, 50, 55, 0.2);
  padding-bottom: 48px;
  color: #283237;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
}

.experience-meta {
  display: flex;
  align-items: center;
  gap: clamp(48px, 10.2vw, 196px);
  flex: 0 1 692px;
  min-width: 0;
}

.experience-company {
  width: 250px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 250px;
  min-width: 0;
}

.experience-company > div {
  margin-top: 0;
}

.experience-company > p {
  font-size: inherit;
  line-height: normal;
}

.experience-company h3,
.experience-role,
.experience-period {
  margin: 0;
  color: #283237;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
}

.experience-company h3 {
  white-space: nowrap;
}

.experience-role {
  width: 158px;
  flex: 0 0 158px;
}

.experience-period {
  width: 124px;
  flex: 0 0 124px;
  white-space: nowrap;
}

.experience-logo {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  flex: 0 0 49px;
  border: 1px solid rgba(67, 100, 210, 0.4);
  border-radius: 14px;
  background: #fff;
}

.experience-row-no-divider {
  border-bottom-color: transparent;
}

.experience-logo img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.experience-logo img.experience-icon-runiti {
  width: 29px;
  height: 17px;
}

.experience-logo img.experience-icon-cat {
  width: 24px;
  height: 26px;
}

.experience-points {
  width: min(100%, 616px);
  display: flex;
  flex: 0 1 616px;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  color: #283237;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
  list-style: none;
}

.experience-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  line-height: normal;
}

.experience-points li::before {
  content: "—";
}

.about-panel {
  position: relative;
  min-height: 1228px;
  padding: 67px 120px 96px;
}

.about-trail-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.about-trail-photo {
  position: absolute;
  width: clamp(84px, 7.5vw, 132px);
  height: clamp(84px, 7.5vw, 132px);
  border-radius: 16px;
  object-fit: cover;
  opacity: 0;
  box-shadow: 0 16px 34px rgba(16, 33, 65, 0.16);
  transform: translate3d(-50%, -50%, 0) rotate(var(--trail-rotate)) scale(0.72);
  transition:
    opacity 180ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.about-trail-photo.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) rotate(var(--trail-rotate)) scale(var(--trail-scale));
}

.about-panel-inner {
  position: relative;
  z-index: 4;
  width: min(100%, 573px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  padding-top: 180px;
}

.about-heading {
  position: absolute;
  top: 67px;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #283237;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.about-heading h2 {
  font-size: 40px;
  line-height: normal;
}

.about-heading p {
  color: rgba(40, 50, 55, 0.7);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: normal;
}

.about-vibe {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: #5e7bdb;
  font-family: var(--font-display);
  font-size: 40px;
  font-style: italic;
  font-weight: 300;
  line-height: normal;
  white-space: nowrap;
  pointer-events: none;
}

.about-vibe-left {
  left: 120px;
  top: 913px;
}

.about-vibe-right {
  right: 120px;
  top: 222px;
}

.about-main-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #283237;
}

.about-subtitle {
  margin-top: 4px;
  color: rgba(40, 50, 55, 0.7);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.25;
}

.about-text {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  color: #283237;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  line-height: normal;
}

.about-text p {
  width: 100%;
  line-height: normal;
}

.about-skills {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-skills h3 {
  margin: 0;
  color: #283237;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: normal;
}

.about-skills div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.about-skills span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: #fff;
  padding: 0 16px;
  color: #283237;
  font-size: 1rem;
  white-space: nowrap;
}

.about-photo {
  width: 573px;
  height: 573px;
  max-width: 100%;
  flex: 0 0 auto;
  border-radius: 20px;
  object-fit: cover;
}

.final-cta-panel {
  position: relative;
  min-height: 361px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
  border-radius: 32px;
  padding: 120px;
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 61.5px rgba(255, 255, 255, 0.3);
}

.final-cta-panel h2 {
  width: 100%;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.25;
  text-align: center;
}

.final-cta-panel a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  padding: 0 24px;
  color: #4364d2;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.case-card,
.shot-card,
.experience-item,
.side-panel,
.resume-block,
.admin-panel,
.admin-hero,
.case-hero,
.in-progress-strip,
.empty-state,
.footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.case-actions,
.footer-actions,
.admin-actions,
.short-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.button,
.text-link,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.button {
  padding: 0 var(--space-5);
}

.button.primary {
  background: var(--coral);
  color: #fffdf7;
  border-color: color-mix(in oklch, var(--coral) 75%, black);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

.button.danger {
  background: #fff;
  color: #b33928;
  border-color: rgba(179, 57, 40, 0.4);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.button:hover,
.text-link:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.compact {
  min-height: 44px;
  padding: 0 var(--space-4);
  font-size: 0.92rem;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 80px 0 0;
}

.section-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(260px, 420px);
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  line-height: 1.08;
}

.section-header p:last-child {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.case-card {
  overflow: hidden;
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--line);
}

.case-media img,
.shot-card img,
.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.case-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.case-body {
  padding: var(--space-5);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.case-meta.large {
  margin: 22px 0;
  font-size: 0.95rem;
}

.case-card h3 {
  margin-top: var(--space-3);
  font-size: clamp(1.32rem, 2vw, 1.95rem);
  line-height: 1.15;
}

.case-card p {
  margin-top: 14px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span,
.badge,
.skill-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.68);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
}

.tone-sage {
  background: var(--sage-soft);
  border-color: color-mix(in oklch, var(--sage) 45%, white);
}

.tone-coral {
  background: var(--coral-soft);
  border-color: color-mix(in oklch, var(--coral) 45%, white);
}

.tone-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}

.tone-muted {
  background: #ebe7dd;
}

.tone-line {
  background: transparent;
}

.case-actions {
  margin-top: 22px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  overflow: hidden;
}

.shot-card img {
  aspect-ratio: 4 / 3;
}

.shot-card div {
  padding: 18px;
}

.shot-card h3,
.experience-item h3,
.resume-block h2,
.admin-panel h2 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
}

.shot-card p {
  color: var(--muted);
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-item {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.experience-item p,
.experience-item li {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 80px;
  padding: var(--space-8);
}

.footer h2 {
  margin-top: var(--space-2);
  font-size: clamp(1.7rem, 3.2vw, 3.1rem);
}

.modal-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 21, 18, 0.55);
}

.short-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
}

.short-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(16px);
}

.progress-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.progress-row button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
}

.progress-row button.active {
  background: var(--ink);
}

.icon-button {
  width: 44px;
  padding: 0;
  border-color: var(--line);
  background: var(--panel);
  font-size: 1.5rem;
}

.short-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.short-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 44px;
}

.short-copy h2 {
  margin-top: var(--space-4);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.short-copy p {
  margin-top: 22px;
  color: var(--muted);
}

.short-controls {
  margin-top: 30px;
}

.image-block {
  position: relative;
  margin: 0;
  min-height: 360px;
  background: #e8e2d6;
}

.image-block figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--muted);
  font-size: 0.78rem;
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--muted);
}

.asset-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(40, 50, 55, 0.05) 25%, transparent 25% 75%, rgba(40, 50, 55, 0.05) 75%),
    linear-gradient(45deg, rgba(40, 50, 55, 0.05) 25%, transparent 25% 75%, rgba(40, 50, 55, 0.05) 75%),
    #fff;
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
  color: rgba(40, 50, 55, 0.5);
  font-size: 0.95rem;
}

.text-link {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.case-page,
.resume-page,
.admin-page,
.narrow-page {
  padding-top: 10px;
}

.case-template-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #141414;
}

.case-template-hero,
.case-template-section {
  width: 100%;
  align-self: stretch;
  overflow: hidden;
  border-radius: 32px;
  background: #e6eef3;
}

.case-template-hero {
  position: relative;
  min-height: 1032px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  padding: 120px 24px 67px;
}

.case-template-nav {
  position: fixed;
  top: 48px;
  left: 48px;
  right: 48px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 300;
}

.case-template-hero > .case-template-nav,
.quick-shot-frame > .quick-shot-header {
  display: none;
}

.case-template-nav > * {
  pointer-events: auto;
}

.case-back-button,
.case-template-telegram,
.case-template-cv {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 1rem;
  white-space: nowrap;
}

.case-back-button {
  background: #283237;
  color: #e6eef3;
}

.case-template-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.case-floating-back {
  position: fixed;
  display: none;
  left: 48px;
  bottom: 48px;
  z-index: 10000;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 1000px;
  background: #bad1e0;
  color: #283237;
  font-size: 0;
  box-shadow: none;
}

.case-floating-back::before,
.case-floating-back:hover::before,
.case-floating-back:focus-visible::before {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 0;
  opacity: 1;
  transform: rotate(180deg);
}

.case-floating-back:hover,
.case-floating-back:focus-visible {
  background: #adc8da;
  transform: translateY(-1px);
}

.case-template-telegram {
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 6.6px rgba(255, 255, 255, 0.4);
  color: #fff;
}

.case-template-cv {
  background: #fff;
  color: #283237;
  border-radius: 14px;
}

.case-template-hero h1 {
  width: min(100%, 804px);
  color: #283237;
  font-size: clamp(2rem, 2.6vw, 3.125rem);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.case-hero-image {
  width: min(100%, 1080px);
  height: auto;
  aspect-ratio: 1080 / 643;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
}

.case-hero-image img,
.case-screen-image img,
.case-card-image img,
.case-wide-image img {
  width: 100%;
  height: 100%;
}

.case-hero-image img {
  object-fit: cover;
}

.case-screen-image img,
.case-card-image img,
.case-wide-image img {
  object-fit: contain;
}

.case-template-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  padding: 67px 24px;
}

.case-content-section {
  gap: 96px;
}

.case-content-block {
  width: min(100%, 804px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.case-problem-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  border: 1px solid rgba(186, 203, 255, 0.4);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  color: #283237;
}

.case-problem-section {
  min-width: 0;
}

.case-problem-card h2,
.case-feature-card h2,
.case-wide-card h2 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.case-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.case-copy p,
.case-centered-heading p,
.case-feature-card p,
.case-wide-card p {
  color: #283237;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
}

.case-centered-heading {
  width: min(100%, 804px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #283237;
  text-align: center;
}

.case-centered-heading h2 {
  max-width: 804px;
  font-size: 2.5rem;
  line-height: 1.22;
  white-space: pre-wrap;
}

.case-centered-heading p {
  width: min(100%, 552px);
}

.case-large-heading h2 {
  font-size: 2.5rem;
}

.case-small-heading h2 {
  font-size: 1.375rem;
}

.case-role-grid {
  width: min(100%, 804px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-role-grid.is-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.case-role-grid.is-centered .case-role-card {
  flex: 0 1 calc((100% - 48px) / 3);
}

.case-role-section {
  gap: 32px;
}

.case-role-card {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 46.6px rgba(255, 255, 255, 0.3);
  color: #fff;
  text-align: center;
}

.case-role-card p {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.case-screen-feature {
  gap: 24px;
}

.case-screen-image {
  width: min(100%, 804px);
  height: 533px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
}

.case-two-card-grid {
  width: min(100%, 804px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 390px));
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}

.case-feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  padding: 28px;
  color: #283237;
}

.case-feature-card > div:first-child,
.case-wide-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-feature-card.is-blue {
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 61.5px rgba(255, 255, 255, 0.3);
  color: #fff;
}

.case-feature-card.is-blue h2,
.case-feature-card.is-blue p {
  color: #fff;
}

.case-card-image {
  width: 100%;
  height: 307px;
  flex: 0 0 307px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.case-wide-card {
  width: 100%;
  min-height: 662px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  padding: 28px;
  color: #283237;
}

.case-wide-card.is-blue {
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 61.5px rgba(255, 255, 255, 0.3);
  color: #fff;
}

.case-wide-card.is-blue h2,
.case-wide-card.is-blue p {
  color: #fff;
}

.case-wide-image {
  flex: 0 0 520px;
  height: 520px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.admin-page {
  min-height: 100vh;
  margin: calc(var(--space-5) * -1) 0 calc(var(--space-12) * -1);
  padding: var(--space-5) 0 var(--space-12);
  background: #e6eef3;
  max-width: 100%;
  overflow-x: hidden;
}

.shots-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: var(--space-8) 0;
}

.shots-placeholder {
  width: min(100%, 960px);
  border-radius: 32px;
  background: #e6eef3;
  padding: clamp(32px, 7vw, 96px);
  color: #283237;
}

.shots-placeholder h1 {
  margin-top: var(--space-2);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.08;
}

.shots-placeholder p:not(.eyebrow) {
  max-width: 620px;
  margin: var(--space-5) 0 var(--space-8);
  color: rgba(40, 50, 55, 0.72);
}

.quick-shot-page {
  min-height: 100vh;
  padding: 24px;
  background: #141414;
}

.quick-shot-frame {
  position: relative;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 32px;
  background: #e6eef3;
  color: #283237;
}

.quick-shot-header {
  position: fixed;
  top: 48px;
  left: 48px;
  right: 48px;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 300;
}

.quick-shot-header > * {
  pointer-events: auto;
}

.quick-shot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-shot-nav-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #fff;
  padding: 8px 16px;
  color: #283237;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.25;
  white-space: nowrap;
}

.quick-shot-nav-back {
  background: #283237;
  color: #fff;
}

.quick-shot-nav-primary {
  color: #fff;
  background: linear-gradient(0deg, #4364d2 0%, #6a89ef 100%);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.35);
}

.case-back-button,
.quick-shot-nav-back,
.home-header-button-primary,
.case-template-telegram,
.quick-shot-nav-primary,
.home-header-button:not(.home-header-button-primary),
.case-template-cv,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary) {
  --nav-icon-size: 16px;
  --nav-icon-gap: 8px;
  overflow: hidden;
  gap: 0;
  transition:
    gap 360ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    transform 260ms ease;
}

.case-back-button::before,
.quick-shot-nav-back::before,
.home-header-button-primary::after,
.case-template-telegram::after,
.quick-shot-nav-primary::after,
.home-header-button:not(.home-header-button-primary)::after,
.case-template-cv::after,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary)::after {
  content: "";
  width: 0;
  height: var(--nav-icon-size);
  flex: 0 0 0;
  opacity: 0;
  background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
  transition:
    width 360ms cubic-bezier(0.22, 1, 0.36, 1),
    flex-basis 360ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-back-button,
.quick-shot-nav-back {
  --nav-icon: url("assets/icons/arrow-right.svg");
}

.case-back-button::before,
.quick-shot-nav-back::before {
  margin-right: 0;
  transform: translateX(-10px);
}

.home-header-button-primary,
.case-template-telegram,
.quick-shot-nav-primary {
  --nav-icon: url("assets/icons/telegram.svg");
}

.home-header-button:not(.home-header-button-primary),
.case-template-cv,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary) {
  --nav-icon: url("assets/icons/file-user.svg");
}

.home-header-button-primary::after,
.case-template-telegram::after,
.quick-shot-nav-primary::after,
.home-header-button:not(.home-header-button-primary)::after,
.case-template-cv::after,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary)::after {
  margin-left: 0;
  transform: translateX(10px);
}

.case-back-button:hover::before,
.case-back-button:focus-visible::before,
.quick-shot-nav-back:hover::before,
.quick-shot-nav-back:focus-visible::before,
.home-header-button-primary:hover::after,
.home-header-button-primary:focus-visible::after,
.case-template-telegram:hover::after,
.case-template-telegram:focus-visible::after,
.quick-shot-nav-primary:hover::after,
.quick-shot-nav-primary:focus-visible::after,
.home-header-button:not(.home-header-button-primary):hover::after,
.home-header-button:not(.home-header-button-primary):focus-visible::after,
.case-template-cv:hover::after,
.case-template-cv:focus-visible::after,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary):hover::after,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary):focus-visible::after {
  width: var(--nav-icon-size);
  flex-basis: var(--nav-icon-size);
  opacity: 1;
  transform: translateX(0);
}

.case-back-button:hover::before,
.case-back-button:focus-visible::before,
.quick-shot-nav-back:hover::before,
.quick-shot-nav-back:focus-visible::before {
  margin-right: var(--nav-icon-gap);
}

.home-header-button-primary:hover::after,
.home-header-button-primary:focus-visible::after,
.case-template-telegram:hover::after,
.case-template-telegram:focus-visible::after,
.quick-shot-nav-primary:hover::after,
.quick-shot-nav-primary:focus-visible::after,
.home-header-button:not(.home-header-button-primary):hover::after,
.home-header-button:not(.home-header-button-primary):focus-visible::after,
.case-template-cv:hover::after,
.case-template-cv:focus-visible::after,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary):hover::after,
.quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary):focus-visible::after {
  margin-left: var(--nav-icon-gap);
}

.quick-shot-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 120px 67px;
}

.quick-shot-picker h1,
.quick-shot-loading h1,
.quick-shot-result h1 {
  width: min(100%, 1097px);
  color: #283237;
  font-size: clamp(2rem, 2.6vw, 3.125rem);
  line-height: 1.25;
  text-align: center;
}

.quick-shot-case-grid {
  width: min(100%, 1632px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.quick-shot-case-choice {
  border: 0;
  padding: 0;
  text-align: left;
  appearance: none;
}

.quick-shot-loading {
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 120px;
}

.quick-shot-loading-berries {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, #7e9cff 0%, #6a89ef 48%, #5f7ee6 100%);
}

.quick-shot-berry {
  position: absolute;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.74) 22%, rgba(255, 255, 255, 0.24) 54%, transparent 80%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64) 52%, rgba(255, 255, 255, 0.1) 74%, transparent 100%);
  mix-blend-mode: screen;
  filter: blur(28px);
  opacity: 0.88;
  transform-origin: 50% 50%;
  animation: quickShotBerryFloat 7s ease-in-out infinite alternate;
}

.quick-shot-berry-a {
  top: -6%;
  left: 8%;
  width: clamp(180px, 26vw, 420px);
  height: clamp(180px, 26vw, 420px);
  animation-duration: 8s;
}

.quick-shot-berry-b {
  top: 10%;
  right: 10%;
  width: clamp(150px, 22vw, 340px);
  height: clamp(150px, 22vw, 340px);
  animation-duration: 6.25s;
  animation-delay: -1.5s;
}

.quick-shot-berry-c {
  bottom: -12%;
  left: 20%;
  width: clamp(220px, 30vw, 500px);
  height: clamp(220px, 30vw, 500px);
  animation-duration: 9s;
  animation-delay: -2.25s;
}

.quick-shot-berry-d {
  bottom: 8%;
  right: 18%;
  width: clamp(160px, 20vw, 300px);
  height: clamp(160px, 20vw, 300px);
  animation-duration: 5.75s;
  animation-delay: -3s;
}

.quick-shot-berry-e {
  top: 38%;
  left: 39%;
  width: clamp(130px, 16vw, 220px);
  height: clamp(130px, 16vw, 220px);
  animation-duration: 5s;
  animation-delay: -1.25s;
}

.quick-shot-berry-f {
  top: 54%;
  right: -5%;
  width: clamp(210px, 24vw, 360px);
  height: clamp(210px, 24vw, 360px);
  animation-duration: 8.5s;
  animation-delay: -4s;
}

.quick-shot-loading-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.loading-dots {
  display: inline-flex;
  width: 0.72em;
  justify-content: flex-start;
  overflow: hidden;
  vertical-align: baseline;
}

.loading-dots span {
  animation: loadingDot 1.05s infinite both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.quick-shot-result {
  --quick-shot-content-width: 1097px;
  --quick-shot-photo-width: clamp(300px, calc((100vw - 144px) / 2), 804px);
  min-height: 1460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 91px;
}

.quick-shot-result > h1 {
  width: min(100%, var(--quick-shot-content-width));
}

.quick-shot-photo-strip {
  width: 100%;
  align-self: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-top: 52px;
  border-radius: 32px;
}

.quick-shot-photo-strip::-webkit-scrollbar {
  display: none;
}

.quick-shot-photo-track {
  width: max-content;
  display: flex;
  gap: 24px;
}

.quick-shot-photo {
  width: var(--quick-shot-photo-width);
  flex: 0 0 var(--quick-shot-photo-width);
  height: calc(var(--quick-shot-photo-width) * 533 / 804);
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.quick-shot-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.quick-shot-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 70px 48px 56px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: galleryFadeIn 260ms ease both;
}

.quick-shot-gallery-stage {
  width: min(100%, 1080px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quick-shot-gallery-image {
  width: min(100%, 1080px);
  height: min(715px, calc(100vh - 285px));
  min-height: 320px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  animation: galleryImageOpen 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quick-shot-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.quick-shot-gallery-close {
  position: fixed;
  top: 48px;
  right: 48px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  box-shadow: inset 0 0 12.3px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.quick-shot-gallery-close:hover,
.quick-shot-gallery-close:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 12.3px rgba(255, 255, 255, 0.25),
    0 14px 36px rgba(67, 100, 210, 0.35);
}

.quick-shot-gallery-close span,
.quick-shot-gallery-close span::before {
  width: 24px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #fff;
}

.quick-shot-gallery-close span {
  transform: rotate(45deg);
}

.quick-shot-gallery-close span::before {
  content: "";
  transform: rotate(90deg);
}

.quick-shot-gallery-thumbs {
  --gallery-thumb-gap: 12px;
  --gallery-thumb-visible: 6;
  width: min(100%, 1080px);
  display: flex;
  gap: var(--gallery-thumb-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px;
  scrollbar-width: none;
}

.quick-shot-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.quick-shot-gallery-thumb {
  position: relative;
  width: calc((min(100vw - 96px, 1080px) - (var(--gallery-thumb-visible) - 1) * var(--gallery-thumb-gap)) / var(--gallery-thumb-visible));
  height: 125px;
  flex: 0 0 calc((min(100vw - 96px, 1080px) - (var(--gallery-thumb-visible) - 1) * var(--gallery-thumb-gap)) / var(--gallery-thumb-visible));
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.quick-shot-gallery-thumb:hover,
.quick-shot-gallery-thumb:focus-visible {
  transform: scale(1.025);
}

.quick-shot-gallery-thumb.is-active {
  cursor: default;
}

.quick-shot-gallery-thumb.is-active:hover,
.quick-shot-gallery-thumb.is-active:focus-visible {
  transform: scale(1.025);
}

.quick-shot-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.quick-shot-gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    inset 0 0 0 2px #4364d2,
    inset 0 0 11.9px 2px #4364d2;
  transition: opacity 220ms ease;
}

.quick-shot-gallery-thumb.is-active::after {
  opacity: 1;
}

.quick-shot-text-card {
  width: min(100%, var(--quick-shot-content-width));
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 52px;
  border-radius: 32px;
  background: #fff;
  padding: 24px;
}

.quick-shot-text-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #283237;
}

.quick-shot-text-group h2 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.quick-shot-subtitle {
  color: rgba(40, 50, 55, 0.72);
}

.quick-shot-text-group p,
.quick-shot-text-group li {
  color: #283237;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
}

.quick-shot-text-group p {
  white-space: pre-line;
}

.quick-shot-text-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
}

@keyframes loadingDot {
  0%,
  20% {
    opacity: 0.18;
    transform: translateY(0);
  }
  45% {
    opacity: 1;
    transform: translateY(-3px);
  }
  80%,
  100% {
    opacity: 0.18;
    transform: translateY(0);
  }
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes galleryImageOpen {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes quickShotBerryFloat {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(0.96) rotate(0deg);
  }

  25% {
    transform: translate3d(4%, -5%, 0) scale(1.04) rotate(8deg);
  }

  50% {
    transform: translate3d(-2%, 4%, 0) scale(1.08) rotate(-6deg);
  }

  75% {
    transform: translate3d(5%, 2%, 0) scale(0.98) rotate(10deg);
  }

  100% {
    transform: translate3d(-4%, 6%, 0) scale(1.05) rotate(-8deg);
  }
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 24px;
  padding: 28px;
}

.case-hero h1,
.resume-hero h1,
.admin-hero h1 {
  margin-top: var(--space-3);
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1.05;
}

.case-hero p,
.resume-hero p,
.admin-hero p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 760px;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.article-copy {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
}

.article-copy p {
  font-size: 1.08rem;
}

.side-panel {
  padding: 24px;
  align-self: start;
}

.side-panel .eyebrow:not(:first-child) {
  margin-top: 24px;
}

.in-progress-strip {
  padding: 34px;
  background: var(--coral-soft);
}

.in-progress-strip h2 {
  margin: var(--space-2) 0 var(--space-3);
  font-size: clamp(1.7rem, 3.2vw, 3.2rem);
}

.resume-hero {
  padding: 36px 0 24px;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.resume-contact span,
.resume-contact a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 0 14px;
  color: var(--muted);
}

.resume-block {
  margin-top: 18px;
  padding: 26px;
}

.resume-block p {
  margin-top: 12px;
  max-width: 860px;
  color: var(--muted);
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.resume-case-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.resume-case-list button,
.admin-mini-list button {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tight);
  background: transparent;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
}

.resume-case-list small,
.admin-mini-list small {
  color: var(--muted);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-color: transparent;
  background: #e6eef3;
  box-shadow: none;
}

.admin-status {
  margin: 14px 0;
  border: 0;
  border-radius: 18px;
  background: #dae0eb;
  padding: 12px 16px;
  color: #283237;
}

.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.admin-layout.expanded {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  margin-top: 16px;
}

.admin-side-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-panel {
  padding: 22px;
  border-color: transparent;
  background: #e6eef3;
  box-shadow: none;
  min-width: 0;
}

.admin-cover-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(220px, 1fr);
  gap: var(--space-4);
  align-items: center;
  border-radius: 24px;
  background: #dae0eb;
  padding: var(--space-4);
  min-width: 0;
}

.admin-cover-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #eef4f7;
  color: rgba(40, 50, 55, 0.62);
}

.admin-cover-preview img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
}

.admin-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.admin-panel label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
}

.admin-panel label.button {
  display: inline-flex;
  gap: var(--space-2);
  margin-top: 0;
  color: inherit;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-tight);
  background: #fff;
  padding: 10px 12px;
  color: #283237;
}

.admin-panel input[type="color"] {
  min-height: 44px;
  padding: 6px;
  cursor: pointer;
}

.admin-panel textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-panel.editor textarea {
  min-height: 640px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 1px dashed var(--blue-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  padding: 24px;
  text-align: center;
}

.admin-empty p,
.admin-json-note {
  margin: 0;
  color: rgba(40, 50, 55, 0.68);
  font-size: 0.9rem;
  line-height: 1.35;
}

.case-page-builder {
  display: grid;
  gap: 18px;
  border-radius: 28px;
  background: #dae0eb;
  padding: 20px;
}

.admin-add-block-select {
  width: auto;
  min-width: 190px;
}

.admin-case-hero-editor,
.admin-case-block,
.admin-block-item {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px;
}

.admin-case-hero-editor h3,
.admin-case-block h3,
.admin-block-items h3,
.admin-problem-sections h3 {
  margin: 0;
  color: #283237;
  font-size: 1.2rem;
}

.admin-case-block {
  display: grid;
  gap: 16px;
}

.admin-quick-shot-editor {
  display: grid;
  gap: 16px;
}

.admin-shot-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-shot-photo,
.admin-shot-empty {
  border-radius: 18px;
  background: rgba(230, 238, 243, 0.72);
  padding: 12px;
}

.admin-shot-photo {
  display: grid;
  gap: 10px;
}

.admin-shot-photo img {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.admin-shot-photo p,
.admin-shot-empty p {
  margin: 0 0 10px;
  color: rgba(40, 50, 55, 0.7);
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-about-trail-panel {
  display: grid;
  gap: 16px;
}

.admin-about-trail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-side-stack .admin-about-trail-grid {
  grid-template-columns: 1fr;
}

.admin-about-trail-photo,
.admin-about-trail-empty {
  border-radius: 18px;
  background: rgba(230, 238, 243, 0.72);
  padding: 12px;
}

.admin-about-trail-photo {
  display: grid;
  gap: 10px;
}

.admin-about-trail-preview {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.admin-about-trail-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-about-trail-photo p,
.admin-about-trail-empty p {
  margin: 0 0 10px;
  color: rgba(40, 50, 55, 0.7);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-about-trail-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-about-trail-controls label {
  margin-top: 0;
  font-size: 0.78rem;
}

.admin-about-trail-controls input {
  min-height: 38px;
  padding: 8px 10px;
}

.admin-case-block + .admin-case-block {
  margin-top: 14px;
}

.admin-case-block-head,
.admin-block-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-block-controls {
  align-items: flex-end;
}

.admin-block-controls label:first-child {
  flex: 1 1 320px;
}

.admin-checkline {
  min-height: 44px;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  margin: 0 !important;
  color: #283237 !important;
}

.admin-checkline input {
  width: 18px;
  min-height: 18px;
}

.admin-image-picker {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 180px auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  background: #eef4f7;
  padding: 14px;
}

.admin-image-picker p {
  color: #283237;
  line-height: 1.35;
}

.admin-image-picker small {
  display: block;
  margin-top: 6px;
  color: rgba(40, 50, 55, 0.62);
  overflow-wrap: anywhere;
}

.admin-image-preview {
  height: 108px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-block-list,
.admin-block-items,
.admin-problem-sections {
  display: grid;
  gap: 14px;
}

.admin-block-items,
.admin-problem-sections {
  margin-top: 8px;
}

.admin-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

.admin-tabs button {
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--blue-line);
  border-radius: var(--button-radius);
  background: #fff;
  padding: 0 var(--space-3);
  color: #283237;
  white-space: nowrap;
}

.admin-tabs button.active {
  background: linear-gradient(180deg, #4364d2 33.16%, #6a89ef 100%);
  color: #fff;
  border-color: transparent;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: 0;
}

.admin-form-grid label {
  margin-top: 0;
}

.admin-form-grid .admin-wide {
  grid-column: 1 / -1;
}

.admin-editor-panel {
  min-width: 0;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.hidden-input {
  display: none;
}

.empty-state {
  padding: 40px;
}

@media (max-width: 1180px) {
  .site-shell {
    width: calc(100% - 48px);
    padding-top: 120px;
  }

  .home-shell {
    width: 100%;
    padding-top: 0;
  }

  .case-shell {
    padding: 12px;
  }

  .hero-stage {
    padding: var(--space-12) var(--space-6);
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .prototype-panel {
    padding: 56px var(--space-6);
  }

  .portfolio-placeholder {
    height: 420px;
  }

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

  .portfolio-case-tile,
  .quick-shot-tile {
    min-height: 540px;
  }

  .portfolio-panel {
    min-height: auto;
  }

  .experience-panel,
  .about-panel {
    min-height: auto;
  }

  .experience-timeline {
    padding-left: 0;
  }

  .experience-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .experience-meta {
    width: 100%;
    flex: none;
    justify-content: space-between;
    gap: 24px;
  }

  .experience-points {
    width: 100%;
    flex: none;
  }

  .about-panel-inner {
    align-items: center;
    gap: 72px;
  }

  .about-photo {
    width: min(100%, 573px);
    height: auto;
    aspect-ratio: 1;
  }

}

@media (max-width: 980px) {
  .hero-menu {
    gap: 0;
  }

  .hero-nav-card {
    width: calc((100vw - 128px) / 2);
    height: calc((100vw - 128px) / 2.7);
    min-height: 200px;
    padding: var(--space-5);
  }

  .hero-nav-card span {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
  }

  .hero-nav-card-left {
    margin-right: -70px;
    --card-rotate: -4deg;
  }

  .hero-nav-card-right {
    --card-rotate: 4deg;
  }

  .hero-nav-card:not(.hero-nav-card-left):not(.hero-nav-card-right) {
    --card-rotate: 4deg;
    margin-right: 0;
  }

  .hero-nav-card-left:hover {
    transform: translateY(calc(var(--card-y) - 12px)) rotate(var(--card-rotate)) skewX(var(--card-skew));
  }

  .hero-nav-card-right:hover {
    transform: translateY(calc(var(--card-y) - 12px)) rotate(var(--card-rotate)) skewX(var(--card-skew));
  }

  .hero-nav-card:not(.hero-nav-card-left):not(.hero-nav-card-right):hover {
    transform: translateY(calc(var(--card-y) - 12px)) rotate(var(--card-rotate)) skewX(var(--card-skew));
  }
}

@media (max-width: 980px) {
  .case-hero,
  .case-detail-grid,
  .admin-layout,
  .admin-layout.expanded {
    grid-template-columns: 1fr;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .short-content {
    grid-template-columns: 1fr;
  }

  .short-copy {
    min-height: auto;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-cover-tools {
    grid-template-columns: 1fr;
  }

  .admin-shot-photo-grid,
  .admin-about-trail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-template-hero {
    min-height: auto;
  }

  .case-hero-image {
    height: auto;
    aspect-ratio: 1080 / 643;
  }

  .case-template-section {
    padding: 56px 24px;
  }

  .quick-shot-picker {
    padding: 96px 24px 56px;
  }

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

  .case-role-grid,
  .case-two-card-grid {
    grid-template-columns: 1fr;
  }

  .case-role-grid.is-centered .case-role-card {
    flex-basis: 100%;
  }

  .case-screen-image {
    height: auto;
    aspect-ratio: 804 / 533;
  }

  .admin-case-block-head,
  .admin-block-controls,
  .admin-image-picker {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-add-block-select {
    width: 100%;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .experience-line {
    width: 100%;
    height: 1px;
  }

  .experience-row ul {
    max-width: 100%;
  }

  .about-panel-inner {
    flex-direction: column;
    align-items: center;
    gap: 64px;
  }

  .about-copy-block {
    width: 100%;
  }

  .about-photo {
    width: min(100%, 573px);
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 12px;
  }

  p,
  li,
  small,
  .section-header p,
  .case-copy,
  .case-copy p,
  .case-centered-heading p,
  .case-feature-card p,
  .case-wide-card p,
  .case-role-card p,
  .quick-shot-text-group p,
  .quick-shot-text-group li,
  .quick-shot-subtitle,
  .portfolio-tile-footer p,
  .quick-shot-tile p,
  .case-cover-overlay p,
  .experience-points,
  .experience-row ul,
  .about-text,
  .footer p {
    font-size: 12px;
    line-height: 1.35;
  }

  .site-shell {
    width: calc(100% - 24px);
    padding-top: 76px;
  }

  .home-shell {
    width: 100%;
    padding-top: 0;
  }

  .home-main {
    gap: 12px;
    padding: 24px;
  }

  .home-header {
    position: fixed;
    top: 44px;
    left: 44px;
    right: 44px;
    width: auto;
    height: 32px;
  }

  .home-header-actions {
    left: 0;
    right: 0;
    justify-content: space-between;
    gap: 0;
  }

  .home-time {
    display: none;
  }

  .home-header-button {
    min-height: 32px;
    border-radius: 14px;
    padding: 0 var(--space-4);
    font-size: 12px;
  }

  .home-header-button-primary {
    border-radius: 12px;
  }

  .topbar {
    top: 44px;
    left: 48px;
    right: 48px;
    width: auto;
    transform: none;
    align-items: stretch;
    flex-direction: column;
    border-radius: var(--radius);
  }

  .brand-chip {
    justify-content: flex-start;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .topnav button,
  .topnav a {
    padding: 0 8px;
    font-size: 12px;
  }

  .case-template-page {
    align-items: center;
    gap: 12px;
  }

  .case-template-hero,
  .case-template-section {
    width: min(327px, calc(100vw - 48px));
    align-self: center;
    border-radius: 24px;
  }

  .case-template-hero {
    gap: 28px;
    padding: 92px 16px 32px;
  }

  .case-template-nav {
    top: 44px;
    left: 44px;
    right: 44px;
    height: 38px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
  }

  .case-template-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .quick-shot-page {
    padding: 12px;
  }

  .quick-shot-frame {
    min-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .quick-shot-header {
    top: 44px;
    left: 44px;
    right: 44px;
    height: 38px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
  }

  .quick-shot-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .case-template-telegram,
  .case-template-cv,
  .quick-shot-actions .quick-shot-nav-button {
    min-height: 32px;
    padding: 0 16px;
    font-size: 12px;
  }

  .case-template-telegram,
  .quick-shot-actions .quick-shot-nav-primary {
    border-radius: 12px;
  }

  .case-template-cv,
  .quick-shot-actions .quick-shot-nav-button:not(.quick-shot-nav-primary) {
    border-radius: 14px;
  }

  .case-back-button,
  .quick-shot-nav-back {
    --nav-icon-size: 18px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 10px;
    border-radius: 1000px;
    background: #bad1e0;
    color: #283237;
    font-size: 0;
    box-shadow: none;
    transform: none;
    transition:
      background 220ms ease,
      transform 220ms ease;
  }

  .case-template-nav > .case-back-button {
    display: none;
  }

  .case-back-button::before,
  .quick-shot-nav-back::before,
  .case-back-button:hover::before,
  .case-back-button:focus-visible::before,
  .quick-shot-nav-back:hover::before,
  .quick-shot-nav-back:focus-visible::before {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    margin-right: 0;
    opacity: 1;
    transform: none;
  }

  .case-back-button:hover,
  .case-back-button:focus-visible,
  .quick-shot-nav-back:hover,
  .quick-shot-nav-back:focus-visible {
    background: #adc8da;
    transform: translateY(-1px);
  }

  .case-floating-back {
    position: fixed;
    display: inline-flex;
    left: 44px;
    right: auto;
    bottom: 44px;
    top: auto;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .admin-shot-photo-grid,
  .admin-about-trail-grid {
    grid-template-columns: 1fr;
  }

  .quick-shot-picker,
  .quick-shot-result,
  .quick-shot-loading {
    padding: 112px 16px 32px;
  }

  .quick-shot-picker h1,
  .quick-shot-loading h1,
  .quick-shot-result h1 {
    font-size: 1.75rem;
  }

  .quick-shot-case-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .quick-shot-photo-strip,
  .quick-shot-text-card {
    margin-top: 32px;
  }

  .quick-shot-photo-track {
    gap: 12px;
  }

  .quick-shot-photo {
    border-radius: 24px;
  }

  .quick-shot-text-card {
    border-radius: 24px;
    padding: 20px;
  }

  .quick-shot-gallery-modal {
    gap: 18px;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 76px 12px 20px;
  }

  .quick-shot-gallery-close {
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }

  .quick-shot-gallery-stage {
    width: 100%;
    min-height: 0;
    gap: 12px;
  }

  .quick-shot-gallery-image {
    width: 100%;
    height: min(68vh, calc(100vh - 206px));
    min-height: 0;
    border-radius: 24px;
  }

  .quick-shot-gallery-image img {
    object-fit: contain;
  }

  .quick-shot-gallery-thumbs {
    width: 100%;
    gap: 8px;
    padding: 6px 4px;
  }

  .quick-shot-gallery-thumb {
    width: 128px;
    height: 78px;
    flex-basis: 128px;
    border-radius: 14px;
  }

  .case-template-actions {
    width: 100%;
  }

  .case-template-telegram,
  .case-template-cv {
    flex: 1 1 0;
  }

  .case-template-hero h1 {
    font-size: 24px;
  }

  .case-hero-image,
  .case-screen-image,
  .case-wide-card,
  .case-feature-card {
    border-radius: 24px;
  }

  .case-template-section {
    gap: 64px;
    padding: 32px 16px;
  }

  .case-centered-heading h2,
  .case-large-heading h2 {
    font-size: 24px;
  }

  .case-problem-card,
  .case-feature-card,
  .case-wide-card {
    padding: 20px;
  }

  .case-card-image {
    height: 240px;
    flex-basis: 240px;
  }

  .case-wide-image {
    height: 320px;
    flex-basis: 320px;
  }

  .hero {
    height: 685px;
    min-height: 685px;
  }

  .hero-stage {
    height: 685px;
    min-height: 685px;
    justify-content: center;
    gap: 52px;
    border-radius: 32px;
    padding: 0 20px;
  }

  .hero-stage.scroll-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .hero-copy {
    width: 100%;
    gap: 0;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: 24px;
    line-height: normal;
    color: #283237;
  }

  .hero-telegram-zone {
    display: none;
  }

  .hero-menu {
    align-items: center;
    flex-direction: column;
    gap: 16px;
    width: auto;
  }

  .hero-nav-card,
  .hero-nav-card-left,
  .hero-nav-card-right {
    width: 265px;
    height: 106px;
    min-width: 0;
    min-height: 106px;
    margin-right: 0;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    transform: rotate(var(--card-rotate));
  }

  .hero-nav-card:not(.hero-nav-card-left):not(.hero-nav-card-right) {
    --card-rotate: 0deg;
    margin-right: 0;
  }

  .hero-nav-card-left {
    --card-rotate: -4deg;
    --card-skew: 2.47deg;
    width: 265px;
  }

  .hero-nav-card-about {
    --card-rotate: 4deg;
    --card-skew: 0.08deg;
    width: 267px;
  }

  .hero-nav-card-right {
    --card-rotate: 4deg;
    width: 267px;
  }

  .hero-nav-card:hover,
  .hero-nav-card-left:hover,
  .hero-nav-card-right:hover {
    transform: translateY(-6px) rotate(var(--card-rotate));
  }

  .hero-nav-card span {
    font-size: 14px;
    line-height: 1;
  }

  .hero-nav-card img {
    display: none;
  }

  .prototype-panel {
    border-radius: 24px;
    padding: var(--space-8) var(--space-4);
  }

  .prototype-panel h2 {
    font-size: 24px;
  }

  .experience-panel.prototype-panel {
    padding: var(--space-8) var(--space-4);
  }

  .experience-panel h2 {
    font-size: 24px;
  }

  .experience-panel-inner,
  .experience-timeline {
    gap: 32px;
  }

  .experience-row {
    gap: 24px;
    padding-bottom: 32px;
  }

  .experience-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .experience-company,
  .experience-role,
  .experience-period {
    width: 100%;
    flex: none;
  }

  .experience-company {
    gap: 14px;
  }

  .experience-points {
    font-size: 12px;
  }

  .portfolio-panel {
    min-height: auto;
  }

  .portfolio-case-grid,
  .portfolio-placeholder-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .quick-shot-tile {
    min-height: 420px;
    padding: var(--space-5);
  }

  .portfolio-case-tile {
    min-height: 420px;
    padding: 0;
    background: #fff;
  }

  .portfolio-cover-stage,
  .case-cover-image-shell {
    min-height: 420px;
  }

  .case-cover-image-shell {
    padding: 12px;
    background: #fff;
  }

  .case-cover-image {
    height: 100%;
    border-radius: 18px;
    object-fit: contain;
  }

  .case-cover-overlay h3 {
    font-size: 18px;
  }

  .case-cover-overlay p {
    font-size: 12px;
  }

  .figma-phone-left,
  .figma-phone-right {
    height: 238px;
    border-radius: 26px;
  }

  .figma-phone-small {
    height: 222px;
    border-radius: 24px;
  }

  .figma-phone-screen {
    border-radius: 21px;
    padding: 14px 8px 9px;
  }

  .figma-phone-small .figma-phone-screen {
    border-radius: 19px;
    padding: 14px 7px 8px;
  }

  .figma-phone-island {
    width: 32px;
    height: 13px;
  }

  .figma-phone-screen h4 {
    font-size: 0.75rem;
  }

  .phone-input {
    height: 32px;
    margin-bottom: -13px;
    padding: 6px 7px;
  }

  .phone-hint {
    margin: 20px 0 54px;
  }

  .phone-menu-grid {
    gap: 5px;
  }

  .phone-menu-grid span {
    min-height: 30px;
  }

  .phone-search {
    height: 32px;
    margin-top: 6px;
    padding: 8px 7px;
  }

  .phone-gallery {
    gap: 5px;
    margin-top: 6px;
  }

  .phone-gallery span {
    min-height: 45px;
  }

  .portfolio-mark {
    width: 58px;
    height: 38px;
    border-radius: 12px;
  }

  .portfolio-brand-lines {
    width: 150px;
  }

  .animated-cover {
    height: 240px;
  }

  .phone-mockup {
    height: 224px;
    border-width: 4px;
    border-radius: 26px;
  }

  .phone-screen-title {
    margin-top: 40px;
    font-size: 0.74rem;
  }

  .phone-stack span {
    height: 30px;
  }

  .phone-bottom-list span {
    height: 38px;
  }

  .portfolio-tile-footer h3,
  .quick-shot-tile h3 {
    font-size: 18px;
  }

  .case-cover-overlay {
    padding: 0 16px 16px;
  }

  .quick-shot-banner {
    min-height: 98px;
    padding: 0 18px;
  }

  .quick-shot-banner span:first-child {
    font-size: clamp(0.96rem, 4.2vw, 1.08rem);
    line-height: 1;
    white-space: nowrap;
  }

  .quick-shot-arrow {
    width: 28px;
    height: 28px;
  }

  .quick-shot-preview,
  .quick-shot-preview img {
    min-height: 240px;
  }

  .experience-panel,
  .about-panel,
  .final-cta-panel {
    border-radius: 24px;
  }

  .about-panel {
    min-height: auto;
    padding: 48px 16px;
  }

  .about-heading {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .about-heading h2 {
    font-size: 24px;
  }

  .about-heading p {
    font-size: 18px;
  }

  .about-panel-inner {
    width: 100%;
    gap: 40px;
    padding-top: 40px;
  }

  .about-main-block {
    gap: 16px;
  }

  .about-vibe {
    display: none;
  }

  .experience-panel h2,
  .about-panel h2,
  .final-cta-panel h2 {
    font-size: 24px;
  }

  .experience-timeline {
    gap: var(--space-8);
    margin-top: var(--space-8);
  }

  .experience-company h3,
  .about-subtitle,
  .about-skills h3 {
    font-size: 18px;
  }

  .experience-row ul,
  .about-text {
    font-size: 12px;
  }

  .about-skills span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .final-cta-panel {
    min-height: 240px;
    padding: var(--space-12) var(--space-5);
  }

  .portfolio-placeholder {
    height: 190px;
  }

  .portfolio-placeholder-wide {
    height: 80px;
  }

  .fun-panel {
    min-height: 560px;
  }

  .case-actions,
  .footer-actions,
  .admin-actions,
  .short-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .case-actions .button,
  .admin-actions .button {
    width: 100%;
  }

  .section {
    padding-top: 64px;
  }

  .case-body,
  .short-copy,
  .case-hero,
  .resume-block,
  .admin-panel,
  .admin-hero,
  .in-progress-strip,
  .footer {
    padding: 20px;
  }

  .short-modal {
    max-height: calc(100vh - 20px);
  }

  .modal-layer {
    padding: 10px;
  }

  .progress-row button {
    width: 28px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
