@import url("/lib/typography.css");

:root {
  --accent: #b8b8b2;
  --paper: #ffffff;
  --ink: #181817;
  --thumbnail-color: var(--accent);
  --text-block-color: var(--ink);
  --text-block-padding: var(--paper);
  --project-gutter: clamp(24px, 6vw, 96px);
  --project-radius: 8px;
  --project-line: color-mix(in srgb, var(--ink) 14%, transparent);
  --project-muted: color-mix(in srgb, var(--ink) 52%, transparent);
  --project-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family: var(--font-family-site);
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

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

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

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

.project-page {
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.project-scroll-point {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

body[data-editor-preview="true"] .project-scroll-point.is-editor-selected::after {
  position: absolute;
  z-index: 10017;
  left: 0;
  top: 0;
  width: 100vw;
  border-top: 1px dashed #0a68ff;
  content: "";
  pointer-events: none;
}

.project-scroll-picker {
  position: absolute;
  z-index: 10030;
  right: 0;
  left: 0;
  height: 0;
  border-top: 2px solid #0a68ff;
  cursor: ns-resize;
  pointer-events: auto;
}

.project-scroll-picker__value {
  position: absolute;
  top: -14px;
  left: 50%;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0a68ff;
  color: #fff;
  font: 600 12px/1.2 var(--font-family-site, Arial, sans-serif);
  text-align: center;
  transform: translateX(-50%);
}

.project-code-component {
  display: grid;
  place-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: var(--code-component-min-height, 40dvh);
}

.project-code-component__fallback {
  margin: 0;
  padding: 24px;
  color: var(--ink, #181817);
  border: 1px dashed color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 16px;
}

.project-code-component__placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: inherit;
  padding: 32px;
  color: color-mix(in srgb, var(--ink, #181817) 58%, transparent);
  border: 1px dashed color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 16px;
  text-align: center;
}

.project-code-component__name {
  color: var(--ink, #181817);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
}

.project-code-component__status {
  font-size: 13px;
}

body[data-editor-preview="true"] .project-code-component[data-editor-locked="true"] {
  outline: 1px dashed color-mix(in srgb, currentColor 38%, transparent);
  outline-offset: 4px;
}

body[data-editor-preview="true"] .project-code-component[data-editor-locked="true"] > * {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .project-code-component {
    min-height: var(--code-component-min-height-mobile, 50dvh);
  }
}

.project-hero,
.project-section:not(.project-section--blocks) {
  padding-inline: var(--project-gutter);
}

.project-hero {
  display: grid;
  min-height: 60dvh;
  padding-top: 48px;
  padding-bottom: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.project-hero--widgets {
  position: relative;
  display: block;
  box-sizing: border-box;
  overflow: visible;
}

.project-hero--widgets[data-overflow="hidden"] {
  overflow: hidden;
}

.project-hero__widget {
  position: absolute;
  z-index: 1;
  min-width: 0;
  box-sizing: border-box;
}

.project-hero__widget--auto-size {
  width: max-content;
  max-width: 100%;
}

.project-hero__widget > :first-child {
  margin-top: 0;
}

.project-hero__widget > :last-child {
  margin-bottom: 0;
}

.project-hero__widget > .project-block {
  width: 100%;
  max-width: none;
  margin: 0;
}

.project-hero__widget > .project-block > .project-block__surface,
.project-hero__widget > .project-block > .project-hotspot,
.project-hero__widget > .project-block > .project-form-area {
  box-sizing: border-box;
  max-width: 100%;
}

.project-hero__widget > .project-block--text,
.project-hero__widget > .project-block--text > .project-block__surface {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.project-section-layer {
  min-height: var(--section-min-height, 60dvh);
}

.project-section__canvas {
  position: absolute;
  z-index: 1;
  top: var(--section-padding-top, 0);
  right: var(--section-padding-inline, 0);
  bottom: var(--section-padding-bottom, 0);
  left: var(--section-padding-inline, 0);
  min-width: 0;
  min-height: 0;
}

.project-section-child {
  left: var(--section-desktop-x, 0%);
  top: var(--section-desktop-y, 0%);
  width: var(--section-desktop-width, 42%);
  height: var(--section-desktop-height, auto);
  overflow: visible;
  translate: 0 var(--filter-free-shift-y, 0px);
  transform: var(--section-desktop-transform, none);
  transform-origin: top left;
}

/* Filter decoration is state only. Initial concealment prevents a first-frame flash;
   hidden removes the authored box so its own margins collapse with it. */
[data-filter-item][data-filter-initial-hidden="true"] {
  visibility: hidden !important;
}

[data-filter-item][hidden] {
  display: none !important;
}

.project-row[hidden],
[data-row-divider="true"][data-filter-divider-active="false"] {
  display: none !important;
}

.project-filter-transition-overlay {
  position: fixed;
  z-index: 10020;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  contain: strict;
  pointer-events: none;
}

.project-filter-transition-ghost {
  position: absolute;
  box-sizing: border-box;
  overflow: visible;
  pointer-events: none;
}

.project-section-child > .project-block {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: var(--block-padding, 0);
}

.project-section-child > .project-block:not(.project-block--text),
.project-section-child > .project-block:not(.project-block--text) > .project-block__surface {
  min-height: 100%;
}

.project-section-child.project-section__item--media > .project-block,
.project-section-child.project-section__item--media > .project-block > .project-block__surface,
.project-section-child.project-section__item--media .project-media {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-section-child.project-section__item--media > .project-block > .project-block__surface {
  aspect-ratio: auto;
}

.project-section-child.project-section__item--media .project-media__asset {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-section__background,
.project-section__background-media,
.project-section__background-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-section__background {
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.project-section__background-media {
  display: block;
}

.project-section__text {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  white-space: pre-wrap;
}

.project-section__text--list {
  padding-inline-start: 1.25em;
  white-space: normal;
}

.project-section__text-list-item + .project-section__text-list-item {
  margin-top: 0.28em;
}

.project-section__item--text {
  min-height: max-content;
  overflow: visible;
}

.project-section__text--h1,
.project-section__item--text .project-title {
  max-width: none;
  font-size: clamp(
    calc(58px * var(--hero-widget-scale, 1)),
    calc(9vw * var(--hero-widget-scale, 1)),
    calc(150px * var(--hero-widget-scale, 1))
  );
}

.project-section__text--h2 {
  font-size: clamp(calc(36px * var(--hero-widget-scale, 1)), calc(5vw * var(--hero-widget-scale, 1)), calc(80px * var(--hero-widget-scale, 1)));
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-section__text--h3 {
  font-size: clamp(calc(24px * var(--hero-widget-scale, 1)), calc(3vw * var(--hero-widget-scale, 1)), calc(48px * var(--hero-widget-scale, 1)));
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.project-section__text--body {
  font-size: clamp(calc(14px * var(--hero-widget-scale, 1)), calc(1.55vw * var(--hero-widget-scale, 1)), calc(24px * var(--hero-widget-scale, 1)));
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.project-section__item--media .hero-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.project-section__item--media .hero-thumbnail {
  min-height: 0;
  aspect-ratio: inherit;
}

.project-section__item--button {
  min-height: 44px;
  overflow: visible;
}

.project-section__button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: flex-start;
}

.project-section__item--button .project-button {
  max-width: 100%;
}

.project-section__media-empty {
  display: grid;
  width: 100%;
  min-height: 180px;
  border: 1px dashed currentColor;
  border-radius: var(--project-radius);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  place-items: center;
}

.project-hero__widget--title .project-title {
  max-width: none;
  font-size: clamp(
    calc(58px * var(--hero-widget-scale, 1)),
    calc(9vw * var(--hero-widget-scale, 1)),
    calc(150px * var(--hero-widget-scale, 1))
  );
}

.project-hero__widget--description .project-intro,
.project-hero__widget--year .project-meta,
.project-hero__widget--role .project-meta {
  margin: 0;
}

.project-hero__widget--description .project-intro {
  font-size: clamp(
    calc(17px * var(--hero-widget-scale, 1)),
    calc(1.55vw * var(--hero-widget-scale, 1)),
    calc(24px * var(--hero-widget-scale, 1))
  );
}

.project-hero__widget--tags .project-kicker,
.project-hero__widget--year .project-meta,
.project-hero__widget--role .project-meta {
  font-size: calc(11px * var(--hero-widget-scale, 1));
}

.project-hero__widget--media {
  z-index: 0;
}

.project-hero__widget--media .hero-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--hero-aspect, 4 / 3);
}

.project-hero__widget--media .hero-thumbnail {
  min-height: 0;
  aspect-ratio: inherit;
}

.project-hero__copy {
  min-width: 0;
}

.project-kicker,
.project-meta,
.project-label,
.project-text__eyebrow,
.project-error__eyebrow {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-kicker {
  margin: 0 0 24px;
  opacity: 0.55;
}

.project-title {
  max-width: 8ch;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(58px, 9vw, 150px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.project-intro {
  max-width: 560px;
  margin: 36px 0 0;
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.project-meta {
  display: flex;
  margin-top: 42px;
  flex-wrap: wrap;
  gap: 10px 24px;
  opacity: 0.55;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--project-radius);
  background: var(--thumbnail-color);
}

.hero-visual {
  width: 100%;
  min-height: min(68vh, 720px);
  margin: 0;
}

.hero-visual.has-custom-aspect {
  min-height: 0;
  aspect-ratio: var(--hero-aspect);
}

.hero-visual.has-poster {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
}

.hero-visual.has-thumbnail::before,
.hero-visual.has-thumbnail::after {
  display: none;
}

.hero-visual::before {
  width: 54%;
  aspect-ratio: 1;
  top: 10%;
  left: 14%;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 50%;
}

.hero-visual::after {
  right: 10%;
  bottom: 10%;
  width: 38%;
  height: 22%;
  border-radius: 999px;
  background: rgb(255 255 255 / 45%);
  transform: rotate(-18deg);
}

.project-section {
  padding-top: clamp(72px, 10vw, 160px);
  padding-bottom: clamp(72px, 10vw, 160px);
}

.project-section--white {
  background: #fff;
}

.project-section--blocks {
  background: transparent;
  padding-block: 0;
}

.project-copy-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 9vw, 150px);
}

.project-label {
  margin: 0;
  opacity: 0.46;
}

.project-copy {
  max-width: 820px;
  margin: 0;
  font-size: clamp(28px, 4.2vw, 66px);
  line-height: 1.07;
  letter-spacing: -0.05em;
}

/* Ordered editor blocks */
.project-section--blocks {
  display: grid;
  padding-inline: 0;
  gap: 0;
}

.project-row {
  display: grid;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  grid-template-columns: repeat(var(--row-columns, 1), minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(12px, 1.8vw, 28px);
  position: relative;
}

.project-bar {
  position: relative;
  width: 100%;
  min-height: var(--bar-thickness, 1px);
  opacity: var(--bar-opacity, 1);
}

.project-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--bar-inset, 0%);
  right: var(--bar-inset, 0%);
  border-top: var(--bar-thickness, 1px) solid var(--bar-color, currentColor);
  transform: translateY(-50%);
}

.project-bar[data-bar-style="dashed"]::before { border-top-style: dashed; }
.project-bar[data-bar-style="dotted"]::before { border-top-style: dotted; }

.project-block--column-divider {
  position: absolute !important;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc((100% / var(--row-columns)) * var(--divider-position));
  width: 0 !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%);
}

.project-block--column-divider .project-bar {
  width: var(--bar-thickness, 1px);
  height: 100%;
  min-height: 100%;
}

.project-block--column-divider .project-bar::before {
  top: var(--bar-inset, 0%);
  bottom: var(--bar-inset, 0%);
  left: 50%;
  right: auto;
  height: auto;
  border-top: 0;
  border-left: var(--bar-thickness, 1px) solid var(--bar-color, currentColor);
  transform: translateX(-50%);
}

.project-block--column-divider .project-bar[data-bar-style="dashed"]::before { border-left-style: dashed; }
.project-block--column-divider .project-bar[data-bar-style="dotted"]::before { border-left-style: dotted; }

.project-grid {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: var(--grid-line-width, 1px) solid var(--grid-line, #d5d5d1);
  background: var(--grid-fill, transparent);
}

.project-grid__row {
  display: grid;
}

.project-grid__row + .project-grid__row {
  border-top: var(--grid-line-width, 1px) solid var(--grid-line, #d5d5d1);
}

.project-grid__cell {
  min-width: 0;
  min-height: 0;
  padding: var(--grid-cell-padding, 20px);
  overflow: hidden;
}

.project-grid__cell + .project-grid__cell {
  border-left: var(--grid-line-width, 1px) solid var(--grid-line, #d5d5d1);
}

.project-grid__text {
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.project-grid__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-grid__column-handle,
.project-grid__row-handle {
  position: absolute;
  z-index: 8;
  border: 0;
  padding: 0;
  background: transparent;
}

.project-grid__column-handle {
  top: 0;
  bottom: 0;
  width: 12px;
  margin-left: -6px;
  cursor: col-resize;
}

.project-grid__row-handle {
  left: 0;
  right: 0;
  height: 12px;
  margin-top: -6px;
  cursor: row-resize;
}


.project-row--full {
  width: 100%;
  max-width: none;
}

.project-block {
  --block-background: transparent;
  --block-max-width: 1440px;
  --motion-delay: 0ms;
  --motion-duration: 800ms;
  --motion-easing: var(--project-ease-out);
  width: min(
    var(--block-max-width),
    calc(100% - var(--project-gutter) - var(--project-gutter))
  );
  margin-inline: auto;
  outline: none;
}

.project-block--width-narrow {
  --block-max-width: 720px;
}

.project-block--width-medium {
  --block-max-width: 1040px;
}

.project-block--width-wide {
  --block-max-width: 1440px;
}

.project-block--width-full {
  width: 100%;
  max-width: none;
}

.project-block--width-custom {
  width: min(
    var(--block-custom-width, 100%),
    calc(100% - var(--project-gutter) - var(--project-gutter))
  );
  max-width: 1440px;
}

.project-block--fit-content,
.project-row .project-block--fit-content {
  width: max-content;
  max-width: 100%;
}

.project-block--fit-content > .project-block__surface {
  width: max-content;
  max-width: 100%;
}

.project-block--align-left:not(.project-block--width-full) {
  margin-left: var(--project-gutter);
  margin-right: auto;
}

.project-block--align-right:not(.project-block--width-full) {
  margin-right: var(--project-gutter);
  margin-left: auto;
}

.project-section-child.project-hero__widget > .project-block {
  margin-inline: 0;
}

.project-section-child.project-hero__widget > .project-block--text {
  width: 100%;
}

.project-row .project-block {
  box-sizing: border-box;
  width: var(--block-width-percent, 100%);
  max-width: none;
  margin-block: var(--block-space-before, 0) var(--block-space-after, 0);
  margin-inline: 0;
  padding: var(--block-padding, 0);
}

.project-row .project-block--align-left {
  justify-self: start;
}

.project-row .project-block--align-center {
  justify-self: center;
}

.project-row .project-block--align-right {
  justify-self: end;
}

.project-row .project-block > .project-block__surface { box-sizing: border-box; }

[data-fixed-layer="true"] {
  position: fixed !important;
  z-index: var(--fixed-layer-z, 100) !important;
  top: var(--fixed-layer-y, 12%) !important;
  left: var(--fixed-layer-x, 8%) !important;
  width: var(--fixed-layer-width, 40%) !important;
  max-width: calc(100vw - var(--fixed-layer-x, 8%)) !important;
  margin: 0 !important;
}

[data-fixed-layer="true"][data-fit-content="true"] {
  width: max-content !important;
  max-width: min(100vw, calc(100vw - var(--fixed-layer-x, 8%))) !important;
}

body[data-editor-preview="true"] [data-fixed-layer="true"] {
  overflow: visible;
}

body[data-editor-preview="true"] [data-fixed-layer="true"].is-editor-selected {
  cursor: move;
  touch-action: none;
}

body[data-editor-preview="true"] [data-fixed-layer="true"].is-editor-fixed-dragging {
  cursor: grabbing;
  opacity: 0.92;
}

.project-fixed-guide {
  position: fixed;
  z-index: 10000;
  display: block;
  pointer-events: none;
  background: #286cff;
  box-shadow: 0 0 0 0.5px rgb(255 255 255 / 72%);
}

.project-fixed-guide[hidden] {
  display: none;
}

.project-fixed-guide--vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.project-fixed-guide--horizontal {
  right: 0;
  left: 0;
  height: 1px;
}

.project-block__surface {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--project-radius);
  background: var(--block-background);
  transform-origin: center;
  transition:
    transform var(--motion-duration) var(--motion-easing),
    filter var(--motion-duration) var(--motion-easing);
  will-change: transform;
}

.project-block--has-aspect .project-block__surface {
  aspect-ratio: var(--block-aspect);
}

.project-block:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.project-block--hotspot > .project-hotspot,
.project-block--form > .project-form-area {
  overflow: visible;
}

.project-block[data-hover="lift"]:focus-visible .project-block__surface,
.project-block[data-hover="lift"]:focus-within .project-block__surface {
  transform: translateY(-10px);
}

.project-block[data-hover="zoom"]:focus-visible .project-block__surface,
.project-block[data-hover="zoom"]:focus-within .project-block__surface {
  transform: scale(1.025);
}

.project-block[data-hover="tilt"]:focus-visible .project-block__surface,
.project-block[data-hover="tilt"]:focus-within .project-block__surface {
  transform: rotate(-1deg) scale(1.012);
}

.project-block[data-hover="dim"]:focus-visible .project-block__surface,
.project-block[data-hover="dim"]:focus-within .project-block__surface {
  filter: brightness(0.82);
}

@media (hover: hover) and (pointer: fine) {
  .project-block[data-hover="lift"]:hover .project-block__surface {
    transform: translateY(-10px);
  }

  .project-block[data-hover="zoom"]:hover .project-block__surface {
    transform: scale(1.025);
  }

  .project-block[data-hover="tilt"]:hover .project-block__surface {
    transform: rotate(-1deg) scale(1.012);
  }

  .project-block[data-hover="dim"]:hover .project-block__surface {
    filter: brightness(0.82);
  }
}

/* Section and footer motion */
.project-interaction-target {
  transform-origin: center;
  transition:
    transform var(--motion-duration, 180ms) var(--motion-easing, ease),
    filter var(--motion-duration, 180ms) var(--motion-easing, ease);
  will-change: transform, filter;
}

.project-hero[data-motion],
.project-footer[data-motion] {
  --motion-delay: 0ms;
  --motion-duration: 800ms;
  --motion-easing: var(--project-ease-out);
  transform-origin: center;
  transition:
    transform var(--motion-duration) var(--motion-easing),
    filter var(--motion-duration) var(--motion-easing);
  will-change: transform;
}

body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="lift"]:focus-visible {
  transform: translateY(-8px);
}

body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="zoom"]:focus-visible {
  transform: scale(1.008);
}

body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="tilt"]:focus-visible {
  transform: rotate(-0.35deg) scale(1.003);
}

body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="dim"]:focus-visible {
  filter: brightness(0.9);
}

@media (hover: hover) and (pointer: fine) {
  body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="lift"]:hover {
    transform: translateY(-8px);
  }

  body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="zoom"]:hover {
    transform: scale(1.008);
  }

  body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="tilt"]:hover {
    transform: rotate(-0.35deg) scale(1.003);
  }

  body:not([data-editor-preview="true"]) :is(.project-hero, .project-footer)[data-hover="dim"]:hover {
    filter: brightness(0.9);
  }
}

.project-block[data-scroll],
.project-interaction-target[data-scroll],
.project-hero[data-scroll],
.project-footer[data-scroll] {
  transform-origin: center;
  will-change: translate, scale, rotate, opacity;
}

/* Entrance motion is opt-in: content remains visible if JavaScript fails. */
.project-block.is-motion-ready,
.project-interaction-target.is-motion-ready,
.project-hero.is-motion-ready,
.project-footer.is-motion-ready {
  opacity: 0;
  will-change: opacity, transform, clip-path;
}

.project-block.is-motion-ready[data-motion="fade"],
.project-interaction-target.is-motion-ready[data-motion="fade"],
.project-hero.is-motion-ready[data-motion="fade"],
.project-footer.is-motion-ready[data-motion="fade"] {
  transform: none;
}

.project-block.is-motion-ready[data-motion="rise"],
.project-interaction-target.is-motion-ready[data-motion="rise"],
.project-hero.is-motion-ready[data-motion="rise"],
.project-footer.is-motion-ready[data-motion="rise"] {
  transform: translateY(48px);
}

.project-block.is-motion-ready[data-motion="scale"],
.project-interaction-target.is-motion-ready[data-motion="scale"],
.project-hero.is-motion-ready[data-motion="scale"],
.project-footer.is-motion-ready[data-motion="scale"] {
  transform: scale(0.96);
}

.project-block.is-motion-ready[data-motion="reveal"],
.project-interaction-target.is-motion-ready[data-motion="reveal"],
.project-hero.is-motion-ready[data-motion="reveal"],
.project-footer.is-motion-ready[data-motion="reveal"] {
  transform: translateY(18px);
}

/* Clipping before intersection makes the observed area empty in browsers.
   Keep its geometry intact until entry, then animate the reveal itself. */
.project-block.is-motion-ready.is-visible[data-motion="reveal"],
.project-interaction-target.is-motion-ready.is-visible[data-motion="reveal"],
.project-hero.is-motion-ready.is-visible[data-motion="reveal"],
.project-footer.is-motion-ready.is-visible[data-motion="reveal"] {
  animation: project-entrance-reveal var(--motion-duration) var(--motion-easing) var(--motion-delay) both;
}

@keyframes project-entrance-reveal {
  from { clip-path: inset(0 0 100% 0 round var(--project-radius)); }
  to { clip-path: inset(0 0 0 0 round var(--project-radius)); }
}

.project-block.is-motion-ready.is-visible,
.project-interaction-target.is-motion-ready.is-visible,
.project-hero.is-motion-ready.is-visible,
.project-footer.is-motion-ready.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round var(--project-radius));
  transform: none;
  transition:
    opacity var(--motion-duration) var(--motion-easing) var(--motion-delay),
    transform var(--motion-duration) var(--motion-easing) var(--motion-delay),
    clip-path var(--motion-duration) var(--motion-easing) var(--motion-delay);
}

.project-block[data-scroll="fade"]:not(.is-motion-ready),
.project-interaction-target[data-scroll="fade"]:not(.is-motion-ready),
.project-hero[data-scroll="fade"]:not(.is-motion-ready),
.project-footer[data-scroll="fade"]:not(.is-motion-ready) {
  opacity: var(--scroll-opacity, 1);
}

/* Media */
.project-media {
  margin: 0;
}

.project-media.is-empty {
  display: grid;
  min-height: 220px;
  border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, var(--ink));
  place-items: center;
}

.project-media__empty {
  margin: 0;
  color: var(--project-muted);
  font-size: 14px;
}

.project-block--has-aspect .project-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.project-media__asset {
  display: block;
  width: 100%;
  height: auto;
  background: var(--block-background);
  object-fit: cover;
  object-position: center;
}

.project-block--has-aspect .project-media__asset {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-media[data-fit="contain"] .project-media__asset,
.project-media[data-fit="auto"] .project-media__asset {
  object-fit: contain;
}

.project-media__caption {
  padding: 12px 2px 0;
  background: #fff;
  color: var(--project-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Slideshow, Lottie and 3D assets */
.project-slideshow,
.project-lottie,
.project-model {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.project-block--has-aspect .project-slideshow,
.project-block--has-aspect .project-lottie,
.project-block--has-aspect .project-model {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-slideshow.is-empty,
.project-lottie.is-empty,
.project-model.is-empty {
  display: grid;
  border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, var(--ink));
  place-items: center;
}

.project-slideshow__track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--slideshow-duration, 520ms) var(--project-ease-out);
}

.project-slideshow__slide {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slideshow-duration, 520ms) var(--project-ease-out);
  place-items: center;
}

.project-slideshow[data-transition="slide"] .project-slideshow__slide {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  opacity: 1;
  transition: none;
}

.project-slideshow[data-transition="none"] .project-slideshow__slide,
.project-slideshow[data-transition="none"] .project-slideshow__track {
  transition: none;
}

.project-slideshow__slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.project-slideshow__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.project-slideshow[data-fit="contain"] .project-slideshow__media {
  object-fit: contain;
}

.project-slideshow__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: var(--slideshow-control-size, 42px);
  height: var(--slideshow-control-size, 42px);
  padding: 0 0 3px;
  border: 0;
  border-radius: var(--slideshow-control-radius, 50%);
  background: color-mix(
    in srgb,
    var(--slideshow-control-background, #fff) var(--slideshow-control-opacity, 72%),
    transparent
  );
  color: var(--slideshow-control-color, #111);
  font: inherit;
  font-size: 28px;
  place-items: center;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.project-slideshow__control--previous { left: 16px; }
.project-slideshow__control--next { right: 16px; }

.project-slideshow__dots {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 50%;
  display: flex;
  padding: 7px 9px;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--slideshow-dot-background, #000) var(--slideshow-dot-background-opacity, 28%),
    transparent
  );
  gap: 7px;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.project-slideshow__dot {
  width: var(--slideshow-dot-size, 7px);
  height: var(--slideshow-dot-size, 7px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slideshow-dot-color, #fff) 48%, transparent);
}

.project-slideshow__dot[aria-current="true"] { background: var(--slideshow-dot-active, #fff); }

.project-slideshow.is-drag-enabled {
  cursor: grab;
  touch-action: pan-y;
}

.project-slideshow.is-drag-enabled.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.project-lottie > svg,
.project-model__viewer {
  display: block;
  width: 100%;
  height: 100%;
}

.project-model__viewer {
  min-height: 280px;
  background: transparent;
}

.project-audio {
  display: grid;
  min-height: clamp(220px, 30vw, 420px);
  padding: clamp(24px, 5vw, 72px);
  align-content: center;
  gap: 24px;
}

.project-audio__label {
  margin: 0;
  font-size: clamp(20px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.project-audio__control {
  width: 100%;
}

/* Text */
.project-text {
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: var(--text-block-padding);
  color: var(--text-block-color);
  font-synthesis: style weight;
}

.project-block--has-aspect .project-text {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.project-text__eyebrow {
  margin: 0 0 clamp(28px, 5vw, 72px);
  opacity: 0.52;
}

.project-text__heading {
  max-width: 15ch;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(36px, 6vw, 88px);
  font-weight: var(--text-font-weight, 500);
  line-height: var(--text-line-height, 0.98);
  letter-spacing: var(--text-letter-spacing, -0.06em);
}

.project-text__copy {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.project-text__list {
  margin-top: 0;
  padding-inline-start: 1.25em;
  white-space: normal;
}

.project-text__list-item + .project-text__list-item {
  margin-top: 0.28em;
}

.project-text__h1 {
  max-width: none;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: var(--text-font-weight, 500);
  line-height: var(--text-line-height, 0.92);
  letter-spacing: var(--text-letter-spacing, -0.065em);
}

.project-text__h2 {
  max-width: none;
  font-size: clamp(36px, 6vw, 88px);
  font-weight: var(--text-font-weight, 500);
  line-height: var(--text-line-height, 0.98);
  letter-spacing: var(--text-letter-spacing, -0.06em);
}

.project-text__h3 {
  max-width: none;
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: var(--text-font-weight, 500);
  line-height: var(--text-line-height, 1.04);
  letter-spacing: var(--text-letter-spacing, -0.045em);
}

.project-text__body {
  max-width: none;
  margin: 28px 0 0;
  white-space: pre-line;
  font-size: clamp(17px, 2vw, 27px);
  line-height: var(--text-line-height, 1.45);
  letter-spacing: var(--text-letter-spacing, -0.025em);
}

.project-text__body:first-child {
  margin-top: 0;
}

.project-text[data-text-align="left"] .project-text__copy {
  margin-right: auto;
  text-align: left;
}

.project-text[data-text-align="center"] .project-text__copy {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.project-text[data-text-align="right"] .project-text__copy {
  margin-left: auto;
  text-align: right;
}

/* Button */
.project-block--button {
  display: flex;
  align-items: flex-start;
}

.project-row .project-block--button,
.project-section-child > .project-block--button {
  padding: 0;
}

.project-block--button.project-block--align-left {
  justify-content: flex-start;
}

.project-block--button.project-block--align-center {
  justify-content: center;
}

.project-block--button.project-block--align-right {
  justify-content: flex-end;
}

.project-button {
  display: inline-flex;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding:
    calc(var(--button-padding-y, 14px) + var(--block-padding, 0px))
    calc(var(--button-padding-x, 22px) + var(--block-padding, 0px));
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: var(--button-border-width, 1px) solid var(--button-border, currentColor);
  border-radius: var(--button-radius, 24px);
  background: var(--button-background, transparent);
  color: var(--button-text, var(--ink));
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    filter var(--motion-duration, 180ms) var(--motion-easing, ease),
    transform var(--motion-duration, 180ms) var(--motion-easing, ease),
    opacity var(--motion-duration, 180ms) var(--motion-easing, ease);
}

.project-block--button:not(.project-block--fit-content) > .project-button {
  width: 100%;
}

.project-section-child > .project-block--button:not(.project-block--fit-content) > .project-button {
  min-height: 100%;
}

.project-button__label,
.project-button__icon {
  pointer-events: none;
}

.project-button__icon {
  color: var(--button-icon, currentColor);
  font-size: var(--button-icon-size, 16px);
  line-height: 1;
}

.project-button:hover,
.project-button:focus-visible {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.project-interaction-target[data-hover="none"]:hover,
.project-interaction-target[data-hover="none"]:focus-visible,
.project-interaction-target[data-hover="none"]:focus-within {
  filter: none;
  transform: none;
}

.project-interaction-target[data-hover="lift"]:hover,
.project-interaction-target[data-hover="lift"]:focus-visible,
.project-interaction-target[data-hover="lift"]:focus-within {
  filter: none;
  transform: translateY(-8px);
}

.project-interaction-target[data-hover="zoom"]:hover,
.project-interaction-target[data-hover="zoom"]:focus-visible,
.project-interaction-target[data-hover="zoom"]:focus-within {
  filter: none;
  transform: scale(1.045);
}

.project-interaction-target[data-hover="tilt"]:hover,
.project-interaction-target[data-hover="tilt"]:focus-visible,
.project-interaction-target[data-hover="tilt"]:focus-within {
  filter: none;
  transform: rotate(-2deg) scale(1.025);
}

.project-interaction-target[data-hover="dim"]:hover,
.project-interaction-target[data-hover="dim"]:focus-visible,
.project-interaction-target[data-hover="dim"]:focus-within {
  filter: brightness(0.78);
  transform: none;
}

.project-button:focus-visible {
  outline: 2px solid var(--button-border, var(--ink));
  outline-offset: 4px;
}

.project-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.project-button.is-disabled:hover,
.project-button.is-disabled:focus-visible {
  filter: none;
  transform: none;
}

.project-button--text,
.project-button--icon {
  border-color: transparent;
  background: transparent;
}

.project-button--text {
  min-height: 44px;
  padding: 0;
  border-radius: 0;
}

.project-button--icon {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}

.project-button--text:hover,
.project-button--text:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.project-button--icon-box {
  min-width: calc(var(--button-icon-size, 16px) + var(--button-padding-x, 22px) * 2);
}

/* Hotspot */
.project-hotspot {
  display: grid;
  width: max-content;
  min-width: var(--hotspot-icon-size, 44px);
  min-height: var(--hotspot-icon-size, 44px);
  overflow: visible;
  place-items: center;
  transform: none;
}

.project-block--hotspot {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.project-hotspot__trigger {
  display: grid;
  width: var(--hotspot-icon-size, 44px);
  height: var(--hotspot-icon-size, 44px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hotspot-icon-color, var(--ink));
  cursor: pointer;
  place-items: center;
  transition: transform 180ms var(--project-ease-out), filter 180ms ease;
}

.project-hotspot__trigger:hover,
.project-hotspot__trigger:focus-visible {
  transform: scale(1.08);
}

.project-hotspot__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.project-hotspot__icon,
.project-hotspot__icon-image {
  display: block;
  width: 100%;
  height: 100%;
}

.project-hotspot__icon[data-shape="circle"] {
  border-radius: 50%;
  background: currentColor;
}

.project-hotspot__icon[data-shape="square"] {
  border-radius: 12%;
  background: currentColor;
}

.project-hotspot__icon[data-shape="diamond"] {
  width: 72%;
  height: 72%;
  border-radius: 8%;
  background: currentColor;
  transform: rotate(45deg);
}

.project-hotspot__icon[data-shape="plus"] {
  position: relative;
}

.project-hotspot__icon[data-shape="plus"]::before,
.project-hotspot__icon[data-shape="plus"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.project-hotspot__icon[data-shape="plus"]::before {
  width: 86%;
  height: 18%;
}

.project-hotspot__icon[data-shape="plus"]::after {
  width: 18%;
  height: 86%;
}

.project-hotspot__icon--svg {
  background: currentColor;
  -webkit-mask: var(--hotspot-svg) center / contain no-repeat;
  mask: var(--hotspot-svg) center / contain no-repeat;
}

.project-hotspot__icon-image {
  object-fit: contain;
}

.project-hotspot__popup {
  position: absolute;
  z-index: 30;
  width: min(var(--hotspot-popup-width, 320px), calc(100vw - 32px));
  max-height: min(72vh, 720px);
  overflow: auto;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--hotspot-popup-text, var(--ink)) 16%, transparent);
  border-radius: var(--hotspot-popup-radius, 16px);
  background: var(--hotspot-popup-background, var(--paper));
  color: var(--hotspot-popup-text, var(--ink));
}

.project-hotspot__popup[hidden] {
  display: none;
}

.project-hotspot__popup[data-custom-frame="true"] {
  position: fixed;
  top: var(--hotspot-desktop-y, 50dvh);
  right: auto;
  bottom: auto;
  left: var(--hotspot-desktop-x, 50vw);
  width: min(var(--hotspot-desktop-width, var(--hotspot-popup-width, 320px)), calc(100vw - 32px));
  height: var(--hotspot-desktop-height, auto);
  transform: none;
}

.project-hotspot__popup[data-placement="right"]:not([data-custom-frame="true"]) {
  top: 50%;
  left: calc(50% + var(--hotspot-icon-size, 44px) / 2 + 14px);
  transform: translateY(-50%);
}

.project-hotspot__popup[data-placement="left"]:not([data-custom-frame="true"]) {
  top: 50%;
  right: calc(50% + var(--hotspot-icon-size, 44px) / 2 + 14px);
  transform: translateY(-50%);
}

.project-hotspot__popup[data-placement="top"]:not([data-custom-frame="true"]) {
  bottom: calc(50% + var(--hotspot-icon-size, 44px) / 2 + 14px);
  left: 50%;
  transform: translateX(-50%);
}

.project-hotspot__popup[data-placement="bottom"]:not([data-custom-frame="true"]) {
  top: calc(50% + var(--hotspot-icon-size, 44px) / 2 + 14px);
  left: 50%;
  transform: translateX(-50%);
}

.project-hotspot__close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 32px;
  height: 32px;
  margin: -8px -8px 4px 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 9%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.project-hotspot__popup-image {
  display: block;
  width: 100%;
  max-height: 420px;
  border-radius: max(0px, calc(var(--hotspot-popup-radius, 16px) - 6px));
  object-fit: cover;
}

.project-hotspot__popup-copy {
  display: grid;
  clear: both;
  padding-top: 12px;
  gap: 8px;
}

.project-hotspot__popup-title {
  font-size: 20px;
  line-height: 1.1;
}

.project-hotspot__popup-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

body[data-editor-preview="true"] .project-hotspot.is-editor-hotspot-active .project-hotspot__popup {
  overflow: visible;
  cursor: move;
  touch-action: none;
}

body[data-editor-preview="true"] .project-section-child:has(.project-hotspot.is-editor-hotspot-active),
body[data-editor-preview="true"] .project-block__surface:has(.project-hotspot.is-editor-hotspot-active) {
  transform: none;
}

.project-hotspot__connector {
  position: fixed;
  z-index: 29;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: visible;
  pointer-events: none;
}

.project-hotspot__connector[hidden] {
  display: none;
}

.project-hotspot__connector line {
  stroke: #286cff;
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.project-hotspot__connector marker path {
  fill: #286cff;
}

.project-hotspot__popup-resize-handle {
  position: absolute;
  z-index: 4;
  display: none;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1.5px solid #286cff;
  border-radius: 1px;
  background: #fff;
  touch-action: none;
}

body[data-editor-preview="true"] .is-editor-hotspot-active .project-hotspot__popup-resize-handle {
  display: block;
}

.project-hotspot__popup-resize-handle[data-hotspot-popup-resize="nw"] { top: 0; left: 0; cursor: nwse-resize; transform: translate(-50%, -50%); }
.project-hotspot__popup-resize-handle[data-hotspot-popup-resize="ne"] { top: 0; right: 0; cursor: nesw-resize; transform: translate(50%, -50%); }
.project-hotspot__popup-resize-handle[data-hotspot-popup-resize="se"] { right: 0; bottom: 0; cursor: nwse-resize; transform: translate(50%, 50%); }
.project-hotspot__popup-resize-handle[data-hotspot-popup-resize="sw"] { bottom: 0; left: 0; cursor: nesw-resize; transform: translate(-50%, 50%); }

/* Form */
.project-form {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  gap: var(--project-form-gap, 18px);
  overflow: visible;
}

.project-form__field {
  display: grid;
  gap: 8px;
}

.project-form__attachment {
  display: grid;
  gap: 8px;
}

.project-form__label {
  color: var(--form-label, var(--ink));
  font-size: 14px;
  font-weight: 500;
}

.project-form__control {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: var(--form-padding-y, 13px) var(--form-padding-x, 15px);
  border: var(--form-border-width, 1px) solid var(--form-border, #d5d5d1);
  border-radius: var(--form-radius, 12px);
  outline: 0;
  background: var(--form-background, var(--paper));
  color: var(--form-text, var(--ink));
  font: inherit;
  line-height: 1.35;
}

select.project-form__control {
  cursor: pointer;
}

select.project-form__control:has(option:checked[value=""]) {
  color: var(--form-placeholder, #8a8a84);
}

select.project-form__control option {
  color: var(--form-text, var(--ink));
}

.project-form__compound {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.project-form__compound--phone {
  grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
}

.project-form__compound--select-text {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.project-form__country-code {
  text-overflow: ellipsis;
}

textarea.project-form__control {
  min-height: 132px;
  resize: vertical;
}

.project-form__control::placeholder {
  color: var(--form-placeholder, #8a8a84);
  opacity: 1;
}

.project-form__control:focus {
  border-color: var(--form-text, var(--ink));
  outline: 2px solid color-mix(in srgb, var(--form-text, var(--ink)) 52%, transparent);
  outline-offset: 2px;
}

.project-form__file-control {
  padding: 9px var(--form-padding-x, 15px);
  cursor: pointer;
}

.project-form__file-control::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: max(4px, calc(var(--form-radius, 12px) - 5px));
  background: color-mix(in srgb, var(--form-text, var(--ink)) 10%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.project-form__hint {
  margin: 0;
  color: var(--form-label, var(--ink));
  font-size: 12px;
  opacity: 0.62;
}

.project-form__submit {
  width: fit-content;
  min-height: 48px;
  padding: var(--form-submit-padding-y, 14px) var(--form-submit-padding-x, 24px);
  border: var(--form-submit-border-width, 0) solid var(--form-submit-border, transparent);
  border-radius: var(--form-submit-radius, 40px);
  background: var(--form-submit-background, var(--ink));
  color: var(--form-submit-text, var(--paper));
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms var(--project-ease-out);
}

.project-form__submit:hover,
.project-form__submit:focus-visible {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

.project-form__submit:focus-visible {
  outline: 2px solid var(--form-submit-background, var(--ink));
  outline-offset: 4px;
}

.project-form__status {
  min-height: 1em;
  margin: 0;
  font-size: 12px;
  opacity: 0.62;
}

.project-scroll-target-editor {
  position: fixed;
  z-index: 12000;
  top: 64px;
  right: 16px;
  bottom: 64px;
  width: 42px;
  pointer-events: none;
}

.project-scroll-target-editor__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transform: translateX(-50%);
}

.project-scroll-target-editor__handle {
  position: absolute;
  top: var(--scroll-target-position, 50%);
  left: 50%;
  display: grid;
  min-width: 42px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: ns-resize;
  pointer-events: auto;
  touch-action: none;
  transform: translate(-50%, -50%);
  place-items: center;
}

.project-scroll-target-editor__value {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

body[data-editor-preview="true"] .project-hero,
body[data-editor-preview="true"] .project-footer,
body[data-editor-preview="true"] .project-row {
  position: relative;
  outline: 1px dashed rgb(79 79 74 / 34%);
  outline-offset: -1px;
}

body[data-editor-preview="true"] .project-hero__widget {
  cursor: grab;
  outline: 1px dashed rgb(79 79 74 / 55%);
  outline-offset: 3px;
  touch-action: none;
  user-select: none;
}

body[data-editor-preview="true"] .project-hero__widget:active {
  cursor: grabbing;
}

body[data-editor-preview="true"] .project-hero__widget.is-editor-widget-selected {
  z-index: 120 !important;
  overflow: visible !important;
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

body[data-editor-preview="true"] .project-hero__resize-handle {
  position: absolute;
  z-index: 140;
  display: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
}

body[data-editor-preview="true"] .project-hero__resize-handle::before {
  position: absolute;
  inset: 5px;
  box-sizing: border-box;
  border: 1.5px solid #286cff;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 70%);
  content: "";
}

body[data-editor-preview="true"] .project-hero__resize-handle[data-hero-resize-corner="nw"] {
  top: 0;
  left: 0;
  cursor: nwse-resize;
  transform: translate(-50%, -50%);
}

body[data-editor-preview="true"] .project-hero__resize-handle[data-hero-resize-corner="ne"] {
  top: 0;
  right: 0;
  cursor: nesw-resize;
  transform: translate(50%, -50%);
}

body[data-editor-preview="true"] .project-hero__resize-handle[data-hero-resize-corner="se"] {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
  transform: translate(50%, 50%);
}

body[data-editor-preview="true"] .project-hero__resize-handle[data-hero-resize-corner="sw"] {
  bottom: 0;
  left: 0;
  cursor: nesw-resize;
  transform: translate(-50%, 50%);
}

body[data-editor-preview="true"] .project-hero__widget.is-editor-widget-selected .project-hero__resize-handle {
  display: block;
}

body[data-editor-preview="true"] .project-hero__resize-handle:focus-visible,
body[data-editor-preview="true"] .project-hero__height-handle:focus-visible {
  outline: 2px solid #286cff;
  outline-offset: 1px;
}

body[data-editor-preview="true"] .project-hero__widget.is-editor-widget-resizing,
body[data-editor-preview="true"] .project-hero__widget.is-editor-widget-dragging {
  z-index: 11;
  cursor: grabbing;
}

body[data-editor-preview="true"] .project-hero__height-handle {
  position: absolute;
  z-index: 22;
  bottom: 4px;
  left: 50%;
  display: none;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--ink) 18%, transparent);
  cursor: ns-resize;
  touch-action: none;
  transform: translateX(-50%);
}

body[data-editor-preview="true"] .project-hero__height-handle::before {
  position: absolute;
  top: 12px;
  right: 9px;
  left: 9px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

body[data-editor-preview="true"] .project-hero.is-editor-selected > .project-hero__height-handle {
  display: block;
}

body[data-editor-preview="true"] .project-hero__smart-guide {
  position: absolute;
  z-index: 20;
  display: block;
  pointer-events: none;
  background: #286cff;
  box-shadow: 0 0 0 0.5px rgb(255 255 255 / 68%);
}

body[data-editor-preview="true"] .project-hero__smart-guide[hidden] {
  display: none;
}

body[data-editor-preview="true"] .project-hero__smart-guide--vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

body[data-editor-preview="true"] .project-hero__smart-guide--horizontal {
  right: 0;
  left: 0;
  height: 1px;
}

body[data-editor-preview="true"] .project-hero.is-editor-height-resizing {
  cursor: ns-resize;
}

body[data-editor-preview="true"] .project-hero,
body[data-editor-preview="true"] .project-footer {
  cursor: pointer;
}

body[data-editor-preview="true"] .project-block {
  cursor: pointer;
  outline: 1px solid rgb(79 79 74 / 48%);
  outline-offset: -1px;
}

body[data-editor-preview="true"] .project-block > .project-block__surface {
  outline: 1px solid rgb(79 79 74 / 18%);
  outline-offset: -1px;
}

body[data-editor-preview="true"] .project-hero.is-editor-selected,
body[data-editor-preview="true"] .project-footer.is-editor-selected,
body[data-editor-preview="true"] .project-block.is-editor-selected {
  outline: 0;
}

body[data-editor-preview="true"] .project-hero.is-editor-selected::after,
body[data-editor-preview="true"] .project-footer.is-editor-selected::after,
body[data-editor-preview="true"] .project-block.is-editor-selected::after {
  position: absolute;
  z-index: 130;
  inset: 0;
  border: 2px solid #286cff;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

@media (forced-colors: active) {
  body[data-editor-preview="true"] .project-hero,
  body[data-editor-preview="true"] .project-footer,
  body[data-editor-preview="true"] .project-row,
  body[data-editor-preview="true"] .project-block {
    outline-color: CanvasText;
  }
}

.project-footer {
  display: flex;
  min-height: 46dvh;
  padding: 64px var(--project-gutter);
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background: var(--accent);
  color: var(--ink);
}

.project-footer p {
  margin: 0;
  font-size: clamp(28px, 5vw, 72px);
  letter-spacing: -0.05em;
}

.project-footer span {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.project-error {
  display: grid;
  min-height: 100dvh;
  padding: var(--project-gutter);
  place-content: center;
  background: var(--paper);
  color: var(--ink);
}

.project-error__eyebrow {
  margin: 0 0 24px;
  opacity: 0.52;
}

.project-error__title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.project-error__message {
  max-width: 540px;
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .project-section-child {
    left: var(--section-tablet-x, var(--section-desktop-x, 0%));
    top: var(--section-tablet-y, var(--section-desktop-y, 0%));
    width: var(--section-tablet-width, var(--section-desktop-width, 42%));
    height: var(--section-tablet-height, var(--section-desktop-height, auto));
    transform: var(--section-tablet-transform, var(--section-desktop-transform, none));
  }

  .project-hotspot__popup[data-custom-frame="true"] {
    top: var(--hotspot-tablet-y, var(--hotspot-desktop-y, 50dvh));
    left: var(--hotspot-tablet-x, var(--hotspot-desktop-x, 50vw));
    width: min(var(--hotspot-tablet-width, var(--hotspot-desktop-width, var(--hotspot-popup-width, 320px))), calc(100vw - 32px));
    height: var(--hotspot-tablet-height, var(--hotspot-desktop-height, auto));
  }
}

@media (max-width: 760px) {
  :root {
    --project-gutter: 20px;
  }

  .project-hero {
    min-height: auto;
    padding-top: 48px;
    grid-template-columns: 1fr;
  }

  .project-hero--widgets {
    display: block;
    overflow: visible;
  }

  .project-hero--widgets[data-overflow="hidden"] { overflow: hidden; }

  .project-section-layer {
    min-height: var(--section-min-height-mobile, var(--section-min-height, 60dvh));
  }

  .project-section-child {
    left: var(--section-mobile-x, var(--section-tablet-x, 0%));
    top: var(--section-mobile-y, var(--section-tablet-y, 0%));
    width: var(--section-mobile-width, var(--section-tablet-width, 42%));
    height: var(--section-mobile-height, var(--section-tablet-height, auto));
    transform: var(--section-mobile-transform, var(--section-tablet-transform, none));
  }

  .project-hero--widgets .project-hero__widget {
    position: absolute;
  }

  .project-section__background {
    position: absolute;
  }

  .project-title {
    font-size: clamp(56px, 19vw, 92px);
  }

  .project-hero__widget--title .project-title {
    font-size: clamp(
      calc(56px * var(--hero-widget-scale, 1)),
      calc(19vw * var(--hero-widget-scale, 1)),
      calc(92px * var(--hero-widget-scale, 1))
    );
  }

  .project-section__item--text .project-title {
    font-size: clamp(
      calc(42px * var(--hero-widget-scale, 1)),
      calc(14vw * var(--hero-widget-scale, 1)),
      calc(82px * var(--hero-widget-scale, 1))
    );
  }

  body[data-editor-preview="true"] .project-hero__resize-handle {
    width: 28px;
    height: 28px;
  }

  body[data-editor-preview="true"] .project-hero__resize-handle::before {
    inset: 9px;
  }

  body[data-editor-preview="true"] .project-hero__height-handle {
    bottom: 6px;
    width: 64px;
    height: 40px;
  }

  body[data-editor-preview="true"] .project-hero__height-handle::before {
    top: 18px;
  }

  .hero-visual {
    min-height: 62dvh;
  }

  .hero-visual.has-custom-aspect {
    min-height: 0;
  }

  .project-copy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-section--blocks {
    gap: 0;
  }

  .project-row,
  .project-row--full {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .project-row .project-block,
  .project-row .project-block--width-custom {
    width: var(--block-width-percent, 100%);
    margin-inline: 0;
  }

  .project-block,
  .project-block--width-custom {
    width: 100%;
    margin-inline: auto;
  }

  .project-block--fit-content,
  .project-row .project-block--fit-content,
  .project-block--fit-content > .project-block__surface {
    width: max-content;
    max-width: 100%;
  }

  .project-block--width-full .project-block__surface {
    border-radius: var(--project-radius);
  }

  .project-row .project-block {
    padding: min(var(--block-padding, 0px), 36px);
  }

  .project-grid[data-grid-columns="3"] .project-grid__row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .project-grid[data-grid-columns="3"] .project-grid__cell:nth-child(3) {
    grid-column: 1 / -1;
    border-top: var(--grid-line-width, 1px) solid var(--grid-line, #d5d5d1);
    border-left: 0;
  }

  .project-grid[data-grid-columns="3"][data-mobile-hide-third="true"] .project-grid__cell:nth-child(3) {
    display: none;
  }

  .project-block--column-divider {
    display: none;
  }

  .project-hotspot__popup,
  .project-hotspot__popup[data-placement] {
    position: fixed;
    top: 50%;
    right: 16px;
    bottom: auto;
    left: 16px;
    width: auto;
    max-height: calc(100dvh - 32px);
    transform: translateY(-50%);
  }

  .project-hotspot__popup[data-custom-frame="true"] {
    position: fixed;
    top: var(--hotspot-mobile-y, var(--hotspot-tablet-y, 50dvh));
    right: auto;
    bottom: auto;
    left: var(--hotspot-mobile-x, var(--hotspot-tablet-x, 16px));
    width: min(var(--hotspot-mobile-width, var(--hotspot-tablet-width, var(--hotspot-popup-width, 320px))), calc(100vw - 32px));
    height: var(--hotspot-mobile-height, var(--hotspot-tablet-height, auto));
    transform: none;
  }

  .project-text {
    padding: 0;
  }

  .project-text__heading {
    font-size: clamp(34px, 11vw, 58px);
  }

  .project-text__h1 {
    font-size: clamp(42px, 13vw, 72px);
  }

  .project-text__h2 {
    font-size: clamp(34px, 11vw, 58px);
  }

  .project-text__h3 {
    font-size: clamp(27px, 8vw, 42px);
  }

  .project-form__compound--phone,
  .project-form__compound--select-text {
    grid-template-columns: 1fr;
  }

  .project-footer {
    min-height: 38dvh;
    padding-top: 48px;
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .project-block,
  .project-block.is-motion-ready,
  .project-block.is-motion-ready.is-visible,
  .project-interaction-target,
  .project-interaction-target.is-motion-ready,
  .project-interaction-target.is-motion-ready.is-visible,
  .project-hero,
  .project-hero.is-motion-ready,
  .project-hero.is-motion-ready.is-visible,
  .project-footer,
  .project-footer.is-motion-ready,
  .project-footer.is-motion-ready.is-visible {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
  }

  .project-block[data-hover] .project-block__surface,
  .project-interaction-target[data-hover],
  .project-hero[data-hover],
  .project-footer[data-hover] {
    filter: none !important;
    transform: none !important;
  }
}

/* Page flow and independent scroll areas share a resolved axis at every breakpoint. */
.project-page[data-page-axis="vertical"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

html[data-page-axis="horizontal"] {
  overflow-x: auto;
}

body[data-page-axis="horizontal"] {
  overflow: visible;
}

.project-page[data-page-axis="horizontal"] {
  display: flex;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
  min-height: 100dvh;
}

.project-page[data-page-axis="horizontal"] > .project-section--blocks {
  display: contents;
}

.project-page[data-page-axis="horizontal"] .project-row {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  width: max-content;
  margin: 0;
  gap: 0;
}

.project-page[data-page-axis="horizontal"] .project-row > .project-block {
  flex: 0 0 auto;
  width: calc(var(--page-flow-width, 100vw) * var(--block-width-ratio, 1) / var(--row-columns, 1));
}

.project-page[data-page-axis="horizontal"] .project-row > .project-block--fit-content {
  width: max-content;
  max-width: calc(var(--page-flow-width, 100vw) * var(--block-width-ratio, 1) / var(--row-columns, 1));
}

.project-page[data-page-axis="horizontal"] .project-row > .project-block--align-center { align-self: safe center; }
.project-page[data-page-axis="horizontal"] .project-row > .project-block--align-right { align-self: safe flex-end; }

.project-page[data-page-axis="horizontal"] > .project-hero,
.project-page[data-page-axis="horizontal"] > .project-footer {
  flex: 0 0 auto;
  width: var(--page-flow-width, 100vw);
}

.project-row > .project-block[data-flow-axis="vertical"],
.project-section-layer[data-flow-axis="vertical"],
[data-scroll-area-viewport] > .project-block[data-flow-axis="vertical"] {
  margin-block: var(--block-space-before, 0px) var(--block-space-after, 0px);
}

.project-row > .project-block[data-flow-axis="horizontal"],
.project-section-layer[data-flow-axis="horizontal"],
[data-scroll-area-viewport] > .project-block[data-flow-axis="horizontal"] {
  margin-block: 0;
  margin-inline: var(--block-space-before, 0px) var(--block-space-after, 0px);
}

/* Mobile uses the effective values resolved from explicit overrides or desktop inheritance. */
.project-row {
  grid-template-columns: repeat(var(--row-columns, 1), minmax(0, 1fr));
}

.project-section-layer--scroll,
.project-section-layer--scroll[data-overflow="hidden"] {
  min-height: 0;
  height: auto;
  padding: var(--section-padding-top, 0px) var(--section-padding-inline, 0px) var(--section-padding-bottom, 0px);
  overflow: visible;
}

.project-section-layer--scroll > .project-section__canvas {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  border-radius: inherit;
  overscroll-behavior: auto;
  scrollbar-width: thin;
  scroll-behavior: auto;
}

[data-scroll-area-viewport][data-flow-axis="horizontal"] {
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
}

[data-scroll-area-viewport][data-flow-axis="vertical"] {
  height: var(--scroll-content-height, 0px);
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.project-section-layer--scroll[data-scroll-height-mode="fixed"] > .project-section__canvas {
  /* Preserve the authored total area height, including its existing inner padding. */
  height: max(0px, calc(var(--scroll-area-height, 480px) - var(--section-padding-top, 0px) - var(--section-padding-bottom, 0px)));
}

.project-section-layer--scroll[data-scroll-height-mode="fixed"] > [data-scroll-area-viewport][data-flow-axis="horizontal"] {
  overflow-y: auto;
}

.project-section-layer--scroll[data-hide-scrollbar="true"] > [data-scroll-area-viewport] {
  scrollbar-width: none;
}

.project-section-layer--scroll[data-hide-scrollbar="true"] > [data-scroll-area-viewport]::-webkit-scrollbar {
  display: none;
}

[data-scroll-area-viewport] > .project-block {
  position: relative;
  flex: 0 0 auto;
  max-width: none;
  padding: var(--block-padding, 0px);
}

[data-scroll-area-viewport][data-flow-axis="horizontal"] > .project-block {
  width: calc(var(--scroll-item-width, 320px) * var(--block-width-ratio, 1));
}

[data-scroll-area-viewport][data-flow-axis="vertical"] > .project-block {
  width: var(--block-width-percent, 100%);
  margin-inline: 0;
}

[data-scroll-area-viewport][data-flow-axis="horizontal"] > .project-block--fit-content {
  width: max-content;
  max-width: calc(var(--scroll-item-width, 320px) * var(--block-width-ratio, 1));
}

[data-scroll-area-viewport][data-flow-axis="vertical"] > .project-block--fit-content {
  width: max-content;
  max-width: var(--block-width-percent, 100%);
}

[data-scroll-area-viewport][data-flow-axis="vertical"] > .project-block--align-center { align-self: safe center; }
[data-scroll-area-viewport][data-flow-axis="vertical"] > .project-block--align-right { align-self: safe flex-end; }
[data-scroll-area-viewport][data-flow-axis="horizontal"] > .project-block--align-center { align-self: safe center; }
[data-scroll-area-viewport][data-flow-axis="horizontal"] > .project-block--align-right { align-self: safe flex-end; }

[data-scroll-area-viewport]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* Fixed and contained outside authored content: controls cannot add page/area overflow. */
.project-spacing-overlay {
  position: fixed;
  z-index: 10022;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  contain: strict;
  pointer-events: none;
}

.project-spacing-overlay[hidden] {
  display: none;
}

.project-spacing-overlay__clip {
  position: absolute;
  overflow: hidden;
  overflow: clip;
  contain: strict;
  pointer-events: none;
}

.project-spacing-handle {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 1px 2px;
  overflow: hidden;
  border: 1px dashed #0a68ff;
  border-radius: 3px;
  background: #e8f1ffdc;
  color: #0754ce;
  font: 500 11px/1.2 var(--font-family-site, sans-serif);
  white-space: nowrap;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
  cursor: ns-resize;
}

.project-spacing-handle[data-flow-axis="horizontal"] {
  writing-mode: vertical-rl;
  cursor: ew-resize;
}

.project-spacing-handle:is(:focus-visible, .is-dragging) {
  outline: 2px solid #0a68ff;
  outline-offset: 1px;
  background: #d1e3ff;
}
