:root {
  --bg: #f3f2ee;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #77746d;
  --line: rgba(17, 17, 17, 0.18);
  --soft-line: rgba(17, 17, 17, 0.09);
  --panel: #ebebe5;
  --accent: #8d72f7;
  --accent-2: #d9ccff;
  --accent-button-ink: #10120e;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(17, 17, 17, 0.12);
  --heading-gap: clamp(26px, 4vw, 50px);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 58%, transparent);
}

:root[data-theme="dark"] {
  --bg: #171817;
  --paper: #22231f;
  --ink: #f4f1e8;
  --muted: #aba79c;
  --line: rgba(244, 241, 232, 0.2);
  --soft-line: rgba(244, 241, 232, 0.1);
  --panel: #111210;
  --accent: #d6c7ff;
  --accent-2: #a88cff;
  --accent-button-ink: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(141, 114, 247, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

button,
input,
textarea {
  font: inherit;
  max-width: 100%;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
  white-space: normal;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

button:active:not(:disabled),
a:active {
  transform: translateY(1px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-inline-start: 0;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
}

img,
video {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  min-width: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.nav button,
.icon-button,
.contact-pill,
.ghost-button,
.primary-button,
.choice-card,
.category-links button,
.work-card,
.case-row,
.article-card {
  border: 0;
  background: transparent;
  text-decoration: none;
}

.brand {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}

.brand img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
}

.nav button {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease;
}

.nav button:hover,
.nav button.is-active {
  color: var(--ink);
  background: var(--paper);
}

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

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.mobile-menu {
  display: none;
}

.contact-pill,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
}

.contact-pill,
.primary-button {
  color: var(--accent-button-ink);
  background: var(--accent-2);
}

.ghost-button {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 58%, transparent);
}

.danger {
  color: var(--danger);
}

.section-pad {
  width: min(100%, 1720px);
  margin-inline: auto;
  padding: clamp(42px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.micro-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(11px, 1.15vw, 13px);
  text-transform: uppercase;
}

.hero {
  padding-top: clamp(28px, 5vw, 56px);
}

.hero h1,
.page-head h1 {
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--accent);
  font-size: clamp(68px, 11.8vw, 214px);
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.3fr);
  gap: clamp(18px, 3.6vw, 56px);
  align-items: start;
  margin-top: var(--heading-gap);
}

.hero-grid > *,
.split-feature > *,
.case-teaser > *,
.contacts-layout > *,
.about-layout > *,
.case-hero > *,
.post-detail > *,
.hero-copy,
.case-teaser-copy,
.contact-card-main,
.post-hero {
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-title {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  text-align: left;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.018em;
  text-transform: uppercase;
}

.hero-copy h2,
.split-feature h2,
.case-teaser-copy h2,
.contact-card-main h2,
.post-hero h1,
.case-hero h1 {
  margin: 0;
  max-width: 780px;
  line-height: 0.98;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.028em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
}

.hero-copy p,
.case-teaser-copy p,
.contact-card-main p,
.post-hero p,
.case-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.proof-row,
.filter-row,
.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-row span,
.filter-row button,
.skills-panel span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 48%, transparent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a1b18;
  box-shadow: var(--shadow);
}

.visual-panel img,
.visual-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

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

.visual-marketplace {
  aspect-ratio: 3 / 4;
}

.visual-work {
  aspect-ratio: 3 / 4;
}

.visual-work img,
.visual-work video {
  object-fit: contain;
  background: var(--panel);
}

.visual-wide {
  aspect-ratio: 16 / 10;
}

.visual-portrait {
  aspect-ratio: 3 / 4;
}

.generated-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.8vw, 34px);
  color: #f5f3ea;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.13), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 72% 32%, rgba(174, 142, 255, 0.38), transparent 18rem),
    #171817;
}

.generated-visual span,
.generated-visual em {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.generated-visual strong {
  max-width: 100%;
  font-size: clamp(22px, 3.25vw, 54px);
  line-height: 0.88;
  text-wrap: balance;
  text-transform: uppercase;
}

.categories-section {
  padding-top: 18px;
}

.category-links {
  display: grid;
  grid-template-columns: 1fr;
}

.category-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(58px, 8vw, 78px);
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(24px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.016em;
  text-transform: uppercase;
  transition: color 160ms ease, padding 160ms ease;
}

.category-links button:last-child {
  border-bottom: 1px solid var(--line);
}

.category-links button:hover {
  padding-left: 14px;
  color: var(--accent);
}

.category-links.compact {
  margin-top: 44px;
}

.category-links.compact button {
  min-height: 56px;
  font-size: clamp(22px, 3.4vw, 38px);
}

.split-feature,
.case-teaser,
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
}

.case-teaser {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.split-feature,
.case-teaser {
  align-items: center;
}

.contacts-layout {
  align-items: stretch;
}

.contacts-layout .request-form {
  height: 100%;
}

.choice-grid,
.work-choice-large,
.blog-grid,
.post-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.split-feature .choice-grid {
  grid-template-columns: 1fr;
}

.split-feature .choice-card {
  min-height: 0;
}

.post-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.work-choice-large button {
  min-height: 280px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 2px;
}

.editor-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.editor-toolbar button:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.choice-card:hover,
.work-card:hover,
.case-row:hover,
.article-card:hover,
.work-choice-large button:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: var(--shadow);
}

.choice-card span,
.work-choice-large strong {
  display: block;
  margin: 34px 0 12px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.95;
  font-weight: 700;
}

.choice-card .mini-icon,
.article-visual .mini-icon,
.price-placeholder .mini-icon,
.empty-state .mini-icon,
.profile-icon {
  display: inline-grid;
  margin: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 21px;
  line-height: 1;
}

.row-arrow {
  font-size: 28px;
}

.choice-card small,
.work-choice-large small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.showcase-preview {
  padding-top: 24px;
}

.section-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.section-intro-row h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.section-intro-row > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.45;
}

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

.approach-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.approach-card:nth-child(2),
.approach-card:nth-child(4) {
  color: #f8f6ed;
  border-color: transparent;
  background: var(--accent);
}

.approach-card:nth-child(3),
.approach-card:nth-child(5) {
  color: #f8f6ed;
  border-color: transparent;
  background: #262722;
}

.approach-card h3,
.workflow-step h3,
.pricing-card h3,
.pricing-extras h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.approach-card p {
  max-width: 34ch;
  margin: 32px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.approach-card:nth-child(2) p,
.approach-card:nth-child(3) p,
.approach-card:nth-child(4) p,
.approach-card:nth-child(5) p {
  color: rgba(248, 246, 237, 0.78);
}

.workflow-section {
  border-top: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 7vw, 120px);
}

.workflow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 150px;
  padding: 24px 0;
  border-top: 1px solid var(--soft-line);
}

.workflow-step > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
}

.workflow-step p {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-section {
  background: color-mix(in srgb, var(--accent-2) 18%, var(--bg));
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.7fr);
  gap: 14px;
}

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

.pricing-card,
.pricing-extras {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}

.pricing-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
}

.pricing-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pricing-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-index {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.pricing-card-head > strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent-2);
  font-size: clamp(18px, 2.2vw, 28px);
  white-space: nowrap;
}

.pricing-subtitle {
  min-height: 44px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 18px;
  line-height: 1.35;
}

.pricing-card li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "•";
}

.pricing-card small {
  margin-top: auto;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
}

.pricing-extras {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 28px);
}

.pricing-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.pricing-extra strong {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--accent-2);
  white-space: nowrap;
}

.pricing-extras > p {
  margin: auto 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-contact-section {
  border-top: 1px solid var(--line);
}

.home-contact-heading h2 {
  max-width: 980px;
  margin: 0 0 clamp(32px, 5vw, 60px);
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.home-contact-heading h2 span {
  color: var(--accent);
}

.home-contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 7vw, 120px);
  align-items: stretch;
}

.home-contact-photo {
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
}

.home-contact-photo img,
.home-contact-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-contact-form {
  align-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-contact-form > p {
  max-width: 540px;
  margin: 0 0 26px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.home-contact-form input,
.home-contact-form textarea {
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}

.work-choice-large,
.page-head h1 + .blog-grid,
.page-head h1 + .case-list {
  margin-top: var(--heading-gap);
}

.about-page .page-head,
.contacts-page .page-head {
  margin-bottom: var(--heading-gap);
}

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

.gallery-grid,
.blog-grid,
.case-list {
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

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

.work-article-card .article-cover {
  aspect-ratio: 3 / 4;
}

.work-article-card .article-cover img,
.work-article-card .article-cover video {
  object-fit: contain;
  background: var(--panel);
}

.work-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card.is-wide {
  grid-column: auto;
}

.work-meta {
  display: grid;
  gap: 4px;
  padding: 0 2px 8px;
}

.work-meta strong {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
}

.work-meta small,
.slide-count,
.case-row-copy small,
.article-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.slide-count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #f7f6ef;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.filter-row {
  margin: var(--heading-gap) 0 28px;
}

.filter-row button {
  cursor: pointer;
}

.filter-row button.is-active {
  color: var(--accent-button-ink);
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.case-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.case-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.7fr) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
}

.case-row-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.case-row-copy strong {
  font-size: clamp(26px, 4vw, 54px);
  line-height: 0.96;
  font-weight: 700;
}

.case-row-copy em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
}

.case-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 12px;
  margin-top: 52px;
  align-items: stretch;
}

.info-block {
  min-height: 0;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-block h2,
.comments-block h2,
.reactions-block h2,
.skills-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
}

.info-block p,
.post-body p,
.rich-text p,
.rich-text li,
.comment-card p {
  color: var(--muted);
  line-height: 1.65;
}

.rich-text {
  display: grid;
  gap: 18px;
}

.rich-text p,
.rich-text ul,
.rich-text blockquote,
.rich-text h2,
.rich-text h3 {
  margin: 0;
}

.rich-text h2,
.rich-text h3 {
  color: var(--ink);
  letter-spacing: -0.018em;
}

.rich-text h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.rich-text h3 {
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
}

.rich-text ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1em;
}

.rich-text strong {
  color: var(--ink);
}

.rich-text em {
  color: var(--ink);
}

.rich-text u {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rich-text del {
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.rich-text hr {
  width: 100%;
  margin: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.tg-quote {
  position: relative;
  padding: 14px 16px 14px 20px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 46%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-2) 14%, var(--paper));
  line-height: 1.55;
}

.tg-quote::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.tg-quote-accent {
  padding: 18px 20px 18px 26px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

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

.price-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.article-card {
  display: grid;
  width: 100%;
  gap: 12px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-cover,
.post-cover,
.case-media,
.rich-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.article-cover {
  position: relative;
  min-width: 0;
}

.article-cover,
.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.case-media {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.rich-media {
  width: min(var(--rich-media-width, 60%), 100%);
  max-width: 960px;
  justify-self: center;
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.rich-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  width: 100%;
}

.rich-media-grid .rich-media {
  width: min(var(--rich-media-width, 100%), 100%);
  min-width: 0;
}

.rich-media-align-left {
  justify-self: start;
}

.rich-media-align-center {
  justify-self: center;
}

.rich-media-align-right {
  justify-self: end;
}

.rich-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  width: min(100%, 820px);
  margin: 0 auto;
}

.rich-carousel .rich-media {
  grid-column: 2;
  width: min(var(--rich-media-width, 100%), 100%);
}

.rich-carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 24px;
}

.rich-carousel-button.prev {
  grid-column: 1;
}

.rich-carousel-button.next {
  grid-column: 3;
}

.rich-carousel-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.rich-carousel-count {
  grid-column: 2;
  justify-self: center;
  margin-top: -4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.article-cover img,
.article-cover video,
.post-cover img,
.post-cover video,
.case-media img,
.case-media video,
.article-visual {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.rich-media > img,
.rich-media > video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: initial;
}

.rich-media > img[data-action],
.post-cover img[data-action] {
  cursor: zoom-in;
}

.rich-media-grid .rich-media > img,
.rich-media-grid .rich-media > video {
  width: 100%;
  height: auto;
}

.article-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  color: #f5f3ea;
  background:
    linear-gradient(135deg, rgba(174, 142, 255, 0.3), transparent),
    #171817;
}

.article-card strong {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
  font-weight: 700;
  overflow-wrap: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.post-detail {
  max-width: 1060px;
  margin: 0 auto;
}

.post-hero {
  margin-bottom: 34px;
}

.post-body {
  display: grid;
  gap: 22px;
  font-size: 19px;
}

.post-body .rich-text {
  gap: 20px;
}

.case-story {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}

.case-story .rich-text {
  gap: 20px;
}

.rich-media figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.reactions-block,
.comments-block {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.emoji-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  min-height: 44px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.emoji-row button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.emoji-row button:active:not(:disabled),
.rich-carousel-button:active:not(:disabled),
.lightbox-nav:active:not(:disabled),
.lightbox-close:active {
  transform: scale(0.96);
}

.emoji-row button.is-selected {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 22%, var(--paper));
}

.emoji-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.emoji-row strong {
  font-size: 14px;
}

.reaction-note {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comments-head span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.comment-form,
.request-form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.comment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.comment-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1.35fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: start;
  margin-top: 0;
}

.profile-visual {
  min-height: 430px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-visual img,
.profile-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .page-head {
  margin-bottom: var(--heading-gap);
}

.about-page .page-head h1 {
  font-size: clamp(56px, 10vw, 176px);
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
}

.photo-placeholder {
  display: grid;
  height: 100%;
  min-height: 430px;
  place-items: center;
  color: var(--muted);
}

.photo-placeholder span {
  margin-top: -120px;
  font-family: var(--mono);
  text-transform: uppercase;
}

.about-copy p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.52;
}

.skills-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.skills-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-card-main,
.request-form,
.services-block {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.request-form small {
  color: var(--muted);
  line-height: 1.45;
}

.request-form .form-error {
  color: var(--danger);
}

.request-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.services-block {
  margin-top: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-list article {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
}

.service-list span,
.price-placeholder span {
  color: var(--muted);
  line-height: 1.45;
}

.price-image,
.price-placeholder {
  margin-top: 16px;
}

.price-placeholder,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.admin-note {
  max-width: 880px;
  margin-top: var(--heading-gap);
  color: var(--muted);
  line-height: 1.55;
}

.admin-save-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 64%, var(--line));
  border-radius: 999px;
  color: var(--accent-button-ink);
  background: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  animation: notice-in 180ms ease both;
}

.admin-save-notice::before {
  content: "✓";
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.admin-tabs button,
.entity-list-head button,
.sortable-list button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.admin-tabs button.is-active {
  color: var(--accent-button-ink);
  border-color: var(--accent-2);
  background: var(--accent-2);
}

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

.admin-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.span-2 {
  grid-column: 1 / -1;
}

.admin-panel,
.entity-editor,
.admin-content-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.admin-content-group legend {
  grid-column: 1 / -1;
  padding: 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.admin-content-group > label {
  min-width: 0;
}

.admin-repeatable-item {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.admin-repeatable-item strong {
  grid-column: 1 / -1;
}

.inline-editor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.sortable-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.sortable-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.sortable-list article div {
  display: flex;
  gap: 6px;
}

.entity-editor {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  align-items: start;
}

.entity-form {
  align-self: start;
}

.entity-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.entity-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.entity-list-head h2 {
  margin: 0;
}

.entity-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.entity-list-item > button:first-child {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--ink);
  text-align: left;
}

.entity-list-item > button:first-child.is-active {
  border-color: var(--accent);
}

.entity-sort-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.entity-sort-actions .icon-button {
  width: 42px;
  min-height: 0;
  height: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--paper);
}

.entity-sort-actions .icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.entity-list small {
  color: var(--muted);
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-transform: none;
}

.checkbox-grid input {
  width: auto;
}

.image-input {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--bg) 52%, transparent);
}

.image-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-strip span {
  position: relative;
  display: block;
  width: 92px;
  height: 72px;
  overflow: hidden;
}

.image-strip img,
.image-strip video {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.image-strip button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.image-strip .thumb-insert {
  top: auto;
  right: auto;
  left: 4px;
  bottom: 4px;
  width: auto;
  height: auto;
  padding: 0 8px;
  min-height: 20px;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.image-strip .media-thumb-with-settings {
  display: grid;
  width: 224px;
  height: auto;
  min-height: 0;
  overflow: visible;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.image-strip .media-thumb-with-settings > img,
.image-strip .media-thumb-with-settings > video {
  width: 100%;
  height: 132px;
  min-height: 0;
  object-fit: contain;
}

.media-thumb-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 6px;
}

.media-thumb-settings label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.image-strip .media-thumb-settings span {
  position: static;
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
}

.media-thumb-settings select,
.media-thumb-settings input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.image-strip .media-thumb-with-settings .thumb-insert {
  position: static;
  justify-self: start;
  width: auto;
  min-height: 26px;
  padding: 0 9px;
}

.form-actions,
.admin-comments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  max-height: 100dvh;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, 1100px) minmax(44px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint size;
  color: #f8f6ed;
  background: rgba(8, 8, 7, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overscroll-behavior: contain;
}

.lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - 44px);
  touch-action: pan-y;
  transform: translate3d(var(--lightbox-drag-x, 0), 0, 0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-stage.is-dragging,
.rich-media.is-dragging {
  transition: none;
}

.lightbox-stage img,
.lightbox-stage video,
.lightbox-stage .visual-panel {
  display: block;
  max-width: 100%;
  max-height: min(82vh, calc(100dvh - 44px));
  width: min(100%, 1100px);
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-stage .visual-panel {
  height: auto;
  aspect-ratio: auto;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #f8f6ed;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  justify-self: center;
  width: 54px;
  height: 54px;
}

.lightbox-nav.left {
  grid-column: 1;
  grid-row: 1;
}

.lightbox-nav.right {
  grid-column: 3;
  grid-row: 1;
}

.lightbox-info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(330px, calc(100vw - 44px));
  display: grid;
  gap: 12px;
  align-self: end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-info small,
.lightbox-info span {
  color: rgba(248, 246, 237, 0.72);
  font-family: var(--mono);
  text-transform: uppercase;
}

.lightbox-info strong {
  font-size: 28px;
  line-height: 1;
}

.lightbox-info p {
  margin: 0;
  color: rgba(248, 246, 237, 0.72);
  line-height: 1.5;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 84px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.footer div {
  display: grid;
  gap: 6px;
}

.footer strong {
  color: var(--ink);
}

.footer button,
.footer a {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.floating-socials {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  max-width: calc(100vw - 36px);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.floating-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.floating-socials a:active {
  transform: scale(0.94);
}

.rich-carousel {
  touch-action: pan-y;
}

.rich-carousel .rich-media {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.route-enter {
  animation: route-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes route-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

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

  .work-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.lightbox {
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.lightbox-info {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  width: auto;
  align-self: auto;
}
}

@media (max-width: 820px) {
  .header {
    grid-template-columns: auto auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav button {
    text-align: left;
  }

  .header-actions {
    justify-self: end;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .contact-pill {
    display: none;
  }

  .micro-row {
    flex-direction: column;
  }

  .hero h1,
  .page-head h1 {
    font-size: clamp(48px, 14vw, 132px);
  }

  .hero-grid,
  .split-feature,
  .case-teaser,
  .contacts-layout,
  .about-layout,
  .case-hero,
  .entity-editor,
  .section-intro-row,
  .pricing-layout,
  .home-contact-layout {
    grid-template-columns: 1fr;
  }

  .split-feature,
  .case-teaser {
    align-items: start;
  }

  .choice-grid,
  .work-choice-large,
  .post-row,
  .blog-grid,
  .case-gallery,
  .service-list,
  .case-sections,
  .admin-grid,
  .approach-grid,
  .pricing-packages {
    grid-template-columns: 1fr;
  }

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

  .home-contact-photo {
    min-height: 340px;
    aspect-ratio: 4 / 3;
  }

  .span-2 {
    grid-column: auto;
  }

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

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

  .work-card.is-wide {
    grid-column: span 2;
  }

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

  .inline-editor {
    grid-template-columns: 1fr;
  }

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

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 14px;
  }

  .lightbox-stage img,
  .lightbox-stage video,
  .lightbox-stage .visual-panel {
    max-height: 72dvh;
  }

  .lightbox-nav.left {
    grid-column: 1;
  }

  .lightbox-nav.right {
    grid-column: 3;
  }
}

@media (max-width: 540px) {
  .section-pad {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .work-gallery-grid {
    grid-template-columns: 1fr;
  }

  .work-card.is-wide {
    grid-column: auto;
  }

  .choice-card,
  .work-choice-large button {
    min-height: 220px;
  }

  .approach-card {
    min-height: 200px;
  }

  .home-contact-heading h2 {
    font-size: clamp(38px, 12vw, 72px);
  }

  .lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: minmax(0, 1fr);
    gap: 6px;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .lightbox-stage {
    grid-column: 2;
    grid-row: 1;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    grid-row: 1;
  }

  .lightbox-nav.left {
    grid-column: 1;
  }

  .lightbox-nav.right {
    grid-column: 3;
  }

  .lightbox-info {
    position: absolute;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: 24dvh;
    overflow: auto;
    padding: 14px;
  }
}

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

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

  button:active:not(:disabled),
  a:active,
  .choice-card:hover,
  .work-card:hover,
  .case-row:hover,
  .article-card:hover,
  .work-choice-large button:hover,
  .emoji-row button:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .header,
  .floating-socials,
  .lightbox,
  .lightbox-info,
  .ghost-button,
  .slide-count {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: var(--ink);
    --soft-line: color-mix(in srgb, var(--ink) 72%, transparent);
  }

  .muted,
  .micro-row,
  .hero-copy p,
  .case-teaser-copy p,
  .contact-card-main p,
  .post-hero p,
  .case-hero p,
  .info-block p,
  .post-body p,
  .rich-text p,
  .rich-text li,
  .comment-card p {
    color: var(--ink);
  }

  .header,
  .floating-socials {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (min-width: 821px) {
  .lightbox-stage {
    max-height: calc(100dvh - 44px);
  }
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open #root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

@supports not (backdrop-filter: blur(1px)) {
  .header,
  .floating-socials,
  .lightbox,
  .lightbox-info {
    background: var(--paper);
  }
}
