:root {
  --text1: #000;
  --header-surface: rgba(254, 254, 254, 0.5);
  --header-surface-dark: color-mix(in srgb, var(--dark, #000) 50%, transparent);
  --header-border: rgba(0, 0, 0, 0.05);
  --header-line-subtle: rgba(0, 0, 0, 0.035);
  --header-junction: rgba(42, 52, 76, 0.14);
  --header-control-hover: rgba(0, 0, 0, 0.04);
  --header-focus-ring: rgba(0, 0, 0, 0.35);
  --header-logo-filter: none;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --text1: #f6f6f6;
  --header-surface: var(--header-surface-dark);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-line-subtle: rgba(255, 255, 255, 0.06);
  --header-junction: rgba(255, 255, 255, 0.14);
  --header-control-hover: rgba(255, 255, 255, 0.08);
  --header-focus-ring: rgba(255, 255, 255, 0.48);
  --header-logo-filter: invert(1);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text1: #f6f6f6;
    --header-surface: var(--header-surface-dark);
    --header-border: rgba(255, 255, 255, 0.08);
    --header-line-subtle: rgba(255, 255, 255, 0.06);
    --header-junction: rgba(255, 255, 255, 0.14);
    --header-control-hover: rgba(255, 255, 255, 0.08);
    --header-focus-ring: rgba(255, 255, 255, 0.48);
    --header-logo-filter: invert(1);
    color-scheme: dark;
  }
}

html,
body {
  --mx-frame-content-width: min(calc(100vw - 48px), 1440px);
  --mx-frame-header-height: 54px;
  --mx-nav-button-height: 30px;
  --mx-frame-side-gutter: max(24px, calc((100vw - var(--mx-frame-content-width)) / 2));
  --mx-frame-content-inset: 24px;
  --mx-frame-header-left-inset: 12px;
  --mx-frame-header-right-inset: 16px;
  --mx-frame-brand-margin: calc(var(--mx-frame-side-gutter) + var(--mx-frame-header-left-inset));
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #fefefe;
  color: #000;
  font-family: "Barlow", Arial, sans-serif;
}

html {
  height: 100%;
  overflow: clip;
}

body {
  height: 100%;
  min-height: 0;
  overflow: clip;
}

.mx-assembled-scroll-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: clip;
  overscroll-behavior-y: none;
  touch-action: none;
}

.mx-assembled-scroll-content {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: transform;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none !important;
  background: transparent !important;
}

html::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-track {
  background: transparent !important;
}

.mx-scroll-progress {
  position: fixed;
  top: 50%;
  right: 48px;
  z-index: 40;
  width: 6px;
  height: min(132px, 20vh);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  cursor: grab;
  opacity: 0;
  visibility: hidden;
  touch-action: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mx-scroll-progress.is-visible {
  opacity: 1;
  visibility: visible;
}

.mx-scroll-progress:active {
  cursor: grabbing;
}

.mx-scroll-progress__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  transform: translateY(var(--mx-scroll-thumb-y, 0px));
  will-change: transform;
}

.mx-assembled-bottom-wash {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: var(--mx-content-gradient-height, 846px);
  min-height: 0;
  background: linear-gradient(
    to bottom,
    rgba(244, 235, 216, 0) 0%,
    rgba(242, 211, 220, 0.1) 31.25%,
    rgba(235, 188, 221, 0.2) 49.519%,
    rgba(205, 187, 226, 0.3) 64.904%,
    rgba(140, 192, 240, 0.4) 81.731%,
    rgba(121, 176, 255, 0.5) 100%
  );
  opacity: var(--mx-content-gradient-opacity, 1);
  pointer-events: none;
}

.mx-assembled-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--mx-frame-header-height);
  border-bottom: 0;
  background: transparent;
  color: var(--text1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mx-assembled-header.is-content-nav {
  border-bottom: 1px solid var(--header-border);
  background: var(--header-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mx-assembled-header.is-content-nav .mx-assembled-header-intersections {
  display: none;
}

.mx-assembled-header-intersections {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mx-assembled-header-intersections i {
  position: absolute;
  bottom: -0.5px;
  height: 1px;
  background: var(--header-line-subtle);
}

.mx-assembled-header-intersections i:first-child {
  left: 0;
  width: calc(var(--mx-frame-side-gutter) - 13px);
}

.mx-assembled-header-intersections i:nth-child(2) {
  right: calc(50% + 13px);
  left: calc(var(--mx-frame-side-gutter) + 13px);
}

.mx-assembled-header-intersections i:nth-child(3) {
  right: calc(var(--mx-frame-side-gutter) + 13px);
  left: calc(50% + 13px);
}

.mx-assembled-header-intersections i:nth-child(4) {
  right: 0;
  width: calc(var(--mx-frame-side-gutter) - 13px);
}

.mx-assembled-header-intersections span {
  position: absolute;
  bottom: -50px;
  width: 26px;
  height: 100px;
  background: transparent;
}

.mx-assembled-header-intersections span::before,
.mx-assembled-header-intersections span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--header-junction);
  content: "";
  transform: translate(-50%, -50%);
}

.mx-assembled-header-intersections span::before {
  width: 14px;
  height: 1px;
}

.mx-assembled-header-intersections span::after {
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--header-line-subtle) 0,
    var(--header-line-subtle) 37px,
    transparent 37px,
    transparent 43px,
    var(--header-junction) 43px,
    var(--header-junction) 57px,
    transparent 57px,
    transparent 63px,
    var(--header-line-subtle) 63px,
    var(--header-line-subtle) 100%
  );
  transform: translateX(-50%);
}

.mx-assembled-header-intersections span:nth-of-type(1) {
  left: calc(var(--mx-frame-side-gutter) - 13px);
}

.mx-assembled-header-intersections span:nth-of-type(2) {
  left: calc(50% - 13px);
}

.mx-assembled-header-intersections span:nth-of-type(2)::after {
  top: 50%;
  height: 7px;
  background: var(--header-junction);
  transform: translate(-50%, 0);
}

.mx-assembled-header-intersections span:nth-of-type(3) {
  left: calc(100% - var(--mx-frame-side-gutter) - 13px);
}

.mx-assembled-brand {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 8px;
  height: 54px;
  box-sizing: border-box;
  margin-left: var(--mx-frame-side-gutter);
  padding: 11px 12px 13px;
}

.mx-assembled-brand-mark {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
  filter: var(--header-logo-filter);
}

.mx-assembled-brand-name {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
}

.mx-assembled-nav {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: flex-end;
  margin-right: var(--mx-frame-side-gutter);
  padding: 0 12px;
}

.mx-assembled-nav-button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: var(--mx-nav-button-height);
  padding: 0 20px;
  border-radius: 999px;
  color: inherit;
  font-size: 16px;
  font-weight: 450;
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
}

.mx-assembled-stack {
  position: relative;
  z-index: 2;
  width: 100%;
}

.mx-assembled-transition-guides {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: var(--mx-transition-guide-height, 0px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mx-assembled-transition-guides::before,
.mx-assembled-transition-guides::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.035);
  content: "";
}

.mx-assembled-transition-guides::before {
  left: var(--mx-frame-side-gutter);
  transform: translateX(-50%);
}

.mx-assembled-transition-guides::after {
  right: var(--mx-frame-side-gutter);
  transform: translateX(50%);
}

.mx-assembled-model-layer {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
  background: transparent;
  pointer-events: auto;
  will-change: opacity;
}

.mx-assembled-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 720px;
}

.mx-assembled-panel--home {
  height: 300vh;
}

.mx-assembled-home-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  will-change: opacity;
}

.mx-assembled-home-viewport .mx-assembled-frame {
  width: 100%;
  height: 100%;
}

.mx-assembled-panel--content {
  position: relative;
  margin-top: -80vh;
  height: auto;
}

.mx-assembled-panel--signature {
  height: max(900px, 100vh);
  min-height: 900px;
}

.mx-assembled-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.mx-assembled-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 72px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateX(-50%);
  pointer-events: auto;
}

.mx-assembled-footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 14px 24px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.mx-assembled-footer-meta.is-on-dark {
  color: #fff;
}

.mx-assembled-footer-meta:first-child {
  position: absolute;
  left: var(--mx-frame-side-gutter);
  top: 0;
}

.mx-assembled-footer-meta:last-child {
  position: absolute;
  top: 0;
  right: var(--mx-frame-side-gutter);
  justify-content: flex-end;
}

.mx-assembled-icon-frame {
  position: relative;
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.mx-assembled-footer .mx-animated-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  color: #000;
  filter: none;
}

.mx-assembled-footer-meta.is-on-dark .mx-animated-icon {
  color: #fff;
  filter: invert(1);
}

@media (max-width: 900px) {
  .mx-scroll-progress {
    right: 24px;
    height: min(112px, 18vh);
  }

  html,
  body {
    --mx-frame-content-width: calc(100vw - 48px);
    --mx-frame-side-gutter: 24px;
    --mx-frame-brand-margin: 8px;
  }

  .mx-assembled-panel {
    min-height: 620px;
  }

  .mx-assembled-brand {
    gap: 6px;
    margin-left: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .mx-assembled-brand-mark {
    width: auto;
    height: 28px;
  }

  .mx-assembled-brand-name {
    font-size: 17px;
    line-height: 24px;
  }

  .mx-assembled-nav {
    margin-right: 0;
  }

  .mx-assembled-nav-button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .mx-assembled-footer {
    left: 0;
    width: 100%;
    padding: 0 20px;
    transform: none;
  }

  .mx-assembled-footer-meta:first-child,
  .mx-assembled-footer-meta:last-child {
    width: auto;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  html,
  body {
    --mx-frame-content-width: calc(100vw - 40px);
    --mx-frame-side-gutter: 20px;
  }
}

@media (max-width: 360px) {
  .mx-assembled-brand-name {
    display: none;
  }

  .mx-assembled-nav-button {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Keep the portfolio surface free of browser text and image selection. */
html, body, body * {
  -webkit-user-select: none;
  user-select: none;
}

img, a {
  -webkit-user-drag: none;
}

/* Preserve the published brand link and keyboard focus treatment. */
.mx-assembled-brand { color: inherit; text-decoration: none; }
.mx-assembled-brand:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
