:root {
  --black: #050505;
  --black-soft: #0a0a0a;
  --black-elevated: #0d0d0d;
  --white: #f8f5ef;
  --ivory: #e8e0d5;
  --wine: #32101e;
  --wine-bright: #6d1e3b;
  --text-muted: rgba(248, 245, 239, 0.68);
  --text-faint: rgba(248, 245, 239, 0.52);
  --line: rgba(248, 245, 239, 0.14);
  --line-strong: rgba(248, 245, 239, 0.24);
  --font-display: "Italiana", serif;
  --font-sans: "Manrope", sans-serif;
  --content-max: 1440px;
  --page-x: clamp(20px, 4.8vw, 88px);
  --shell-x: max(var(--page-x), calc((100vw - var(--content-max)) / 2));
  --section-y: clamp(112px, 10vw, 176px);
  --heading-gap: clamp(28px, 4vw, 72px);
  --label-column: minmax(145px, 0.22fr);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  scrollbar-color: rgba(248, 245, 239, 0.28) var(--black);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(
      circle at 92% 2%,
      rgba(109, 30, 59, 0.11),
      transparent 27rem
    ),
    var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.contact-modal-open {
  overflow: hidden;
}

main {
  width: 100%;
  overflow-x: hidden;
  overflow: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

::selection {
  background: var(--ivory);
  color: var(--black);
}

:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 3000;
  padding: 11px 16px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1500;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  animation: grainShift 0.32s steps(2) infinite;
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(2%, -3%, 0);
  }
  50% {
    transform: translate3d(-3%, 2%, 0);
  }
  75% {
    transform: translate3d(3%, 4%, 0);
  }
  100% {
    transform: translate3d(-2%, -2%, 0);
  }
}

/* Shared editorial layout */

.section {
  position: relative;
  width: 100%;
  padding: var(--section-y) var(--shell-x);
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.eyebrow,
.section-index,
.section-label {
  color: var(--ivory);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading,
.work-heading,
.digital-experiences__header {
  display: grid;
  grid-template-columns: var(--label-column) minmax(0, 1fr);
  align-items: end;
  gap: var(--heading-gap);
  width: 100%;
  margin-bottom: clamp(58px, 7vw, 104px);
}

.section-heading .section-index,
.work-heading .section-index,
.digital-experiences__header .section-label {
  padding-bottom: 0.55rem;
}

.section-title,
.digital-experiences__intro h2 {
  max-width: 1080px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.7vw, 94px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Custom cursor and page progress */

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2200;
  display: none;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor {
  width: 34px;
  height: 34px;
  border: 1px solid var(--white);
  transition:
    width 0.3s var(--ease-out),
    height 0.3s var(--ease-out),
    opacity 0.25s ease;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--white);
}

.cursor.active {
  width: 58px;
  height: 58px;
}

.cursor.is-hidden,
.cursor-dot.is-hidden {
  opacity: 0;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2100;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ivory), #9a536e);
  box-shadow: 0 0 16px rgba(232, 224, 213, 0.35);
  transform-origin: left center;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 86px;
  padding: 18px var(--shell-x);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.76), rgba(5, 5, 5, 0));
  transition:
    min-height 0.35s var(--ease-out),
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  border-bottom: 1px solid rgba(248, 245, 239, 0.08);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.site-nav a {
  position: relative;
  color: rgba(248, 245, 239, 0.72);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.menu-toggle {
  position: relative;
  z-index: 3;
  display: none;
  width: 34px;
  height: 34px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 3px;
  width: 28px;
  height: 1px;
  background: var(--white);
  transition:
    transform 0.35s var(--ease-out),
    top 0.35s var(--ease-out);
}

.menu-toggle span:first-child {
  top: 11px;
}
.menu-toggle span:last-child {
  top: 22px;
}
.menu-toggle.is-active span:first-child {
  top: 17px;
  transform: rotate(45deg);
}
.menu-toggle.is-active span:last-child {
  top: 17px;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  min-height: max(760px, 100svh);
  padding-top: clamp(128px, 15vh, 180px);
  padding-bottom: clamp(86px, 10vh, 126px);
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 5vw, 86px);
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 890px;
}

.hero-glow {
  position: absolute;
  right: -12%;
  bottom: -25%;
  z-index: -1;
  width: min(72vw, 1100px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(109, 30, 59, 0.25),
    rgba(50, 16, 30, 0.08) 42%,
    transparent 68%
  );
  filter: blur(24px);
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

.hero-title {
  max-width: 850px;
  margin: 25px 0 30px;
  font-family: var(--font-display);
  font-size: clamp(78px, 8.4vw, 154px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-role {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-role i {
  margin: 0 8px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  text-transform: none;
}

.hero-intro {
  max-width: 720px;
  margin: 29px 0 38px;
  color: var(--text-muted);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.85;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 29px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition:
    transform 0.35s var(--ease-out),
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.52),
    transparent 70%
  );
  transform: translateX(-140%);
  transition: transform 0.75s var(--ease-out);
}

.button:hover::after {
  transform: translateX(140%);
}

.button-solid {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.button-solid:hover {
  background: var(--ivory);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.text-link {
  position: relative;
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  transition: background 0.3s ease;
}

.text-link span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover::after {
  background: var(--white);
}
.text-link:hover span {
  transform: translate(4px, -4px);
}

.hero-portrait {
  --parallax-y: 0px;
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(31vw, 450px);
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(248, 245, 239, 0.1);
  background: var(--black-soft);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.38);
}

.portrait-frame picture,
.work-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.08) brightness(0.83);
  transform: scale(1.015);
  transition:
    transform 1.3s var(--ease-out),
    filter 0.8s ease;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      transparent 28%,
      rgba(5, 5, 5, 0.42)
    ),
    linear-gradient(90deg, rgba(50, 16, 30, 0.08), transparent 40%);
}

.hero-portrait:hover .portrait-frame img {
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transform: scale(1.045);
}

.portrait-light {
  position: absolute;
  inset: -25%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.14) 46%,
    transparent 56%
  );
  transform: translateX(-85%);
  animation: portraitLight 8.5s ease-in-out infinite;
}

@keyframes portraitLight {
  0%,
  18% {
    transform: translateX(-85%);
  }
  54%,
  72% {
    transform: translateX(85%);
  }
  100% {
    transform: translateX(85%);
  }
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 29px;
  left: var(--shell-x);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 68px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  animation: scrollLine 2.3s ease-in-out infinite;
}

@keyframes scrollLine {
  50%,
  100% {
    transform: translateX(100%);
  }
}

/* About */

.about {
  overflow: hidden;
}

.about > .section-index {
  margin-bottom: clamp(44px, 5vw, 76px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  align-items: start;
  gap: clamp(64px, 9vw, 142px);
}

.about-quote {
  max-width: 690px;
  font-family: var(--font-display);
  font-size: clamp(72px, 7.2vw, 122px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.044em;
}

.about-content {
  position: relative;
  max-width: 650px;
  padding-bottom: clamp(110px, 10vw, 150px);
}

.about-label {
  margin-bottom: 28px;
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-content p {
  max-width: 620px;
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.95;
}

.about-content .about-ending {
  margin-top: 42px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(27px, 2.25vw, 38px);
  line-height: 1.35;
}

.signature {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Italianno", "Segoe Script", cursive;
  font-size: clamp(3.2rem, 5.5vw, 6.1rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.01em;
  font-synthesis: none;
  white-space: nowrap;
  transform: rotate(-4deg);
  pointer-events: none;
  user-select: none;
}

/* Capabilities */

.capabilities {
  overflow: hidden;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.capabilities-grid span {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 1rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.025),
    transparent 65%
  );
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(9px, 0.75vw, 11px);
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s var(--ease-out);
}

.capabilities-grid span::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -35%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ivory), transparent);
  transition: left 0.7s var(--ease-out);
}

.capabilities-grid span:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.042);
  color: var(--white);
  transform: translateY(-3px);
}

.capabilities-grid span:hover::after {
  left: 105%;
}

/* Selected work */

.work {
  overflow: hidden;
}

.work-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 44px);
}

.work-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px);
}

.work-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  min-width: 0;
  height: clamp(470px, 40vw, 610px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(20px, 1.8vw, 28px);
  background: var(--black-elevated);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  isolation: isolate;
  transition:
    transform 0.65s var(--ease-out),
    border-color 0.45s ease,
    box-shadow 0.55s ease;
}

.work-card-wide {
  height: clamp(500px, 43vw, 650px);
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle 360px at var(--spot-x) var(--spot-y),
    rgba(255, 255, 255, 0.11),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 4;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.45s ease;
}

.work-card:hover {
  border-color: rgba(255, 255, 255, 0.19);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.38);
  transform: translateY(-8px);
}

.work-card:hover::before {
  opacity: 1;
}
.work-card:hover::after {
  border-color: rgba(255, 255, 255, 0.06);
}

.work-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(5, 5, 5, 0.96) 0%,
      rgba(5, 5, 5, 0.62) 34%,
      rgba(5, 5, 5, 0.08) 72%
    ),
    linear-gradient(90deg, rgba(5, 5, 5, 0.18), transparent 48%);
  pointer-events: none;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition:
    transform 1.2s var(--ease-out),
    filter 0.8s ease;
}

.work-card:hover .work-image img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.045);
}

.work-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(105px, 0.2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(22px, 3vw, 48px);
  padding: clamp(27px, 3.4vw, 50px);
}

.work-info-small {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.work-number {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
}

.work-category {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-copy {
  min-width: 0;
}

.work-copy h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 63px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.work-info-small .work-copy h3 {
  font-size: clamp(38px, 3.6vw, 54px);
}

.work-copy p {
  max-width: 650px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

.work-link {
  position: relative;
  align-self: end;
  padding: 10px 0;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}

.work-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.35s var(--ease-out);
}

.work-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.work-link:hover span {
  transform: translate(3px, -3px);
}
.work-info-small .work-link {
  justify-self: start;
}

/* Digital experiences */

.digital-experiences {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 18% 72%,
      rgba(50, 16, 30, 0.16),
      transparent 30rem
    ),
    var(--black);
}

.digital-experiences__intro {
  min-width: 0;
}

.digital-experiences__intro p {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.digital-experiences__projects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 25px);
  width: 100%;
  padding: clamp(22px, 3vw, 38px) 0;
}

.digital-project {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 66px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  transition:
    color 0.3s ease,
    transform 0.4s var(--ease-out);
}

.digital-project::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}

.digital-project:hover,
.digital-project:focus-visible {
  color: var(--white);
  transform: translateY(-4px);
}

.digital-project:hover::after,
.digital-project:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.digital-project-separator {
  color: rgba(255, 255, 255, 0.17);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 50px);
  line-height: 1;
}

.digital-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: clamp(280px, 29vw, 440px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) rotate(-1.5deg);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.38s var(--ease-soft);
  will-change: left, top, transform;
}

.digital-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0deg);
}

.digital-preview__frame {
  position: absolute;
  inset: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(10, 8, 12, 0.86);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    0 0 72px rgba(109, 30, 59, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.digital-preview__frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09),
    transparent 38%
  );
  pointer-events: none;
}

.digital-preview img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

/* Process */

.process {
  overflow: hidden;
}

.process-line {
  position: relative;
  height: 1px;
  margin-top: -28px;
  background: var(--line);
}

.process-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--ivory), #a7647d);
  box-shadow: 0 0 12px rgba(232, 224, 213, 0.22);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.process-step {
  min-width: 0;
  padding-top: 29px;
}

.process-step span {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 21px;
}

.process-step h3 {
  margin: 20px 0 13px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.process-step p {
  max-width: 235px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.78;
}

/* Contact */

.contact {
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(109, 30, 59, 0.22),
      transparent 31%
    ),
    radial-gradient(circle at 10% 92%, rgba(50, 16, 30, 0.16), transparent 28%);
}

.contact::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 1100px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.contact-inner h2 {
  max-width: 1220px;
  margin: 31px 0;
  font-family: var(--font-display);
  font-size: clamp(72px, 9.4vw, 152px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact-subtitle {
  max-width: 620px;
  color: var(--text-muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
}

.contact .button-solid {
  margin-top: 54px;
  cursor: pointer;
}

/* Footer */

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px var(--shell-x);
}

.footer p {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* Contact modal */

.contact-open {
  cursor: pointer;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 48px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    visibility 0.45s;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(50px, 6vw, 108px);
  width: min(100%, 1240px);
  max-height: calc(100svh - 60px);
  overflow-y: auto;
  padding: clamp(46px, 5vw, 80px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 8% 92%, rgba(109, 30, 59, 0.24), transparent 34%),
    #080808;
  box-shadow: 0 45px 140px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(35px) scale(0.975);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scrollbar-width: thin;
}

.contact-modal.is-open .contact-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-close {
  position: absolute;
  top: 27px;
  right: 27px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.contact-close:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(5deg);
}

.contact-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1px;
  background: var(--white);
}

.contact-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.contact-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-dialog-header {
  align-self: start;
  padding-top: 10px;
}

.contact-dialog-index {
  margin-bottom: 24px;
  color: var(--ivory);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-dialog-header h2,
.contact-success h2 {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.6vw, 86px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact-dialog-header > p:last-child,
.contact-success > p {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field label {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.form-field input,
.form-field select {
  height: 54px;
}

.form-field select {
  padding-right: 32px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ivory) 50%),
    linear-gradient(135deg, var(--ivory) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 24px,
    calc(100% - 11px) 24px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.form-field select option {
  background: #0a0a0a;
  color: var(--white);
}

.form-field textarea {
  min-height: 125px;
  padding: 14px 0;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.82);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #c26c84;
}

.field-error {
  min-height: 17px;
  padding-top: 7px;
  color: #e19aad;
  font-size: 10px;
  line-height: 1.4;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-form-footer p {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  line-height: 1.65;
}

.contact-submit {
  flex-shrink: 0;
  min-width: 175px;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.submit-loading {
  display: none;
}
.contact-submit.is-loading .submit-default {
  display: none;
}
.contact-submit.is-loading .submit-loading {
  display: inline;
}

.contact-form-status {
  min-height: 20px;
  color: #e19aad;
  font-size: 11px;
  line-height: 1.6;
}

.contact-success {
  display: none;
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  max-width: 700px;
  padding: clamp(30px, 5vw, 70px) 0;
  text-align: center;
}

.contact-success.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 29px;
}

.contact-success > p {
  margin-bottom: 36px;
}
.contact-success .contact-dialog-index {
  margin-bottom: 24px;
}
.contact-success .button {
  margin-top: 5px;
  cursor: pointer;
}

/* Entrance effects */

.js .reveal,
.js .reveal-project,
.js .reveal-image,
.js .reveal-item {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(38px);
  transition:
    opacity 1s var(--ease-out),
    filter 1s var(--ease-out),
    transform 1s var(--ease-out);
}

.js .reveal-image {
  transform: translate3d(0, calc(40px + var(--parallax-y, 0px)), 0) scale(0.975);
}

.js .is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.js .hero-portrait.is-visible {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1);
}

.reveal-group .reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-group .reveal-item:nth-child(3) {
  transition-delay: 0.18s;
}
.reveal-group .reveal-item:nth-child(4) {
  transition-delay: 0.26s;
}
.reveal-group .reveal-item:nth-child(5) {
  transition-delay: 0.34s;
}

/* Laptop */

@media (max-width: 1180px) {
  :root {
    --label-column: minmax(126px, 0.18fr);
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.8fr);
  }

  .hero-title {
    font-size: clamp(72px, 8.4vw, 126px);
  }

  .hero-portrait {
    width: min(35vw, 430px);
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-step:nth-child(n + 4) {
    padding-top: 48px;
  }
}

/* Tablet and mobile navigation */

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 23px;
    padding: 90px 24px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(
        circle at 78% 22%,
        rgba(109, 30, 59, 0.24),
        transparent 34%
      ),
      rgba(5, 5, 5, 0.985);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition:
      opacity 0.4s ease,
      visibility 0.4s,
      transform 0.4s var(--ease-out);
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(29px, 5.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  .site-nav a::after {
    bottom: -4px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 145px;
    row-gap: 62px;
  }

  .hero-copy {
    max-width: 830px;
  }

  .hero-title {
    max-width: 780px;
    font-size: clamp(72px, 12vw, 116px);
  }

  .hero-portrait {
    justify-self: end;
    width: min(64vw, 500px);
  }

  .scroll-cue {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .about-quote,
  .about-content {
    max-width: 760px;
  }

  .work-info {
    grid-template-columns: minmax(88px, 0.22fr) minmax(0, 1fr);
  }

  .work-info .work-link {
    grid-column: 2;
    justify-self: start;
  }

  .work-info-small {
    grid-template-columns: 1fr;
  }

  .work-info-small .work-link {
    grid-column: auto;
  }

  .contact-dialog {
    grid-template-columns: 1fr;
    gap: 48px;
    max-height: calc(100svh - 36px);
    padding: 70px 42px 48px;
  }

  .contact-dialog-header {
    max-width: 660px;
  }

  .contact-dialog-header h2,
  .contact-success h2 {
    font-size: clamp(58px, 10vw, 82px);
  }
}

@media (max-width: 760px) {
  :root {
    --section-y: clamp(92px, 16vw, 120px);
  }

  .section-heading,
  .work-heading,
  .digital-experiences__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    margin-bottom: 58px;
  }

  .section-heading .section-index,
  .work-heading .section-index,
  .digital-experiences__header .section-label {
    padding-bottom: 0;
  }

  .section-title,
  .digital-experiences__intro h2 {
    font-size: clamp(48px, 11vw, 72px);
  }

  .work-pair {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card-wide {
    height: clamp(450px, 105vw, 590px);
  }

  .work-info,
  .work-info-small {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-info .work-link,
  .work-info-small .work-link {
    grid-column: auto;
  }

  .process-line {
    display: none;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .process-step,
  .process-step:nth-child(n + 4) {
    padding: 29px 0;
    border-top: 1px solid var(--line);
  }
}

/* Phone */

@media (max-width: 620px) {
  :root {
    --page-x: 20px;
    --shell-x: 20px;
  }

  .site-header {
    min-height: 72px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .site-header.is-scrolled {
    min-height: 64px;
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 90px;
    row-gap: 46px;
  }

  .hero-title {
    max-width: 100%;
    margin: 21px 0 25px;
    font-size: clamp(58px, 18vw, 91px);
    line-height: 0.9;
  }

  .hero-role {
    font-size: 9px;
  }

  .hero-intro {
    max-width: 100%;
    margin-bottom: 33px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .button {
    min-height: 52px;
    padding: 0 25px;
  }

  .hero-portrait {
    justify-self: center;
    width: min(100%, 430px);
  }

  .portrait-caption {
    gap: 14px;
    font-size: 7px;
  }

  .section-title,
  .digital-experiences__intro h2 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: 0.99;
  }

  .about > .section-index {
    margin-bottom: 42px;
  }

  .about-grid {
    gap: 43px;
  }

  .about-quote {
    font-size: clamp(58px, 17vw, 84px);
  }

  .about-content {
    padding-bottom: 104px;
  }

  .about-content p {
    font-size: 15px;
    line-height: 1.85;
  }

  .signature {
    right: 0;
    font-size: clamp(2.9rem, 15vw, 4.9rem);
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .capabilities-grid span {
    min-height: 63px;
  }

  .work-layout,
  .work-pair {
    gap: 23px;
  }

  .work-card,
  .work-card-wide {
    height: clamp(420px, 118vw, 535px);
    border-radius: 20px;
  }

  .work-info,
  .work-info-small {
    gap: 14px;
    padding: 25px 21px;
  }

  .work-copy h3,
  .work-info-small .work-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(37px, 12vw, 49px);
  }

  .work-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .digital-experiences__intro p {
    font-size: 13px;
  }

  .digital-experiences__projects {
    justify-content: flex-start;
    gap: 10px 13px;
    padding: 12px 0 0;
  }

  .digital-project {
    font-size: clamp(28px, 9.5vw, 42px);
  }

  .digital-project-separator {
    font-size: 25px;
  }

  .digital-preview {
    display: none;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-step p {
    max-width: 420px;
  }

  .contact {
    min-height: 76svh;
  }

  .contact-inner h2 {
    font-size: clamp(57px, 18vw, 84px);
  }

  .contact .button-solid {
    margin-top: 42px;
  }

  .footer {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .footer p {
    font-size: 8px;
  }

  .contact-modal {
    align-items: flex-end;
    padding: 0;
  }

  .contact-dialog {
    width: 100%;
    max-height: 94svh;
    gap: 40px;
    padding: 72px 20px 35px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .contact-close {
    top: 17px;
    right: 17px;
    width: 42px;
    height: 42px;
  }

  .contact-dialog-header h2,
  .contact-success h2 {
    font-size: clamp(51px, 16vw, 71px);
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-footer p {
    max-width: 100%;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(55px, 17.5vw, 68px);
  }

  .portrait-caption span:last-child {
    max-width: 180px;
    text-align: right;
  }

  .section-title,
  .digital-experiences__intro h2 {
    font-size: clamp(41px, 12.5vw, 52px);
  }

  .work-card,
  .work-card-wide {
    height: 430px;
  }

  .work-copy p {
    -webkit-line-clamp: 2;
  }

  .contact-inner h2 {
    font-size: clamp(52px, 16.5vw, 67px);
  }
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .cursor,
  .cursor-dot {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal-project,
  .js .reveal-image,
  .js .reveal-item {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-portrait {
    transform: none !important;
  }

  .grain {
    animation: none;
  }
}

/* =========================================================
   PRO UPGRADE: PROJECT ACTIONS, CASE STUDIES AND FOOTER
========================================================= */

body.case-study-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.work-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  justify-self: end;
}

.work-info-small .work-actions {
  align-items: flex-start;
  justify-self: start;
}

.work-case-study {
  position: relative;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-case-study::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}

.work-case-study span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.35s var(--ease-out);
}

.work-case-study:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.work-case-study:hover span {
  transform: rotate(90deg);
}

.digital-project {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

/* Case study modal */

.case-study-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    visibility 0.45s;
}

.case-study-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.case-study-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.case-study-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      circle at 90% 22%,
      rgba(109, 30, 59, 0.18),
      transparent 30rem
    ),
    #080808;
  box-shadow: 0 48px 150px rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: translateY(34px) scale(0.975);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scrollbar-width: thin;
}

.case-study-modal.is-open .case-study-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-study-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.5);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.case-study-close:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(5, 5, 5, 0.8);
  transform: rotate(5deg);
}

.case-study-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--white);
}

.case-study-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.case-study-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.case-study-visual {
  position: relative;
  width: 100%;
  height: clamp(330px, 42vw, 560px);
  overflow: hidden;
  background: var(--black-soft);
}

.case-study-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
}

.case-study-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      #080808 0%,
      rgba(8, 8, 8, 0.2) 24%,
      transparent 56%
    ),
    linear-gradient(90deg, rgba(5, 5, 5, 0.22), transparent 42%);
  pointer-events: none;
}

.case-study-content {
  padding: clamp(46px, 7vw, 104px);
}

.case-study-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(36px, 6vw, 100px);
  padding-bottom: clamp(48px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
}

.case-study-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.case-study-kicker span:first-child {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0;
}

.case-study-header h2 {
  max-width: 850px;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 124px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.case-study-header > p {
  max-width: 520px;
  color: var(--text-muted);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.85;
}

.case-study-meta {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.45fr;
  gap: 1px;
  margin: clamp(42px, 5vw, 68px) 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-study-meta > div {
  min-width: 0;
  padding: clamp(21px, 2.4vw, 32px);
  background: #080808;
}

.case-study-meta dt,
.case-study-label {
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-study-meta dd {
  color: var(--ivory);
  font-size: 12px;
  line-height: 1.7;
}

.case-study-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 62px);
  padding-bottom: clamp(64px, 8vw, 108px);
}

.case-study-story article {
  min-width: 0;
}

.case-study-story article > span {
  display: block;
  margin-bottom: 24px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 20px;
}

.case-study-story h3 {
  margin-bottom: 17px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  line-height: 1;
}

.case-study-story p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

.case-study-features {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  padding: clamp(45px, 6vw, 78px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-study-features h3 {
  max-width: 540px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.case-study-features ul {
  list-style: none;
}

.case-study-features li {
  position: relative;
  padding: 17px 0 17px 24px;
  border-top: 1px solid var(--line);
  color: var(--ivory);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.case-study-features li:first-child {
  border-top: 0;
}

.case-study-features li::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ivory);
  border-radius: 50%;
}

.case-study-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 34px;
  padding-top: clamp(44px, 6vw, 72px);
}

.case-study-code-link {
  position: relative;
  padding: 12px 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-study-code-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  transition: background 0.3s ease;
}

.case-study-code-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.35s var(--ease-out);
}

.case-study-code-link:hover::after {
  background: var(--white);
}

.case-study-code-link:hover span {
  transform: translate(3px, -3px);
}

.case-study-coming-soon {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.7;
}

/* Expanded footer */

.footer {
  display: block;
  padding: 28px var(--shell-x);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 28px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 25px;
}

.footer-links a {
  position: relative;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  .work-info > .work-actions {
    grid-column: 2;
    align-items: flex-start;
    justify-self: start;
  }

  .work-info-small > .work-actions {
    grid-column: auto;
  }

  .case-study-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-study-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-meta > div:last-child {
    grid-column: 1 / -1;
  }

  .case-study-story {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .case-study-story p {
    max-width: 700px;
  }
}

@media (max-width: 760px) {
  .work-info > .work-actions,
  .work-info-small > .work-actions {
    grid-column: auto;
  }

  .work-actions {
    align-items: flex-start;
    justify-self: start;
  }

  .case-study-modal {
    align-items: flex-end;
    padding: 0;
  }

  .case-study-dialog {
    width: 100%;
    max-height: 96svh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .case-study-close {
    top: 17px;
    right: 17px;
    width: 43px;
    height: 43px;
  }

  .case-study-visual {
    height: clamp(260px, 78vw, 390px);
  }

  .case-study-content {
    padding: 42px 20px 54px;
  }

  .case-study-header {
    gap: 28px;
    padding-bottom: 44px;
  }

  .case-study-header h2 {
    font-size: clamp(55px, 17vw, 78px);
  }

  .case-study-meta {
    grid-template-columns: 1fr;
    margin: 34px 0 48px;
  }

  .case-study-meta > div:last-child {
    grid-column: auto;
  }

  .case-study-story {
    gap: 36px;
    padding-bottom: 58px;
  }

  .case-study-story article {
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }

  .case-study-features {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px 0;
  }

  .case-study-features h3 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .case-study-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-modal,
  .case-study-dialog {
    transition: none;
  }
}

/* =========================================================
   FLAGSHIP APPLICATION SYSTEMS
========================================================= */

.application-systems {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(126, 38, 70, 0.12),
      transparent 30rem
    ),
    radial-gradient(circle at 5% 56%, rgba(82, 59, 42, 0.1), transparent 27rem),
    #060606;
}

.application-systems__glow {
  position: absolute;
  top: 4%;
  right: -14%;
  z-index: -1;
  width: min(48vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(92, 20, 48, 0.1);
  filter: blur(120px);
  pointer-events: none;
}

.application-systems__heading {
  display: grid;
  grid-template-columns: var(--label-column) minmax(0, 1fr);
  align-items: start;
  gap: var(--heading-gap);
  margin-bottom: clamp(54px, 7vw, 102px);
}

.application-systems__heading > .section-label {
  padding-top: 15px;
}

.application-systems__intro {
  min-width: 0;
}

.application-systems__eyebrow {
  margin-bottom: 26px;
  color: rgba(232, 224, 213, 0.55);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.application-systems__intro h2 {
  max-width: 1100px;
  font-family: var(--font-display);
  font-size: clamp(58px, 6.7vw, 108px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.046em;
  text-wrap: balance;
}

.application-systems__intro > p:last-child {
  max-width: 650px;
  margin-top: 34px;
  color: var(--text-muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.9;
}

.application-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(34px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.application-principles li {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 76px;
  padding: 18px clamp(15px, 2vw, 30px);
  border-right: 1px solid var(--line);
  color: rgba(248, 245, 239, 0.72);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-principles li:first-child {
  padding-left: 0;
}

.application-principles li:last-child {
  border-right: 0;
}

.application-principles b {
  color: rgba(232, 224, 213, 0.38);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Royal flagship */

.royal-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.77fr) minmax(540px, 1.23fr);
  min-height: 830px;
  overflow: hidden;
  border: 1px solid rgba(248, 245, 239, 0.16);
  background: #ece6dc;
  box-shadow:
    0 48px 120px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.royal-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.royal-feature__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(42px, 5.2vw, 78px);
  background:
    radial-gradient(
      circle at 8% 92%,
      rgba(132, 107, 84, 0.1),
      transparent 24rem
    ),
    #ede8df;
  color: #14110f;
}

.royal-feature__copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(20, 17, 15, 0.15);
}

.royal-feature__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(20, 17, 15, 0.18);
  color: rgba(20, 17, 15, 0.58);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.royal-feature__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.royal-feature__availability::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d1d35;
  box-shadow: 0 0 0 4px rgba(93, 29, 53, 0.1);
}

.royal-feature__title {
  margin-top: clamp(45px, 5vw, 72px);
}

.royal-feature__title > p {
  margin-bottom: 17px;
  color: rgba(20, 17, 15, 0.57);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.royal-feature__title h3 {
  font-family: var(--font-display);
  font-size: clamp(70px, 6.8vw, 114px);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: -0.055em;
}

.royal-feature__title h3 i {
  display: block;
  margin: 0.26em 0 0 0.56em;
  color: #641f3b;
  font-weight: 400;
}

.royal-feature__lead {
  max-width: 540px;
  margin-top: clamp(42px, 4vw, 60px);
  color: rgba(20, 17, 15, 0.7);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.85;
}

.royal-feature__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(38px, 4vw, 58px);
  border-top: 1px solid rgba(20, 17, 15, 0.18);
  border-bottom: 1px solid rgba(20, 17, 15, 0.18);
  list-style: none;
}

.royal-feature__proof > li {
  min-width: 0;
  padding: 23px 14px 23px 0;
  border-right: 1px solid rgba(20, 17, 15, 0.14);
}

.royal-feature__proof > li:not(:first-child) {
  padding-left: 18px;
}

.royal-feature__proof > li:last-child {
  border-right: 0;
}

.royal-feature__proof strong {
  display: block;
  margin-bottom: 7px;
  color: #641f3b;
  font-family: var(--font-display);
  font-size: clamp(31px, 2.8vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.royal-feature__proof span {
  display: block;
  color: rgba(20, 17, 15, 0.56);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.royal-feature__systems {
  margin-top: 31px;
}

.royal-feature__systems article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.12);
}

.royal-feature__systems article > span {
  padding-top: 2px;
  color: rgba(100, 31, 59, 0.72);
  font-family: var(--font-display);
  font-size: 15px;
}

.royal-feature__systems h4 {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.royal-feature__systems p {
  color: rgba(20, 17, 15, 0.58);
  font-size: 11px;
  line-height: 1.65;
}

.royal-feature__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 26px;
  margin-top: auto;
  padding-top: 38px;
}

.royal-feature__actions .button-solid {
  border: 1px solid #14110f;
  background: #14110f;
  color: #f5f0e8;
  cursor: pointer;
  box-shadow: none;
}

.royal-feature__actions .button-solid:hover {
  border-color: #641f3b;
  background: #641f3b;
  color: #fffaf3;
}

.royal-feature__actions > p {
  max-width: 215px;
  color: rgba(20, 17, 15, 0.45);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.royal-feature__visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 4.2vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 8%,
      rgba(115, 36, 66, 0.26),
      transparent 27rem
    ),
    linear-gradient(145deg, #160a10, #070607 64%);
}

.royal-feature__visual::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -19%;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid rgba(235, 218, 194, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.012),
    0 0 0 140px rgba(255, 255, 255, 0.008);
  pointer-events: none;
}

.royal-visual__topline,
.royal-visual__status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(248, 245, 239, 0.46);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.royal-visual__topline {
  margin-bottom: clamp(34px, 4vw, 56px);
}

.royal-browser {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: auto 0;
  overflow: hidden;
  border: 1px solid rgba(248, 245, 239, 0.2);
  border-radius: 14px;
  background: #f3eee6;
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.54),
    0 0 0 8px rgba(255, 255, 255, 0.018);
}

.royal-browser__chrome {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 14px;
  height: 41px;
  padding: 0 14px;
  border-bottom: 1px solid #d8d0c6;
  background: #e9e3da;
  color: rgba(29, 24, 22, 0.72);
  font-size: 6px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.royal-browser__dots {
  display: flex;
  gap: 5px;
}

.royal-browser__dots i {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(25, 20, 18, 0.35);
  border-radius: 50%;
}

.royal-browser__address {
  overflow: hidden;
  padding: 5px 10px;
  border: 1px solid rgba(25, 20, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.royal-browser__secure {
  text-align: right;
}

.royal-demo {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: clamp(510px, 43vw, 640px);
  background: #f5f0e8;
  color: #211b19;
}

.royal-demo__tabs {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d8d0c6;
  background: #ece6dc;
}

.royal-demo__tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 13px 13px;
  border-bottom: 1px solid #d8d0c6;
  background: transparent;
  color: rgba(33, 27, 25, 0.72);
  cursor: pointer;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.royal-demo__tabs button span {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0;
}

.royal-demo__tabs button[aria-selected="true"] {
  background: #5a1d34;
  color: #fff8ef;
}

.royal-demo__tabs button:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.42);
  color: #211b19;
}

.royal-demo__viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.royal-screen {
  width: 100%;
  min-height: 100%;
  background: #f5f0e8;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.55s var(--ease-out);
}

.royal-screen.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Storefront preview */

.royal-ui__announcement {
  padding: 8px 14px;
  background: #581b31;
  color: #fff7ed;
  font-size: 6px;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.royal-ui__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 50px;
  padding: 0 clamp(14px, 2vw, 25px);
  border-bottom: 1px solid #ded6cc;
}

.royal-ui__nav button {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: #211b19;
  font-size: 6px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.royal-ui__nav strong {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 400;
  letter-spacing: 0.19em;
}

.royal-ui__nav div {
  display: flex;
  justify-self: end;
  gap: 14px;
  font-size: 6px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.royal-ui__hero {
  display: grid;
  grid-template-columns: minmax(215px, 0.9fr) minmax(230px, 1.1fr);
  min-height: 398px;
}

.royal-ui__hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
}

.royal-ui__hero-copy > span:first-child {
  margin-bottom: 25px;
  color: #755831;
  font-size: 6px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.royal-ui__hero-copy h4 {
  font-family: var(--font-display);
  font-size: clamp(41px, 4.5vw, 69px);
  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.04em;
}

.royal-ui__hero-copy h4 i {
  color: #681f3c;
  font-weight: 400;
}

.royal-ui__hero-copy p {
  max-width: 250px;
  margin-top: 20px;
  color: rgba(33, 27, 25, 0.72);
  font-size: 8px;
  line-height: 1.7;
}

.royal-ui__button {
  margin-top: 27px;
  padding: 12px 16px;
  background: #211b19;
  color: #fff8ef;
  font-size: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.royal-ui__hero-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #d5c6b8;
}

.royal-ui__hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(to top, rgba(31, 15, 20, 0.34), transparent 38%);
  pointer-events: none;
}

.royal-ui__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03);
}

.royal-ui__hero-image span {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  color: #fff9f1;
  font-size: 6px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.royal-ui__product-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 0.32fr);
  align-items: center;
  gap: 10px;
  height: 71px;
  padding: 11px 19px;
  border-top: 1px solid #ded6cc;
  background: #ece6dc;
}

.royal-ui__product-row span {
  font-family: var(--font-display);
  font-size: 13px;
}

.royal-ui__product-row i {
  height: 4px;
  background: #cfc5b9;
}

/* Discovery preview */

.royal-shop__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 27px clamp(18px, 3vw, 36px) 23px;
  border-bottom: 1px solid #ddd5ca;
}

.royal-shop__header span {
  color: #8b6c46;
  font-size: 6px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.royal-shop__header h4 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 49px);
  font-weight: 400;
  line-height: 0.95;
}

.royal-shop__header > p {
  color: rgba(33, 27, 25, 0.48);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.royal-shop__body {
  display: grid;
  grid-template-columns: minmax(120px, 0.31fr) minmax(0, 1fr);
  min-height: 438px;
}

.royal-shop__filters {
  padding: 24px 18px;
  border-right: 1px solid #ddd5ca;
  background: #eee8de;
}

.royal-shop__filters > p {
  margin-bottom: 19px;
  font-family: var(--font-display);
  font-size: 18px;
}

.royal-shop__search {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #cfc5b9;
  color: rgba(33, 27, 25, 0.46);
  font-size: 6px;
}

.royal-shop__filters > div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}

.royal-shop__filters > div:nth-of-type(2) span {
  position: relative;
  padding-left: 12px;
  color: rgba(33, 27, 25, 0.55);
  font-size: 7px;
}

.royal-shop__filters > div:nth-of-type(2) span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(33, 27, 25, 0.4);
  border-radius: 50%;
}

.royal-shop__filters > div:nth-of-type(2) .is-selected {
  color: #641f3b;
  font-weight: 600;
}

.royal-shop__filters > div:nth-of-type(2) .is-selected::before {
  border-color: #641f3b;
  background: #641f3b;
}

.royal-shop__filters label {
  color: rgba(33, 27, 25, 0.52);
  font-size: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.royal-shop__range {
  position: relative;
  height: 2px;
  margin-top: 13px;
  background: #cfc5b9;
}

.royal-shop__range i {
  display: block;
  width: 68%;
  height: 100%;
  background: #641f3b;
}

.royal-shop__range::before,
.royal-shop__range::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #641f3b;
  border-radius: 50%;
  background: #eee8de;
  transform: translateY(-50%);
}

.royal-shop__range::before {
  left: 0;
}

.royal-shop__range::after {
  left: 66%;
}

.royal-shop__results {
  min-width: 0;
  padding: 20px clamp(13px, 2vw, 27px) 25px;
}

.royal-shop__sort {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  color: rgba(33, 27, 25, 0.48);
  font-size: 6px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.royal-shop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}

.royal-shop__grid article {
  min-width: 0;
}

.royal-shop__grid article > div {
  position: relative;
  aspect-ratio: 0.84;
  margin-bottom: 11px;
  overflow: hidden;
  background: #ddd3c7;
}

.royal-shop__grid article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
}

.royal-shop__grid article > div span {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.86);
  color: #641f3b;
  font-size: 9px;
  place-items: center;
}

.royal-shop__grid small {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: #8b6c46;
  font-size: 5px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.royal-shop__grid strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.royal-shop__grid article > p {
  margin-top: 5px;
  color: #641f3b;
  font-family: monospace;
  font-size: 7px;
}

.royal-ui__toast {
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(100, 31, 59, 0.16);
  background: rgba(255, 251, 244, 0.94);
  color: #4d2333;
  font-size: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 13px 35px rgba(54, 33, 38, 0.12);
}

.royal-ui__toast span {
  display: grid;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #641f3b;
  color: #fffaf3;
  place-items: center;
}

/* Checkout preview */

.royal-checkout__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 58px;
  padding: 0 clamp(16px, 2.5vw, 32px);
  border-bottom: 1px solid #ddd5ca;
  background: #eee8de;
  color: rgba(33, 27, 25, 0.5);
  font-size: 6px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.royal-checkout__header strong {
  color: #211b19;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.royal-checkout__header span:last-child {
  justify-self: end;
}

.royal-checkout__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.65fr);
  min-height: 495px;
}

.royal-checkout__form {
  padding: clamp(25px, 3.5vw, 44px);
}

.royal-checkout__form > p {
  color: #8b6c46;
  font-size: 6px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.royal-checkout__form h4 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 400;
}

.royal-checkout__progress {
  display: flex;
  align-items: center;
  margin: 22px 0 28px;
}

.royal-checkout__progress span {
  display: grid;
  flex: 0 0 20px;
  height: 20px;
  border: 1px solid #c9beb2;
  border-radius: 50%;
  color: rgba(33, 27, 25, 0.5);
  font-size: 7px;
  place-items: center;
}

.royal-checkout__progress .is-active {
  border-color: #641f3b;
  background: #641f3b;
  color: #fff9f1;
}

.royal-checkout__progress i {
  flex: 1;
  height: 1px;
  background: #d4cabf;
}

.royal-checkout__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.royal-checkout__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d7cec3;
  background: rgba(255, 255, 255, 0.35);
}

.royal-checkout__field--full {
  margin-bottom: 11px;
}

.royal-checkout__field label {
  color: rgba(33, 27, 25, 0.44);
  font-size: 5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.royal-checkout__field span {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.royal-checkout__payment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.royal-checkout__payment span {
  padding: 11px;
  border: 1px solid #d7cec3;
  color: rgba(33, 27, 25, 0.56);
  font-size: 6px;
}

.royal-checkout__payment .is-selected {
  border-color: #641f3b;
  color: #641f3b;
}

.royal-checkout__summary {
  padding: clamp(24px, 3vw, 37px) clamp(18px, 2.5vw, 30px);
  border-left: 1px solid #d7cec3;
  background: #e9e2d8;
}

.royal-checkout__summary > p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 15px;
}

.royal-checkout__summary > p span {
  color: rgba(33, 27, 25, 0.46);
  font-family: var(--font-sans);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.royal-checkout__summary article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d1c7bc;
}

.royal-checkout__summary article img {
  width: 44px;
  height: 51px;
  object-fit: cover;
}

.royal-checkout__summary article div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.royal-checkout__summary article strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.royal-checkout__summary article span,
.royal-checkout__summary article b {
  color: rgba(33, 27, 25, 0.5);
  font-size: 6px;
  font-weight: 400;
}

.royal-checkout__summary > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: rgba(33, 27, 25, 0.58);
  font-size: 7px;
}

.royal-checkout__summary > div b {
  color: #211b19;
  font-weight: 500;
}

.royal-checkout__summary .royal-checkout__total {
  margin-top: 5px;
  padding: 12px 0;
  border-top: 1px solid #d1c7bc;
  color: #211b19;
  font-size: 9px;
}

.royal-checkout__submit {
  display: block;
  margin-top: 10px;
  padding: 12px;
  background: #641f3b;
  color: #fff9f1;
  font-size: 6px;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.royal-checkout__summary small {
  display: block;
  margin-top: 11px;
  color: rgba(33, 27, 25, 0.42);
  font-size: 5px;
  letter-spacing: 0.06em;
  text-align: center;
}

.royal-visual__status {
  margin-top: clamp(30px, 4vw, 50px);
}

.royal-visual__status > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.royal-visual__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cba786;
  box-shadow: 0 0 0 4px rgba(203, 167, 134, 0.1);
  animation: royalStatusPulse 2.2s ease-in-out infinite;
}

.royal-visual__status p {
  max-width: 310px;
  color: rgba(248, 245, 239, 0.68);
  text-align: right;
}

@keyframes royalStatusPulse {
  50% {
    opacity: 0.42;
    transform: scale(0.72);
  }
}

/* Supporting application systems */

.application-collection__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.48fr);
  align-items: end;
  gap: clamp(40px, 7vw, 110px);
  margin: clamp(110px, 12vw, 190px) 0 clamp(50px, 6vw, 88px);
}

.application-collection__heading .section-label {
  display: block;
  margin-bottom: 27px;
}

.application-collection__heading h3 {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.4vw, 86px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.application-collection__heading > p {
  max-width: 510px;
  padding-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.application-card {
  --card-line: rgba(248, 245, 239, 0.14);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 730px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: #0b0b0b;
  transition:
    border-color 0.45s ease,
    transform 0.55s var(--ease-out),
    box-shadow 0.55s ease;
}

.application-card:hover {
  border-color: rgba(248, 245, 239, 0.29);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.28);
  transform: translateY(-7px);
}

.application-card__ambient {
  position: absolute;
  top: -28%;
  right: -23%;
  z-index: 0;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(105, 32, 60, 0.12);
  filter: blur(70px);
  pointer-events: none;
}

.application-card--cinevault .application-card__ambient {
  background: rgba(44, 64, 97, 0.16);
}

.application-card__topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(21px, 2.5vw, 38px);
  border-bottom: 1px solid var(--card-line);
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.application-card__visual {
  position: relative;
  z-index: 1;
  height: clamp(270px, 27vw, 400px);
  overflow: hidden;
  border-bottom: 1px solid var(--card-line);
}

.application-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #0b0b0b 0%, transparent 31%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.05), transparent 34%);
  pointer-events: none;
}

.application-card__visual--brandlab {
  display: grid;
  padding: clamp(27px, 4vw, 62px);
  background:
    radial-gradient(
      circle at 72% 28%,
      rgba(187, 132, 157, 0.18),
      transparent 18rem
    ),
    linear-gradient(135deg, #21131c, #0b090b 68%);
  place-items: center;
}

.brandlab-ui {
  position: relative;
  width: min(100%, 510px);
  min-height: 230px;
  padding: clamp(24px, 3vw, 43px);
  border: 1px solid rgba(246, 226, 234, 0.22);
  background: rgba(20, 13, 17, 0.72);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.brandlab-ui::before {
  content: "BRANDLAB / DIRECTION 03";
  position: absolute;
  top: 17px;
  right: 19px;
  color: rgba(246, 226, 234, 0.38);
  font-size: 5px;
  letter-spacing: 0.14em;
}

.brandlab-ui > p {
  margin-bottom: 24px;
  color: rgba(246, 226, 234, 0.5);
  font-size: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brandlab-ui__palette {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
}

.brandlab-ui__palette i {
  width: clamp(20px, 2.4vw, 33px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin-left: -6px;
}

.brandlab-ui__palette i:nth-child(1) {
  background: #f0dce3;
}

.brandlab-ui__palette i:nth-child(2) {
  background: #a95c78;
}

.brandlab-ui__palette i:nth-child(3) {
  background: #5b1e35;
}

.brandlab-ui__palette i:nth-child(4) {
  background: #171013;
}

.brandlab-ui h4 {
  color: #f5e8ed;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.3vw, 49px);
  font-weight: 400;
  line-height: 0.93;
}

.brandlab-ui h4 em {
  color: #bd8198;
  font-weight: 400;
}

.brandlab-ui__controls {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.brandlab-ui__controls span {
  padding: 7px 10px;
  border: 1px solid rgba(246, 226, 234, 0.18);
  color: rgba(246, 226, 234, 0.58);
  font-size: 5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.application-card__visual--cinevault {
  display: grid;
  flex-shrink: 0;
  padding: clamp(27px, 4vw, 62px);
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(79, 109, 157, 0.18),
      transparent 20rem
    ),
    linear-gradient(145deg, #0d1623, #07090c 68%);
  place-items: center;
}

.cinevault-ui {
  width: min(100%, 520px);
  min-height: 242px;
  overflow: hidden;
  border: 1px solid rgba(216, 228, 245, 0.18);
  background: #0b1017;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.cinevault-card-preview {
  display: block;
  width: min(100%, 620px);
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(216, 228, 245, 0.18);
  background: #0b1017;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  object-position: center top;
}

.cinevault-ui__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(216, 228, 245, 0.11);
  color: rgba(228, 236, 246, 0.56);
  font-size: 5px;
  letter-spacing: 0.12em;
}

.cinevault-ui__nav b {
  color: #e6edf6;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.cinevault-ui__hero {
  padding: 24px 21px;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.98), rgba(8, 12, 18, 0.35)),
    radial-gradient(circle at 80% 50%, #3a4961, #111923 50%);
}

.cinevault-ui__hero span {
  color: #7897bf;
  font-size: 5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cinevault-ui__hero h4 {
  margin-top: 9px;
  color: #edf2f8;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 400;
  line-height: 0.91;
}

.cinevault-ui__posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 10px 14px 15px;
}

.cinevault-ui__posters i {
  aspect-ratio: 0.72;
  background:
    linear-gradient(to top, rgba(4, 7, 10, 0.6), transparent),
    linear-gradient(145deg, #3d4c61, #151d28);
}

.cinevault-ui__posters i:nth-child(2) {
  background: linear-gradient(145deg, #73514d, #20191a);
}

.cinevault-ui__posters i:nth-child(3) {
  background: linear-gradient(145deg, #837458, #201e19);
}

.cinevault-ui__posters i:nth-child(4) {
  background: linear-gradient(145deg, #4b5264, #15191f);
}

.application-card__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(220px, 0.75fr);
  align-items: start;
  gap: 24px clamp(28px, 4vw, 66px);
  flex: 1;
  padding: clamp(31px, 4vw, 56px);
}

.application-card__content > div > p {
  margin-bottom: 11px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.application-card__content h3 {
  font-family: var(--font-display);
  font-size: clamp(43px, 4.7vw, 71px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.application-card__content > p {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.8;
}

.application-card__content ul {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.application-card__content li {
  padding: 7px 10px;
  border: 1px solid var(--card-line);
  color: rgba(248, 245, 239, 0.52);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-card__content button {
  position: relative;
  justify-self: start;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.application-card__content button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: rgba(248, 245, 239, 0.3);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.application-card__content button span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.35s var(--ease-out);
}

.application-card__content button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.application-card__content button:hover span {
  transform: translate(3px, -3px);
}

.application-card--future {
  grid-column: 1 / -1;
  min-height: 515px;
  background:
    linear-gradient(110deg, #0a0a0a 0 55%, rgba(43, 14, 26, 0.66)), #0a0a0a;
}

.application-card--future:hover {
  transform: none;
}

.application-card__future-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 245, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 245, 239, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}

.application-card--future .application-card__topline {
  position: relative;
  z-index: 3;
}

.application-card--future .application-card__content {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(280px, 0.66fr) minmax(300px, 0.72fr);
  width: min(72%, 920px);
  padding-top: clamp(63px, 7vw, 102px);
}

.application-card--future .application-card__content h3 {
  font-size: clamp(60px, 6.5vw, 100px);
}

.future-system__mark {
  position: absolute;
  right: clamp(45px, 8vw, 135px);
  bottom: 50%;
  z-index: 1;
  width: clamp(170px, 20vw, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 224, 213, 0.13);
  border-radius: 50%;
  color: rgba(232, 224, 213, 0.12);
  transform: translateY(56%);
}

.future-system__mark::before,
.future-system__mark::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(232, 224, 213, 0.08);
  border-radius: 50%;
}

.future-system__mark::after {
  inset: 32%;
}

.future-system__mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-display);
  font-size: clamp(65px, 8vw, 124px);
  transform: translate(-50%, -50%);
}

.future-system__mark i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a3b59;
  box-shadow: 0 0 24px rgba(138, 59, 89, 0.8);
}

.application-card__planned {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  color: rgba(248, 245, 239, 0.7);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.application-card__planned i {
  color: #bb7892;
  font-size: 15px;
  font-style: normal;
}

.application-capabilities {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.72fr);
  align-items: end;
  gap: clamp(50px, 8vw, 130px);
  margin-top: clamp(100px, 11vw, 168px);
  padding-top: clamp(55px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.application-capabilities .section-label {
  display: block;
  margin-bottom: 28px;
}

.application-capabilities h3 {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.application-capabilities ul {
  list-style: none;
}

.application-capabilities li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: rgba(248, 245, 239, 0.72);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.application-capabilities li:last-child {
  border-bottom: 1px solid var(--line);
}

.application-capabilities li span {
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0;
}

/* Application section responsive */

@media (max-width: 1250px) {
  .royal-feature {
    grid-template-columns: minmax(350px, 0.72fr) minmax(500px, 1.28fr);
  }

  .royal-feature__copy {
    padding: 45px;
  }

  .royal-feature__visual {
    padding: 40px 35px;
  }

  .royal-feature__title h3 {
    font-size: clamp(68px, 7vw, 92px);
  }

  .royal-demo {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .royal-demo__tabs button {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .royal-ui__hero {
    grid-template-columns: minmax(180px, 0.86fr) minmax(210px, 1.14fr);
  }
}

@media (max-width: 1060px) {
  .application-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-principles li:nth-child(2) {
    border-right: 0;
  }

  .application-principles li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .application-principles li:nth-child(3) {
    padding-left: 0;
  }

  .royal-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .royal-feature__copy::before {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
  }

  .royal-feature__copy {
    padding: clamp(44px, 7vw, 76px);
  }

  .royal-feature__systems {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .royal-feature__actions {
    margin-top: 12px;
  }

  .royal-feature__visual {
    min-height: 780px;
    padding: clamp(35px, 6vw, 70px);
  }

  .royal-demo {
    min-height: 600px;
  }

  .royal-ui__hero-copy h4 {
    font-size: clamp(54px, 8vw, 80px);
  }

  .royal-shop__grid strong {
    font-size: 18px;
  }

  .application-grid {
    grid-template-columns: 1fr;
  }

  .application-card--future {
    grid-column: auto;
  }

  .application-card {
    min-height: 0;
  }

  .application-card__visual {
    height: min(52vw, 470px);
  }

  .application-card--future {
    min-height: 520px;
  }

  .application-card--future .application-card__content {
    width: 78%;
  }

  .application-capabilities {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .application-systems__heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .application-systems__heading > .section-label {
    padding-top: 0;
  }

  .application-systems__eyebrow {
    margin-bottom: 20px;
  }

  .application-systems__intro h2 {
    font-size: clamp(52px, 15.5vw, 78px);
    line-height: 0.94;
  }

  .application-systems__intro > p:last-child {
    margin-top: 25px;
    font-size: 13px;
  }

  .application-principles li {
    min-height: 68px;
    padding: 15px 12px;
    font-size: 7px;
  }

  .application-principles li:first-child,
  .application-principles li:nth-child(3) {
    padding-left: 0;
  }

  .application-principles b {
    font-size: 14px;
  }

  .royal-feature__copy {
    padding: 35px 22px 43px;
  }

  .royal-feature__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .royal-feature__title {
    margin-top: 45px;
  }

  .royal-feature__title h3 {
    font-size: clamp(63px, 20vw, 91px);
  }

  .royal-feature__title h3 i {
    margin-left: 0.28em;
  }

  .royal-feature__lead {
    margin-top: 39px;
    font-size: 13px;
  }

  .royal-feature__proof {
    grid-template-columns: 1fr;
  }

  .royal-feature__proof > li,
  .royal-feature__proof > li:not(:first-child) {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 17, 15, 0.12);
  }

  .royal-feature__proof > li:last-child {
    border-bottom: 0;
  }

  .royal-feature__proof strong {
    margin-bottom: 0;
    font-size: 32px;
  }

  .royal-feature__systems {
    grid-template-columns: 1fr;
  }

  .royal-feature__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .royal-feature__actions .button {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  .royal-feature__visual {
    min-height: 0;
    padding: 30px 13px 34px;
  }

  .royal-visual__topline {
    margin-bottom: 27px;
    padding: 0 5px;
  }

  .royal-visual__topline span:last-child {
    display: none;
  }

  .royal-browser {
    border-radius: 9px;
  }

  .royal-browser__chrome {
    grid-template-columns: 44px minmax(0, 1fr);
    height: 34px;
    padding: 0 9px;
  }

  .royal-browser__secure {
    display: none;
  }

  .royal-demo {
    display: flex;
    min-height: 527px;
    flex-direction: column;
  }

  .royal-demo__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid #d8d0c6;
  }

  .royal-demo__tabs button {
    align-items: center;
    min-height: 52px;
    flex-direction: row;
    justify-content: center;
    padding: 9px 5px;
    border-right: 1px solid #d8d0c6;
    border-bottom: 0;
    font-size: 5px;
    text-align: center;
  }

  .royal-demo__tabs button:last-child {
    border-right: 0;
  }

  .royal-demo__tabs button span {
    display: none;
  }

  .royal-demo__viewport {
    flex: 1;
  }

  .royal-screen {
    min-height: 475px;
  }

  .royal-ui__announcement {
    font-size: 5px;
  }

  .royal-ui__nav {
    height: 45px;
    padding: 0 11px;
  }

  .royal-ui__nav div {
    gap: 7px;
  }

  .royal-ui__nav div span:first-child {
    display: none;
  }

  .royal-ui__hero {
    grid-template-columns: 1fr;
    min-height: 396px;
  }

  .royal-ui__hero-copy {
    position: relative;
    z-index: 2;
    min-height: 225px;
    padding: 29px 22px;
  }

  .royal-ui__hero-copy h4 {
    font-size: 49px;
  }

  .royal-ui__hero-copy p {
    max-width: 220px;
    margin-top: 13px;
  }

  .royal-ui__hero-copy > span:first-child {
    margin-bottom: 13px;
  }

  .royal-ui__button {
    margin-top: 17px;
  }

  .royal-ui__hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44%;
    height: 49%;
  }

  .royal-ui__product-row {
    height: 54px;
    padding: 9px 12px;
  }

  .royal-shop__header {
    padding: 20px 15px 16px;
  }

  .royal-shop__header h4 {
    font-size: 33px;
  }

  .royal-shop__body {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 390px;
  }

  .royal-shop__filters {
    padding: 18px 10px;
  }

  .royal-shop__filters > p {
    font-size: 14px;
  }

  .royal-shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .royal-shop__grid article:last-child {
    display: none;
  }

  .royal-shop__grid strong {
    font-size: 12px;
  }

  .royal-shop__results {
    padding: 16px 9px;
  }

  .royal-shop__sort span:first-child {
    display: none;
  }

  .royal-shop__sort {
    justify-content: flex-end;
  }

  .royal-ui__toast {
    right: 9px;
    bottom: 9px;
  }

  .royal-checkout__header {
    grid-template-columns: 1fr auto;
    height: 48px;
    padding: 0 12px;
  }

  .royal-checkout__header span:last-child {
    display: none;
  }

  .royal-checkout__body {
    grid-template-columns: 1fr;
    min-height: 427px;
  }

  .royal-checkout__form {
    padding: 24px 17px;
  }

  .royal-checkout__progress {
    margin: 14px 0 18px;
  }

  .royal-checkout__summary {
    display: none;
  }

  .royal-checkout__payment {
    margin-top: 12px;
  }

  .royal-visual__status {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding: 0 5px;
  }

  .royal-visual__status p {
    text-align: left;
  }

  .application-collection__heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    margin-top: 115px;
  }

  .application-collection__heading h3 {
    font-size: clamp(49px, 14vw, 68px);
  }

  .application-collection__heading > p {
    font-size: 12px;
  }

  .application-card__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 17px 18px;
  }

  .application-card__visual {
    height: 320px;
  }

  .application-card__visual--brandlab,
  .application-card__visual--cinevault {
    padding: 25px 16px;
  }

  .brandlab-ui,
  .cinevault-ui {
    width: 100%;
  }

  .application-card__content {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 30px 21px 37px;
  }

  .application-card__content ul,
  .application-card__planned {
    grid-column: auto;
  }

  .application-card__content h3 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .application-card--future {
    min-height: 630px;
  }

  .application-card--future .application-card__content {
    width: 100%;
    padding-top: 74px;
  }

  .application-card--future .application-card__content h3 {
    font-size: clamp(58px, 17vw, 82px);
  }

  .future-system__mark {
    right: -53px;
    bottom: 74px;
    width: 225px;
    opacity: 0.63;
  }

  .application-capabilities {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 110px;
  }

  .application-capabilities h3 {
    font-size: clamp(46px, 13vw, 62px);
  }
}

@media (max-width: 430px) {
  .application-principles {
    grid-template-columns: 1fr;
  }

  .application-principles li,
  .application-principles li:nth-child(2) {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .application-principles li:last-child {
    border-bottom: 0;
  }

  .royal-feature__title h3 {
    font-size: clamp(56px, 18vw, 72px);
  }

  .royal-feature__title h3 i {
    margin-left: 0;
    font-size: 0.88em;
  }

  .royal-shop__body {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .royal-shop__filters > div:nth-of-type(2) span {
    padding-left: 10px;
    font-size: 6px;
  }

  .royal-checkout__fields {
    gap: 7px;
  }

  .royal-checkout__field {
    padding: 8px;
  }
}

/* Short phone/tablet screens, especially landscape orientation */
@media (max-width: 980px) and (max-height: 600px) {
  .site-nav {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 88px;
    padding-left: max(24px, 8vw);
  }

  .site-nav a {
    font-size: clamp(27px, 7vh, 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .royal-visual__status i {
    animation: none;
  }

  .royal-screen,
  .application-card {
    transition: none;
  }
}
/* ROYAL DESKTOP — COMPACT FLAGSHIP FIX */
@media (min-width: 1061px) {
  .royal-feature {
    min-height: 0;
  }

  .royal-feature__copy {
    padding: clamp(42px, 3.3vw, 56px);
  }

  .royal-feature__title {
    margin-top: clamp(34px, 3vw, 46px);
  }

  .royal-feature__title h3 {
    font-size: clamp(72px, 5.6vw, 96px);
  }

  .royal-feature__lead {
    margin-top: 32px;
    line-height: 1.7;
  }

  .royal-feature__proof {
    margin-top: 30px;
  }

  .royal-feature__proof > li {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .royal-feature__systems {
    margin-top: 20px;
  }

  .royal-feature__systems article {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .royal-feature__actions {
    margin-top: 28px;
    padding-top: 0;
  }

  .royal-feature__visual {
    padding: clamp(32px, 3vw, 46px);
  }

  .royal-visual__topline {
    margin-bottom: 30px;
  }

  .royal-demo {
    min-height: clamp(500px, 34vw, 570px);
  }
}
