/* Ensure the hidden attribute always wins over element display rules */
[hidden] { display: none !important; }

/* ===== Fonts ===== */
@font-face {
  font-family: "Brockmann";
  src: url("assets/fonts/Brockmann-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brockmann";
  src: url("assets/fonts/Brockmann-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brockmann";
  src: url("assets/fonts/Brockmann-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset / base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: black;
  --color-text: #ffffff;
  --max-width: 1600px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Brockmann", system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

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

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.45) 0%, rgba(10, 7, 16, 0) 35%),
    linear-gradient(0deg, rgba(10, 7, 16, 0.35) 0%, rgba(10, 7, 16, 0) 40%);
}

/* ===== Nav ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2rem) var(--gutter);
  color: #fff;
  transition: color 0.35s ease;
}

.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 135%;
  z-index: -1;
  pointer-events: none;
  opacity: var(--scrim-opacity, 1);

  transition: opacity 0.3s ease;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 12%,
    rgba(0, 0, 0, 0.79) 24%,
    rgba(0, 0, 0, 0.61) 38%,
    rgba(0, 0, 0, 0.42) 52%,
    rgba(0, 0, 0, 0.25) 66%,
    rgba(0, 0, 0, 0.12) 80%,
    rgba(0, 0, 0, 0.04) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.nav.is-dark::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 12%,
    rgba(255, 255, 255, 0.79) 24%,
    rgba(255, 255, 255, 0.61) 38%,
    rgba(255, 255, 255, 0.42) 52%,
    rgba(255, 255, 255, 0.25) 66%,
    rgba(255, 255, 255, 0.12) 80%,
    rgba(255, 255, 255, 0.04) 90%,
    rgba(255, 255, 255, 0) 100%
  );
}

.nav > nav {
  margin-left: 48px;
  margin-right: auto;
}

.nav__logo {
  flex: 0 0 auto;
  color: inherit;
}

.nav__logo img,
.nav__logo svg {
  height: 2rem;
  width: auto;
}

.nav__logo-icon {
  color: inherit;
  will-change: transform;
}

.nav > nav,
.nav__actions,
.nav__burger {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav.is-tucked > nav,
.nav.is-tucked .nav__actions,
.nav.is-tucked .nav__burger {
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
}

.nav.is-tucked::before {
  opacity: 0;
}

.nav:hover > nav,
.nav:hover .nav__actions,
.nav:hover .nav__burger {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav.is-tucked:hover::before {
  opacity: var(--scrim-opacity, 1);
}

.nav.is-dark {
  color: #0d1030;
}

.nav.is-dark .btn--ghost {
  border-color: rgba(13, 16, 48, 0.3);
  color: #0d1030;
}

.nav.is-dark .btn--ghost:hover {
  border-color: rgba(13, 16, 48, 0.6);
}

.nav.is-dark .btn--solid {
  background: #0d1030;
  color: #fff;
}

.nav.is-dark .btn--solid:hover {
  background: rgba(13, 16, 48, 0.85);
}

.nav.is-dark .nav__burger-bar {
  background: #0d1030;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}

.nav__links a {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--solid {
  background: #fff;
  color: #0a0710;
}

.btn--solid:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ===== Burger toggle ===== */
.nav__burger {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}

.nav__burger-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav__burger.is-active .nav__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.is-active .nav__burger-bar:nth-child(2) {
  opacity: 0;
}
.nav__burger.is-active .nav__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile menu panel ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 6vh, 3.5rem);
  padding: var(--gutter);
  background: rgba(10, 7, 16, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu[hidden] {
  display: none;
}

body.menu-open .mobile-menu {
  opacity: 1;
}

body.menu-open .nav {
  color: #fff;
}

body.menu-open .nav .nav__burger-bar,
body.menu-open .nav.is-dark .nav__burger-bar {
  background: #fff;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vh, 2rem);
  list-style: none;
}

.mobile-menu__links a {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.mobile-menu__links a:hover {
  opacity: 1;
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 18rem;
}

.mobile-menu__actions .btn {
  font-size: 1.1rem;
  padding: 0.85rem 1.4rem;
}

/* ===== Hero content ===== */
.hero__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 28vh, 18rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}

.hero__title {
  margin-top: -2rem;
  font-weight: 400;
  font-size: 12vw;
  line-height: 0.92;
  letter-spacing: -0.03em;

  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #e1e1ee 24%,
    #ffffff 40%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 255, 255, 0.22) 64%,
    rgba(255, 255, 255, 0.2) 100%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heading-wipe 1.5s cubic-bezier(0.33, 1, 0.68, 1) 0.25s forwards;
}

@keyframes heading-wipe {
  to {
    background-position: 0% 0;
  }
}

.hero__title span {
  display: block;
}

.hero__title .line--2 {
  text-align: right;
  padding-right: 4px;
}

.hero__tagline {
  position: relative;
  margin-top: calc(clamp(2rem, 5vw, 4rem) + 2rem);
  padding-left: 1.25rem;
  max-width: 22ch;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
  animation: byline-in 0.7s ease 0.65s forwards;
}

.hero__tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleY(0);
  transform-origin: top;
  animation: line-draw 0.9s ease 0.65s forwards;
}

@keyframes byline-in {
  to {
    opacity: 0.92;
    transform: translateY(0);
  }
}

@keyframes line-draw {
  to {
    transform: scaleY(1);
  }
}

/* ===== Intro / trusted-by ===== */
.intro {
  position: relative;

  background: var(--color-bg);
  color: #0d1030;

  display: block;

  transition: color 0.5s ease;
}

.intro__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #ffffff;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.is-dark .intro__veil {
  opacity: 0;
}

.intro__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;

  padding: var(--grow-space, 7rem) var(--gutter) 0;
}

.intro__lead {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.5rem, 5.5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intro__hl {
  color: #0d1030;
  background-image: linear-gradient(
    100deg,
    #0d1030 0%,
    #0d1030 42%,
    #c3c4cf 58%,
    #c3c4cf 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.intro__hl,
.intro__muted {
  transition: color 0.5s ease, -webkit-text-fill-color 0.5s ease;
}

.intro__muted {
  color: #c3c4cf;
}

.intro__nowrap {
  white-space: nowrap;
}

.intro__mark {
  display: inline-block;
  vertical-align: super;
  font-size: 0.5em;
  line-height: 0;
}

.intro__mark img {
  display: inline-block;
  width: 0.58em;
  height: 0.58em;

  transform: translate(0.14em, -0.22em);
  opacity: 0.235;
  transition: filter 0.5s ease;
}

.intro__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.intro__logos li {
  flex: 0 1 auto;
}

.intro__logos img {
  height: clamp(2.125rem, 3.75vw, 3.25rem);
  width: auto;
  object-fit: contain;
}

.is-dark .intro {
  color: #ffffff;
}

.is-dark .intro__hl {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.is-dark .intro__muted {
  color: rgba(255, 255, 255, 0.55);
}

.is-dark .intro__mark img {
  filter: brightness(0) invert(1);
}

/* ===== Approach (video-backed) ===== */
.approach {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-bg);
}

.approach__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: translate(-19%, -12%) scale(1.4);
  transform-origin: center;
  filter: blur(8px);
  z-index: -2;
}

.approach__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.85) 0%, rgba(10, 7, 16, 0) 22%),
    linear-gradient(0deg, rgba(10, 7, 16, 0.9) 0%, rgba(10, 7, 16, 0) 28%),
    radial-gradient(120% 60% at 50% 40%, rgba(10, 7, 16, 0) 40%, rgba(10, 7, 16, 0.35) 100%);
}

.approach__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #ffffff;
  pointer-events: none;

  transition: opacity 0.5s ease;
}

.is-dark .approach__veil {
  opacity: 0;
}

.approach__divider {
  position: relative;
  z-index: 1;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  height: 1px;

  margin: calc(var(--grow-space, 7rem) * 0.75) auto;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.5s ease;
}

body:not(.is-dark) .approach__divider {
  background: rgba(13, 16, 48, 0.14);
}

.approach__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(8rem, 22vh, 18rem);
}

.approach__intro {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.approach__brands {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(1.1rem, 1.6vw, 1.375rem);
  font-weight: 500;
  opacity: 0.92;
}

.approach__mark {
  display: inline-block;
  vertical-align: super;
  font-size: 0.5em;
  line-height: 0;
}

.approach__mark img {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
}

.approach__plus {
  opacity: 0.7;
  font-weight: 400;
}

.approach__augentic {
  height: clamp(1.1rem, 1.6vw, 1.375rem);
  width: auto;
}

.approach__title {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.approach__title span {
  display: block;
}

.approach__copy {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 44rem;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.approach__copy p + p {
  margin-top: 1.5rem;
}

.approach__copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.approach__copy a:hover {
  opacity: 0.75;
}

.approach__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.approach__detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.approach__detail-title {
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.accordion__item {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #16b4e2 0%, #d63ad6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion__item.is-open::before {
  opacity: 1;
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.75rem) 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}

.accordion__label {
  transition: opacity 0.25s ease;
}

.accordion__summary:hover .accordion__label {
  opacity: 0.7;
}

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(90deg);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.5s ease;
}

.accordion__icon::before {
  width: 100%;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 100%;
}

.accordion__item.is-open .accordion__icon::before {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
}

.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 52rem;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__item.is-open .accordion__body {
  grid-template-rows: 1fr;
}

.accordion__body-inner {
  overflow: hidden;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion__item.is-open .accordion__body-inner {
  opacity: 1;
}

.accordion__body-inner p {
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.approach,
.approach__copy,
.approach__body-inner,
.approach__mark img,
.approach__augentic,
.accordion__item {
  transition: color 0.5s ease, background-color 0.5s ease,
    border-color 0.5s ease, filter 0.5s ease;
}

.approach__cta {
  transition: color 0.5s ease, background-color 0.5s ease,
    border-color 0.5s ease, opacity 0.2s ease;
}

body:not(.is-dark) .approach {
  color: #0d1030;
}

body:not(.is-dark) .approach__copy {
  color: rgba(13, 16, 48, 0.78);
}

body:not(.is-dark) .approach__body-inner {
  color: rgba(13, 16, 48, 0.66);
}

body:not(.is-dark) .accordion__item,
body:not(.is-dark) .accordion__item:first-child {
  border-color: rgba(13, 16, 48, 0.14);
}

body:not(.is-dark) .accordion__icon::before,
body:not(.is-dark) .accordion__icon::after {
  background: rgba(13, 16, 48, 0.85);
}

body:not(.is-dark) .approach__mark img,
body:not(.is-dark) .approach__augentic {
  filter: brightness(0);
}

body:not(.is-dark) .approach__cta {
  color: #0d1030;
  border-color: rgba(13, 16, 48, 0.3);
  background: rgba(13, 16, 48, 0.04);
}

body:not(.is-dark) .approach__cta:hover {
  border-color: rgba(13, 16, 48, 0.6);
}

/* ===== Featured work ===== */
.work {
  position: relative;
  background: #ffffff;
  color: #0d1030;
}

.work__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.work__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.work__title {
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.work__viewall {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.work__viewall:hover {
  opacity: 1;
}

.work__list {
  list-style: none;
}

.work-row {
  border-top: 1px solid rgba(13, 16, 48, 0.14);
}

.work-row:last-child {
  border-bottom: 1px solid rgba(13, 16, 48, 0.14);
}

.work-row__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 46%);
  grid-template-areas: "num heading media";
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
}

@media (hover: hover) and (pointer: fine) {
  .work-row__link {
    cursor: none;
  }
}

.work-row__num {
  grid-area: num;
  font-size: clamp(1.1rem, 1.4vw, 1.375rem);
  font-weight: 400;
  color: #c3c4cf;
  transition: color 0.3s ease;
}

.work-row__heading {
  grid-area: heading;
  max-width: 18ch;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #c3c4cf;
  transition: color 0.3s ease;
}

.work-row__media {
  grid-area: media;
  align-self: center;
  display: flex;
  overflow: hidden;

  height: clamp(12rem, 22vw, 19rem);
  border-radius: 16px;
}

.work-row__media img {
  width: 72%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  border-radius: 16px;

  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.work-row__link:hover .work-row__num,
.work-row__link:focus-visible .work-row__num,
.work-row__link:hover .work-row__heading,
.work-row__link:focus-visible .work-row__heading {
  color: #0d1030;
}

.work-row__link:hover .work-row__media img,
.work-row__link:focus-visible .work-row__media img {
  width: 100%;
  opacity: 1;
}

.work-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: #0d1030;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-cursor.is-switching {
  animation: cursor-swap 0.26s ease-out;
}

@keyframes cursor-swap {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 900px) {
  .work-row__link {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num heading"
      "media media";
    align-items: baseline;
    gap: 0.75rem clamp(1rem, 4vw, 2rem);

    cursor: pointer;
  }
  .work-row__media {
    margin-top: clamp(1.25rem, 4vw, 1.75rem);
  }

  .work-row__num,
  .work-row__heading {
    color: #0d1030;
  }
  .work-row__media img {
    width: 100%;
    opacity: 1;
  }
  .work-cursor {
    display: none;
  }
}

/* ===== CTA (video-backed) ===== */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-bg);

  color: #fff;
}

.cta__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(4px);
  z-index: -2;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.35) 0%, rgba(10, 7, 16, 0.15) 50%, rgba(10, 7, 16, 0.4) 100%),
    radial-gradient(120% 80% at 50% 50%, rgba(10, 7, 16, 0) 45%, rgba(10, 7, 16, 0.3) 100%);
}

.cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
}

.cta__title {
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.cta__title span {
  display: block;
}

.cta__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1rem, 1.6vw, 1.4rem) clamp(1.5rem, 2vw, 1.75rem) clamp(1rem, 1.6vw, 1.4rem) clamp(2rem, 3vw, 3rem);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.cta__button:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

.cta__button-label {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 400;
  white-space: nowrap;
}

.cta__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(2.75rem, 3.4vw, 3.25rem);
  height: clamp(2.75rem, 3.4vw, 3.25rem);
  border-radius: 999px;
  background: #fff;
  color: #0a0710;
  transition: transform 0.25s ease;
}

.cta__button:hover .cta__button-icon {
  transform: translateX(4px);
}

/* ===== Footer reveal ===== */

.page {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

body.footer-reveal .footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2rem, 3vw, 3rem);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 9vw, 10rem);
}

.footer__menus {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1vw, 0.85rem);
  list-style: none;
}

.footer__links a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1rem;
}

.footer__contact a {
  color: #fff;
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__address {
  color: rgba(255, 255, 255, 0.55);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.4rem);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
}

.footer__social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: #fff;
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__rule {
  height: 2px;
  border: 0;
  margin: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(90deg, #16b4e2 0%, #d63ad6 100%);
}

.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer__wordmark {
  width: clamp(16rem, 58vw, 60rem);
  height: auto;
}

.footer__legal {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(0.5rem, 2vw, 1.5rem);
}

.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* Heavier h1 weight on mobile across every page */
  .hero__title,
  .work-header__title,
  .contact__title {
    font-weight: 500;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(2.5rem, 8vw, 4rem);
  }
  .nav > nav {
    display: none;
  }
  .nav__links {
    display: none;
  }
  .nav__actions {
    display: none;
  }
  .nav__burger {
    display: flex;
    margin-left: auto;
  }
  .nav.is-tucked .nav__burger {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav::before,
  .nav.is-dark::before {
    display: none;
  }
  .intro__lead {
    font-size: clamp(1.875rem, 7.5vw, 3rem);
    line-height: 1.3;
  }

  .approach__title {
    font-size: clamp(1.875rem, 8vw, 2.75rem);
  }
  .work__title,
  .approach__detail-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .work-row__heading {
    font-size: clamp(1.3rem, 5.5vw, 1.6rem);
  }
  .work__inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .approach__inner {
    padding-bottom: 6rem;
    gap: clamp(3rem, 9vh, 5rem);
  }
  .cta__title {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .approach__detail {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
  }
  .hero__video {
    object-position: right center;
  }
  .hero__tagline {
    margin-top: calc(clamp(2rem, 5vw, 4rem) + 1rem);
  }
  .hero__tagline::before {
    height: 100%;
  }
  .hero__content {
    padding-top: 16vw;
  }
  .hero__title {
    font-weight: 500;
  }
  .hero__title .line--2 {
    text-align: left;
  }
  .intro__logos {
    justify-content: flex-start;
    gap: 1.75rem 1.5rem;
  }

  .intro__logos li {
    flex: 0 1 calc(33.333% - 1.25rem);
    display: flex;
    justify-content: flex-start;
  }
  .intro__logos img {
    height: 1.75rem;
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 6vw, 2.5rem);
  }
  .footer__legal {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title {
    background-position: 0% 0;
    animation: none;
  }
  .hero__tagline {
    opacity: 0.92;
    transform: none;
    animation: none;
  }
  .hero__tagline::before {
    transform: scaleY(1);
    animation: none;
  }

  .intro__hl {
    background-position: 0% 0;
  }
  .intro__mark img {
    opacity: 1;
  }

  .accordion__item::before,
  .accordion__icon,
  .accordion__icon::before,
  .accordion__icon::after,
  .accordion__body,
  .accordion__body-inner,
  .accordion__label,
  .work-row__num,
  .work-row__heading,
  .work-row__media img,
  .work-cursor {
    transition: none;
  }
}

/* ===== Our Work page ===== */

.page--light {
  background: #fff;
  color: #0d1030;
}

body:has(.page--light) {
  background: #fff;
}

body:has(.page--light).at-footer {
  background: var(--color-bg);
}

.work-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(8rem, 16vh, 12rem) var(--gutter) clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.work-header__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.work-header__tagline {

  flex: 0 0 calc((100% - 2 * clamp(1.5rem, 2.5vw, 2.25rem)) / 3);
  margin: clamp(0.5rem, 1.5vw, 1rem) 0 0;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.45;
  color: rgba(13, 16, 48, 0.75);
}

/* ===== Case-study grid ===== */
.cases {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 9vw, 8rem);
}

.cases__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  padding-top: clamp(1.5rem, 3.5vw, 3rem);
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(13, 16, 48, 0.12);

  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: border-color 0.25s ease;
}

.case-card:hover {
  border-color: rgba(13, 16, 48, 0.2);
}

.case-card__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #0d1030;
}

.case-card__media img:not(.case-card__logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}

.case-card:hover .case-card__media img:not(.case-card__logo) {
  transform: scale(1.04);
}

.case-card__logo {
  position: absolute;
  top: clamp(1rem, 1.6vw, 1.5rem);
  left: clamp(1rem, 1.6vw, 1.5rem);
  z-index: 1;
  width: auto;
  height: clamp(2.19rem, 2.8vw, 2.63rem);
  max-width: 60%;
  object-fit: contain;
  object-position: left top;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 1.8vw, 1.75rem);
}

.case-card__title {
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.case-card__desc {
  margin-top: clamp(0.75rem, 1.2vw, 1rem);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.5;
  color: rgba(13, 16, 48, 0.6);
}

.case-card__foot {
  margin-top: auto;
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
}

.case-card__link {
  display: inline-block;
  padding-top: clamp(1rem, 1.5vw, 1.4rem);
  border-top: 1px solid rgba(13, 16, 48, 0.12);
  width: 100%;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.case-card:hover .case-card__link {
  text-decoration-color: currentColor;
}

@media (max-width: 900px) {
  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .work-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-header__tagline {
    flex-basis: auto;
    width: 100%;
  }

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

/* ===== Our Company page ===== */

.company-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem);
}

.company-intro__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(14px, 1.6vw, 22px);
  margin-block: clamp(1.5rem, 3.5vw, 3rem);
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(3.9rem, 8.2vw, 7.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  color: #fff;
  background: #1a1140;
}

.company-intro__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(14px);
}

.company-intro__lead {
  margin: 0;
  font-weight: 500;

  font-size: clamp(1.5rem, 1.85vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.company-intro__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.6vw, 1.4rem);

  font-size: clamp(0.95rem, 1.06vw, 1rem);
  line-height: 1.55;
  color: #fff;
  align-self: center;
}

.company-intro__body p {
  margin: 0;
}

/* ===== Life at Propellerhead ===== */

.life {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-bg);
  padding: clamp(3.5rem, 10vw, 8rem) var(--gutter);
  min-height: min(90vh, 900px);
  display: flex;
  align-items: center;
}

.life__image {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 135%;
  object-fit: cover;
  transform: translateY(calc(-50% + var(--life-parallax, 0px)));
  will-change: transform;
  z-index: -2;
}

.life__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.35) 0%, rgba(10, 7, 16, 0) 30%),
    linear-gradient(0deg, var(--color-bg) 0%, rgba(10, 7, 16, 0) 45%);
}

.life__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.life__card {
  opacity: var(--life-card-opacity, 1);
  max-width: 34rem;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(2.625rem, 4.5vw, 4.125rem);
  border-radius: clamp(12px, 1.4vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(23, 20, 29, 0.20);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(12px);
  color: #fff;
}

.life__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.life__desc {
  margin: clamp(0.75rem, 1.5vw, 1.1rem) 0 clamp(1.5rem, 2.5vw, 2rem);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.life__actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  flex-wrap: wrap;
}

.life__link {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.life__link:hover {
  text-decoration-color: #fff;
}

/* ===== Insights promo ===== */
.insights {
  background: var(--color-bg);
  padding: clamp(8rem, 8vw, 8.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

.insights__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 8.5rem) clamp(1.75rem, 3.5vw, 3rem);
  border-radius: clamp(12px, 1.4vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: black;
  color: #fff;

  border-bottom: 0;
  box-shadow: inset 0 -2px 0 0 transparent;
}

.insights__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #16b4e2 0%, #d63ad6 100%);
}

.insights__watermark {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 4vw, 4rem);
  translate: 0 -50%;
  width: clamp(18rem, 36vw, 30rem);
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

.insights__watermark svg {
  width: 100%;
  height: auto;
}

.insights__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.85rem);
}

.insights__eyebrow {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.insights__title {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.insights__pill {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.insights__card:hover .insights__pill {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.insights__pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #fff;
  color: #0a0710;
}

.insights__pill-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 900px) {
  .company-intro__card {
    grid-template-columns: 1fr;
    padding-top: clamp(3rem, 9vw, 5rem);
  }
  .insights__card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .life {
    align-items: flex-start;
  }
  .life__card {
    max-width: none;
    margin-top: 165px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .insights {
    padding-top: 8px;
  }
}

/* ===== Terms & Conditions page ===== */

.terms {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.terms__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.terms__content {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3rem);
}

.terms__heading {
  margin: 0 0 clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  letter-spacing: -0.01em;
  color: #0d1030;
}

.terms__list {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1vw, 0.9rem);
}

.terms__list li {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.6;
  color: rgba(13, 16, 48, 0.72);
  padding-left: 0.35em;
}

.terms__list li::marker {
  color: rgba(13, 16, 48, 0.45);
}

.terms__list a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(13, 16, 48, 0.35);
  transition: text-decoration-color 0.2s ease;
}

.terms__list a:hover {
  text-decoration-color: currentColor;
}

.terms__aside {
  position: sticky;
  top: clamp(5rem, 12vh, 8rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.terms__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(12px, 1.2vw, 16px);
  padding: clamp(1.75rem, 2.8vw, 2.5rem) clamp(1.5rem, 2vw, 2rem) clamp(2.5rem, 4vw, 3.5rem);
  color: #fff;
  background: #35123f;
}

.terms__card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: blur(4px);
  z-index: -2;
}

.terms__card-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(20, 8, 30, 0.55) 0%, rgba(20, 8, 30, 0.1) 45%),
    linear-gradient(0deg, rgba(20, 8, 30, 0.5) 0%, rgba(20, 8, 30, 0) 55%);
}

.terms__card-title {
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  letter-spacing: -0.01em;
}

.terms__card-email {
  display: inline-block;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  transition: opacity 0.2s ease;
}

.terms__card-email:hover {
  opacity: 0.85;
}

.terms__card-address {
  margin: 0.35rem 0 0;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.terms__note {
  margin: 0;
  font-size: clamp(0.7rem, 0.8vw, 0.8rem);
  line-height: 1.55;
  color: rgba(13, 16, 48, 0.4);
}

@media (max-width: 860px) {
  .terms__grid {
    grid-template-columns: 1fr;
  }
  .terms__aside {
    position: static;
    order: -1;
    max-width: 30rem;
  }
}

/* ===== Contact ===== */
.contact {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-bg);
  color: #fff;
}

/* Wrapper carries the horizontal flip; the video carries the zoom. */
.contact__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transform: scaleX(-1);
}

.contact__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Zoom 150% and shift toward the lower-right portion. Scaling from the
     centre keeps overflow on every side, so the blurred edges stay clipped. */
  transform: scale(1.5) translate(-10%, -10%);
  filter: blur(6px);
}

.contact__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.35) 0%, rgba(10, 7, 16, 0) 30%),
    linear-gradient(0deg, rgba(10, 7, 16, 0.4) 0%, rgba(10, 7, 16, 0) 45%);
}

.contact__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(7rem, 18vh, 12rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  display: flex;
  flex-direction: column;
}

.contact__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.contact__body {
  margin-top: clamp(3rem, 14vh, 10rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact__lead {
  margin: 0;
  max-width: 13ch;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contact__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.6rem, 1vw, 0.9rem);
}

.contact__phone,
.contact__email {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  transition: opacity 0.2s ease;
}

.contact__phone:hover,
.contact__email:hover {
  opacity: 0.8;
}

.contact__address {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.65);
}

.contact__social {
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.1rem, 1.8vw, 1.75rem);
}

.contact__social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.contact__social a:hover {
  color: #fff;
}

.contact__social svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .contact__body {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 8vw, 3rem);
    margin-top: clamp(1.5rem, 6vw, 2.5rem);
  }
  .contact__title {
    font-weight: 500;
  }
  .contact__lead {
    max-width: 18ch;
  }
}

/* ===== Case study (detail) ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.study {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(7rem, 15vh, 11rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.study__crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: rgba(13, 16, 48, 0.5);
}

.study__crumbs a {
  transition: color 0.2s ease;
}

.study__crumbs a:hover {
  color: #0d1030;
}

.study__crumbs span[aria-current] {
  color: rgba(13, 16, 48, 0.7);
}

.study__headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1rem, 2vw, 1.75rem);
}

.study__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.study__meta {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
  padding-bottom: clamp(0.25rem, 0.8vw, 0.75rem);
}

.study__meta dd {
  margin: 0;
}

.study__client {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 500;
  color: #0d1030;
}

.study__readtime {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: rgba(13, 16, 48, 0.5);
}

.study__hero {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  overflow: hidden;
  border-radius: clamp(12px, 1.6vw, 22px);
  background: #0d1030;
}

.study__hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.study__intro {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(13, 16, 48, 0.14);
  border-bottom: 1px solid rgba(13, 16, 48, 0.14);
}

.study__lead {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.study__body {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(2rem, 14vw, 15.9rem);
  align-items: start;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.study__aside {
  position: sticky;
  top: clamp(6rem, 14vh, 9rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3rem);
}

.study__aside-title {
  margin: 0 0 clamp(0.85rem, 1.4vw, 1.15rem);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 500;
  color: #0d1030;
}

.study__jump ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.9vw, 0.75rem);
}

.study__jump a {
  position: relative;
  display: inline-block;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  color: rgba(13, 16, 48, 0.55);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.study__jump a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.75rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.study__jump a:hover {
  color: #0d1030;
}

.study__jump a.is-active {
  color: #0d1030;
  padding-left: 1.35rem;
}

.study__jump a.is-active::before {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

.study__share-list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  list-style: none;
}

.study__share-list a {
  display: inline-flex;
  color: rgba(13, 16, 48, 0.55);
  transition: color 0.2s ease;
}

.study__share-list a:hover {
  color: #0d1030;
}

.study__share-list a[data-share="copy"] {
  position: relative;
}

.study__share-list a[data-share="copy"].is-copied::after {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  background: #0d1030;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.study__share-list svg {
  width: 20px;
  height: 20px;
}

.study__main {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.study__section {
  scroll-margin-top: clamp(5rem, 12vh, 8rem);
}

.study__h2 {
  margin: 0 0 clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  color: #0d1030;
}

.study__text {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 1.8vw, 1.5rem);
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(13, 16, 48, 0.6);
}

.study__text p {
  margin: 0;
}

.study__quote {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  padding-left: clamp(1.25rem, 2vw, 1.75rem);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #16b4e2 0%, #d63ad6 100%) 1;
}

.study__quote p {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0d1030;
}

.study__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.75rem);
  border-radius: clamp(14px, 1.8vw, 24px);
  color: #fff;
  background:
    radial-gradient(120% 140% at 8% 120%, #ff3b6b 0%, rgba(255, 59, 107, 0) 48%),
    radial-gradient(120% 130% at 100% 15%, #6d3bff 0%, rgba(109, 59, 255, 0) 52%),
    linear-gradient(115deg, #1a1140 0%, #4a1d8f 42%, #a4238f 78%, #d8305f 100%);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.8vw, 0.6rem);
}

.stat__value {
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
}

.study__caption {
  margin: clamp(1.25rem, 2.2vw, 1.75rem) 0 0;
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.6;
  color: rgba(13, 16, 48, 0.55);
}

@media (max-width: 860px) {
  .study__body {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
  }
  .study__aside {
    position: static;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(2rem, 8vw, 4rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    border-bottom: 1px solid rgba(13, 16, 48, 0.14);
  }
  .study__main {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .study__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .study__main {
    order: 1;
  }
  .study__aside {
    order: 2;
    padding: clamp(1.5rem, 5vw, 2.5rem) 0 0;
    border-top: 1px solid rgba(13, 16, 48, 0.14);
    border-bottom: 0;
  }
  .study__jump {
    display: none;
  }
  .study__headline {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .study__title {
    font-weight: 500;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .study__lead {
    max-width: none;
    text-align: left;
  }
  .study__meta {
    text-align: left;
  }
  .study__stats {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 5vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .study__jump a,
  .study__jump a::before {
    transition: none;
  }
}

/* ===== Page transition curtain ===== */
:root {
  --curtain-dur: 620ms;
  --curtain-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --curtain-travel: 14vh;
}

/* Hidden by default (clipped off the top) with no load animation — the curtain only appears
   during a page transition. transition.js adds --covering to wipe it on, then --lifting to
   wipe it off; both are removed/absent at rest, so a fresh page load shows no curtain at all. */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

/* .curtain__mover owns the mark's travel + fade during a transition (driven by the
   covering/lifting classes below); it is the piece that swaps. */

/* The mark's rotation is driven by a small JS loop in transition.js (see startSpin), not a CSS
   animation: the parent .curtain animates clip-path on the main thread, which prevents the mark
   from being composited, so a CSS/timeline spin would stall-then-jump under load. */
.curtain__mark {
  display: block;
  width: clamp(52px, 8vw, 84px);
  height: auto;
  color: #fff;
}

.curtain__mark path {
  fill: currentColor;
}

/* leave: transition.js adds this to wipe the cover on + raise the mark into place */
.curtain--covering {
  clip-path: inset(100% 0 0 0);
  animation: curtain-cover var(--curtain-dur) var(--curtain-ease) forwards;
}

.curtain--covering .curtain__mover {
  animation: curtain-mark-in var(--curtain-dur) var(--curtain-ease) forwards;
}

/* enter: transition.js swaps --covering for this to wipe the cover off + carry the mark out */
.curtain--lifting {
  animation: curtain-lift var(--curtain-dur) var(--curtain-ease) forwards;
}

.curtain--lifting .curtain__mover {
  animation: curtain-mark-out var(--curtain-dur) var(--curtain-ease) forwards;
}

@keyframes curtain-cover {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes curtain-lift {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 0 100% 0); }
}

/* rides up from near the wipe edge, landing at centre on full cover */
@keyframes curtain-mark-in {
  0%   { opacity: 0; translate: 0 var(--curtain-travel); }
  18%  { opacity: 1; }
  100% { opacity: 1; translate: 0 0; }
}

/* keeps travelling up and off the top as the curtain lifts */
@keyframes curtain-mark-out {
  0%   { opacity: 1; translate: 0 0; }
  82%  { opacity: 1; }
  100% { opacity: 0; translate: 0 calc(-1 * var(--curtain-travel)); }
}

@media (prefers-reduced-motion: reduce) {
  .curtain--covering,
  .curtain--lifting,
  .curtain--covering .curtain__mover,
  .curtain--lifting .curtain__mover {
    animation-duration: 1ms !important;
  }
}
