.site-header {
  position: fixed;
  top: 28px;
  right: 32px;
  left: 32px;
  z-index: 100;
  display: flex;
  width: auto;
  align-items: flex-start;
  justify-content: space-between;
  color: #0d0d0d;
  font-family: var(--font-body, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: -0.15px;
  pointer-events: none;
}

.site-user-cursor {
  --site-cursor-fill: rgba(13, 13, 13, 0.92);
  --site-cursor-ink: #fff;
  --site-cursor-edge: rgba(255, 255, 255, 0.3);
  --site-cursor-shadow: rgba(0, 0, 0, 0.18);
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.site-user-cursor.is-visible {
  opacity: 1;
}

.site-user-cursor__arrow,
.site-user-cursor__label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.site-user-cursor__arrow {
  z-index: 1;
  filter: drop-shadow(0 2px 5px var(--site-cursor-shadow));
  transform-origin: 0 0;
}

.site-user-cursor__arrow svg {
  display: block;
  overflow: visible;
}

.site-user-cursor__arrow path {
  fill: var(--site-cursor-fill);
  stroke: var(--site-cursor-edge);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1px;
}

.site-user-cursor__label {
  background: var(--site-cursor-fill);
  border-radius: 999px;
  color: var(--site-cursor-ink);
  box-shadow:
    0 7px 20px var(--site-cursor-shadow),
    inset 0 0 0 1px var(--site-cursor-edge);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.1px;
  transform-origin: 0 50%;
  white-space: nowrap;
}

html[data-theme="dark"] .site-user-cursor {
  --site-cursor-fill: rgba(250, 250, 250, 0.94);
  --site-cursor-ink: #0d0d0d;
  --site-cursor-edge: rgba(13, 13, 13, 0.2);
  --site-cursor-shadow: rgba(0, 0, 0, 0.3);
}

html.has-user-cursor,
html.has-user-cursor * {
  cursor: none !important;
}

html.bullet-loading .site-user-cursor,
html.bullet-transitioning .site-user-cursor {
  opacity: 0;
}

@media (pointer: coarse), print {
  .site-user-cursor {
    display: none;
  }
}

.site-header .brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.site-header .brand:hover {
  background: transparent;
  box-shadow: none;
  transform: scale(1.04);
}

.site-header .brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: filter 0.25s ease;
}

.header-menu {
  --menu-button-width: 120px;
  --menu-button-height: 42px;
  position: relative;
  width: min(390px, calc(100vw - 64px));
  min-height: 42px;
  pointer-events: none;
}

.menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  min-width: var(--menu-button-width);
  height: var(--menu-button-height);
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #0d0d0d;
  border-radius: 999px;
  padding: 10px 26px;
  background: #0d0d0d;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  font: 600 14px/1 var(--font-body, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  isolation: isolate;
  overflow: hidden;
  pointer-events: auto;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.16) 48%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: #242424;
  background: #242424;
  box-shadow: none;
}

.menu-toggle:hover::before {
  opacity: 1;
  transform: translateX(3px);
}

.header-menu a:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid #ff5a12;
  outline-offset: 4px;
}

.menu-toggle:focus-visible {
  outline: 2px solid #ff5a12;
  outline-offset: 4px;
}

.menu-toggle__icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-menu.is-open .menu-toggle,
.header-menu.is-closing .menu-toggle {
  border-color: #fff;
  background: #fff;
  color: #0d0d0d;
  box-shadow: none;
}

.header-menu.is-open .menu-toggle__icon {
  transform: rotate(0deg);
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(390px, calc(100vw - 64px));
  min-height: 380px;
  flex-direction: column;
  border-radius: 30px;
  padding: 88px 30px 28px;
  background: #050505;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(
    0 0
    calc(100% - var(--menu-button-height))
    calc(100% - var(--menu-button-width))
    round 999px
  );
  transition:
    clip-path 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.48s;
}

.header-menu.is-open .menu-panel {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 round 30px);
  transition-delay: 0s;
}

.menu-links {
  display: grid;
  gap: 2px;
}

.menu-links a {
  display: block;
  color: #fff;
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  opacity: 0;
  text-align: right;
  text-transform: uppercase;
  transform: translateY(-14px);
  transition:
    color 0.18s ease,
    opacity 0.24s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-menu.is-open .menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.header-menu.is-open .menu-links a:nth-child(1) {
  transition-delay: 0.12s;
}

.header-menu.is-open .menu-links a:nth-child(2) {
  transition-delay: 0.17s;
}

.menu-links a:hover {
  color: #fff;
  transform: translateX(-4px);
}

.menu-links:has(a:hover, a:focus-visible) a:not(:hover):not(:focus-visible) {
  opacity: 0.28;
}

.menu-social {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 9px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.56);
  font: 500 0.78rem/1 var(--font-body, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(8px);
  transition:
    opacity 0.24s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-menu.is-open .menu-social {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.21s;
}

.menu-social a {
  color: inherit;
  transition: color 0.18s ease;
}

.menu-social a:hover {
  color: #fff;
}

.menu-utility-divider {
  color: rgba(255, 255, 255, 0.3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 9px;
  margin-top: 10px;
  border: 0;
  padding: 12px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  font: 500 0.78rem/1 var(--font-body, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(8px);
  text-transform: uppercase;
  transition:
    opacity 0.24s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-menu.is-open .theme-toggle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.21s;
}

.theme-toggle [aria-current="true"] {
  color: #fff;
}

.theme-toggle__divider {
  color: rgba(255, 255, 255, 0.3);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.site-header.has-open-menu .menu-backdrop {
  opacity: 1;
  visibility: visible;
}

html[data-theme="dark"] {
  --black: #f5f5f2;
  --paper: #101010;
  --paper-deep: #181818;
  --white: #161616;
  --muted: rgba(245, 245, 242, 0.66);
  --muted-strong: rgba(245, 245, 242, 0.78);
  --line-dark: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-footer {
  background-color: var(--paper);
  color: var(--black);
}

html[data-theme="dark"] .site-header .brand-logo,
html[data-theme="dark"] .footer-logo img,
html[data-theme="dark"] .footer-brand img {
  filter: invert(1);
}

html[data-theme="dark"] .menu-toggle {
  border-color: #f5f5f2;
  background: #f5f5f2;
  color: #101010;
  box-shadow: none;
}

html[data-theme="dark"] .menu-toggle:hover {
  border-color: #fff;
  background: #fff;
}

html[data-theme="dark"] main::before {
  opacity: 0.24;
}

html[data-theme="dark"] .scroll-bottom-blur {
  opacity: 0 !important;
  visibility: hidden !important;
}

body,
.site-footer {
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 700px) {
  .site-header {
    top: 16px;
    right: 16px;
    left: 16px;
  }

  .site-header .brand {
    width: 46px;
    min-height: 46px;
  }

  .site-header .brand-logo {
    width: 40px;
    height: 40px;
  }

  .header-menu {
    --menu-button-width: 106px;
    --menu-button-height: 42px;
    position: fixed;
    top: 16px;
    right: 16px;
    width: calc(100vw - 32px);
    min-height: 42px;
  }

  .menu-toggle {
    width: var(--menu-button-width);
    min-width: var(--menu-button-width);
    height: var(--menu-button-height);
  }

  .menu-toggle {
    padding: 10px 26px;
    font-size: 14px;
  }

  .menu-panel {
    width: calc(100vw - 32px);
  }

  .menu-panel {
    min-height: 330px;
    border-radius: 24px;
    padding: 80px 24px 24px;
  }

  .header-menu.is-open .menu-panel {
    clip-path: inset(0 round 24px);
  }

  .menu-links a {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel,
  .menu-toggle,
  .menu-toggle__icon,
  .menu-links a,
  .theme-toggle {
    transition-duration: 0.01ms;
  }
}

/* Complete dark-mode contrast pass shared by the home and work pages. */
html[data-theme="dark"] .menu-panel {
  background: #f5f5f2;
  color: #101010;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .menu-links a {
  color: #101010;
}

html[data-theme="dark"] .menu-links a:hover {
  color: #101010;
}

html[data-theme="dark"] .menu-social,
html[data-theme="dark"] .theme-toggle {
  color: rgba(16, 16, 16, 0.56);
}

html[data-theme="dark"] .menu-social a:hover,
html[data-theme="dark"] .theme-toggle [aria-current="true"] {
  color: #101010;
}

html[data-theme="dark"] .menu-utility-divider,
html[data-theme="dark"] .theme-toggle__divider {
  color: rgba(16, 16, 16, 0.28);
}

html[data-theme="dark"] .header-menu.is-open .menu-toggle,
html[data-theme="dark"] .header-menu.is-closing .menu-toggle {
  border-color: #101010;
  background: #101010;
  color: #f5f5f2;
  box-shadow: none;
}

html[data-theme="dark"] .hero-tag,
html[data-theme="dark"] .hero-desc,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .service p,
html[data-theme="dark"] .process-step p,
html[data-theme="dark"] .pricing-label,
html[data-theme="dark"] .empty-state {
  color: rgba(245, 245, 242, 0.68);
}

html[data-theme="dark"] #canvas-container canvas {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.18;
}

html[data-theme="dark"] .hero-content .btn-primary,
html[data-theme="dark"] .cta-panel .btn-primary {
  border-color: #fff;
  background: #fff;
  color: #101010;
}

html[data-theme="dark"] .hero-content .btn-primary:hover,
html[data-theme="dark"] .cta-panel .btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

html[data-theme="dark"] .hero-content .btn-secondary,
html[data-theme="dark"] .btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14), 0 1px 3px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-content .btn-secondary,
html[data-theme="dark"] .cta-panel .btn-secondary {
  box-shadow: var(--card-shadow);
}

html[data-theme="dark"] .hero-content .btn-secondary:hover,
html[data-theme="dark"] .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

html[data-theme="dark"] .tools-marquee {
  border-color: rgba(255, 255, 255, 0.09);
  background: #181818;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .tools-marquee::before {
  background: linear-gradient(90deg, #181818, rgba(24, 24, 24, 0));
}

html[data-theme="dark"] .tools-marquee::after {
  background: linear-gradient(270deg, #181818, rgba(24, 24, 24, 0));
}

html[data-theme="dark"] .tool-chip {
  color: rgba(245, 245, 242, 0.68);
}

html[data-theme="dark"] .tool-icon img {
  opacity: 0.78;
  filter: grayscale(1) saturate(0) invert(1);
}

html[data-theme="dark"] .filter-bar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181818;
}

html[data-theme="dark"] .filter-indicator {
  background: rgba(255, 255, 255, 0.13);
}

html[data-theme="dark"] .filter-btn {
  color: rgba(245, 245, 242, 0.58);
}

html[data-theme="dark"] .filter-btn.is-active {
  color: #fff;
}

html[data-theme="dark"] .work-visual {
  border: 0;
  background: #181818;
  box-shadow: none;
}

html[data-theme="dark"] .site-cta,
html[data-theme="dark"] .site-cta:hover,
html[data-theme="dark"] .site-cta:focus-visible {
  background: #f5f5f2;
  color: #101010;
  -webkit-text-fill-color: #101010;
}

html[data-theme="dark"] .site-cta:hover,
html[data-theme="dark"] .site-cta:focus-visible {
  background: #fff;
}

html[data-theme="dark"] .site-cta__label,
html[data-theme="dark"] .site-cta__arrow {
  color: #101010;
  -webkit-text-fill-color: #101010;
}

html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .back-to-top:hover,
html[data-theme="dark"] .back-to-top:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(24, 24, 24, 0.9);
  color: #fff;
}

html[data-theme="dark"] .cta-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: #181818;
  color: #f5f5f2;
}

html[data-theme="dark"] .cta-panel h2 {
  color: #f5f5f2;
}

html[data-theme="dark"] .cta-panel p {
  color: rgba(245, 245, 242, 0.68);
}

html[data-theme="dark"] .footer-phrase {
  color: rgba(245, 245, 242, 0.1);
}

html[data-theme="dark"] .copyright,
html[data-theme="dark"] .social,
html[data-theme="dark"] .social a {
  color: rgba(245, 245, 242, 0.62);
}

html[data-theme="dark"] .social a:hover {
  color: #fff;
}

/* Three-point navigation: brand left, work centered, theme right. */
.site-header {
  top: clamp(26px, 3.4vw, 44px);
  right: auto;
  left: 50%;
  width: min(calc(100% - 64px), 1080px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  color: #fff;
  transform: translateX(-50%);
}

.site-header .brand,
.site-header .header-work,
.site-header > .theme-toggle {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.42);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  pointer-events: auto;
}

.site-header .brand {
  width: 50px;
  min-height: 50px;
  justify-self: start;
  border-radius: 50%;
}

.site-header .brand-logo {
  width: 31px;
  height: 31px;
  filter: invert(1);
}

.site-header .brand:hover,
.site-header .header-work:hover,
.site-header > .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(10, 10, 10, 0.58);
  color: #fff;
}

.site-header .header-work {
  display: inline-flex;
  min-width: 84px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header .header-work:hover {
  transform: translateY(-1px);
}

.site-header > .theme-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-width: 122px;
  min-height: 38px;
  align-items: center;
  align-self: auto;
  justify-content: center;
  justify-self: end;
  gap: 7px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 17px;
  color: rgba(255, 255, 255, 0.48);
  font: 600 11px/1 var(--font-body, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: 0.06em;
  opacity: 1;
  transform: none;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header > .theme-toggle span {
  pointer-events: none;
}

.site-header > .theme-toggle [aria-current="true"] {
  color: #fff;
}

.site-header > .theme-toggle .theme-toggle__divider {
  color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .site-header .brand-logo {
  filter: invert(1);
}

html[data-theme="dark"] .site-header > .theme-toggle {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .site-header > .theme-toggle [aria-current="true"] {
  color: #fff;
}

html[data-theme="dark"] .hero-content .hero-tag {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .hero-content .hero-desc {
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .hero-content .btn-primary,
html[data-theme="dark"] .hero-content .btn-primary:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
}

html[data-theme="dark"] .hero-content .btn-primary:hover {
  background: rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] .hero-content .btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 10, 0.18);
  color: #fff;
}

html[data-theme="dark"] .hero-content .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(10, 10, 10, 0.32);
  color: #fff;
}

@media (max-width: 700px) {
  .site-header {
    top: 26px;
    right: auto;
    left: 50%;
    width: calc(100% - 56px);
  }

  .site-header .brand {
    width: 42px;
    min-height: 42px;
  }

  .site-header .brand-logo {
    width: 27px;
    height: 27px;
  }

  .site-header .header-work {
    min-width: 72px;
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    font-size: 12px;
  }

  .site-header > .theme-toggle {
    min-width: auto;
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
    font-size: 10px;
  }
}

@media (max-width: 440px) {
  .site-header {
    right: auto;
    left: 50%;
    width: calc(100% - 44px);
  }

  .site-header .header-work {
    min-width: 64px;
    padding-inline: 13px;
  }

  .site-header > .theme-toggle {
    gap: 5px;
    padding-inline: 10px;
    letter-spacing: 0.02em;
  }
}

/* Editorial footer inspired by the spacious Your Creative close. */
.site-footer {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: var(--paper);
  color: var(--black);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-invite {
  min-height: clamp(560px, 68svh, 760px);
  display: flex;
  align-items: flex-end;
  padding: clamp(120px, 18vw, 280px) 0 clamp(64px, 7vw, 104px);
}

.footer-invite__inner {
  width: min(calc(100% - 64px), 1080px);
  margin: 0 auto;
}

.footer-invite h2 {
  max-width: 9.5ch;
  margin: 0;
  color: var(--black);
  font-family: var(--font-display, "Instrument Serif", Georgia, serif);
  font-size: clamp(4.25rem, 7.4vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.footer-invite h2 span {
  display: block;
}

.footer-invite__inner > p {
  max-width: 520px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  color: color-mix(in srgb, var(--black) 58%, transparent);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.5;
}

.footer-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.footer-reveal-track {
  width: 100%;
  height: clamp(260px, 42svh, 440px);
  margin-top: clamp(90px, 12svh, 160px);
  background: var(--paper);
}

.footer-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--black) 28%, transparent);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-action span {
  font-size: 1rem;
  line-height: 1;
}

.footer-action:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.site-footer .footer-action--primary {
  border-color: var(--black);
  background: var(--black);
  color: var(--paper);
}

.site-footer .footer-action--primary:hover {
  background: transparent;
  color: var(--black);
}

.footer-action:focus-visible,
.footer-panel a:focus-visible {
  outline: 2px solid #ff5a12;
  outline-offset: 4px;
}

.footer-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 90;
  width: auto;
  height: min(76svh, 680px);
  max-height: calc(100svh - 24px);
  min-height: 520px;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(24px, 2vw, 32px);
  padding: clamp(44px, 5vw, 82px) clamp(44px, 5vw, 82px) clamp(18px, 2vw, 26px);
  overflow: hidden;
  background: rgba(13, 13, 13, 0.78);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  backdrop-filter: blur(32px) saturate(1.2);
  color: #f7f7f3;
  pointer-events: none;
  transform: translate3d(0, calc(100% + 24px), 0);
  will-change: transform;
}

.footer-panel.footer-modal-ready {
  pointer-events: none;
}

.footer-panel.footer-modal-ready.is-visible {
  pointer-events: auto;
}

.footer-panel__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: clamp(48px, 7vw, 124px);
  align-items: start;
}

.footer-about {
  max-width: 580px;
}

.footer-mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  margin-bottom: clamp(48px, 6vw, 86px);
}

.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.footer-about p {
  max-width: 34rem;
  margin: 0;
  color: rgba(247, 247, 243, 0.92);
  font-family: var(--font-display, "Instrument Serif", Georgia, serif);
  font-size: clamp(1.55rem, 2.2vw, 2.55rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.footer-about p + p {
  max-width: 31rem;
  margin-top: 22px;
  color: rgba(247, 247, 243, 0.52);
  font-family: var(--font-body, "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.footer-column {
  display: grid;
  gap: clamp(48px, 6vw, 82px);
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-label {
  margin: 0 0 14px;
  color: rgba(247, 247, 243, 0.46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-group a,
.footer-group > p:not(.footer-label) {
  margin: 0;
  color: rgba(247, 247, 243, 0.9);
  font-size: clamp(0.86rem, 0.95vw, 0.98rem);
  line-height: 1.55;
}

.footer-group a {
  width: fit-content;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-group a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-panel__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 20px;
  color: rgba(247, 247, 243, 0.46);
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer-panel__meta p {
  margin: 0;
}

.footer-panel__meta p:nth-child(2) {
  text-align: center;
}

.footer-panel__meta a {
  justify-self: end;
  transition: color 0.18s ease;
}

.footer-panel__meta a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .footer-invite {
    min-height: 560px;
  }

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

  .footer-about {
    grid-column: 1 / -1;
    max-width: 640px;
  }

  .footer-mark {
    margin-bottom: 42px;
  }
}

@media (max-width: 600px) {
  .footer-invite {
    min-height: 520px;
    padding: 120px 0 58px;
  }

  .footer-invite__inner {
    width: calc(100% - 40px);
  }

  .footer-invite h2 {
    max-width: 8.5ch;
    font-size: clamp(3.7rem, 17vw, 5.5rem);
  }

  .footer-invite__inner > p {
    max-width: 31rem;
    font-size: 0.92rem;
  }

  .footer-action {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 0.78rem;
  }

  .footer-reveal-track {
    height: 34svh;
    min-height: 220px;
    margin-top: clamp(140px, 24svh, 220px);
  }

  .footer-panel {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    margin: 0;
    border-radius: 24px;
    padding: clamp(24px, 4.5svh, 38px) 24px clamp(18px, 3.5svh, 26px);
  }

  .footer-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4.5svh, 36px) 20px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-mark {
    width: 44px;
    height: 44px;
    margin-bottom: clamp(16px, 3.5svh, 28px);
  }

  .footer-about p {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .footer-about p + p {
    margin-top: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .footer-column {
    gap: 24px;
  }

  .footer-panel__meta {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: clamp(28px, 5svh, 44px);
    padding-top: 14px;
  }

  .footer-panel__meta p:nth-child(2) {
    text-align: left;
  }

  .footer-panel__meta a {
    justify-self: start;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-panel.footer-modal-ready,
  .footer-panel.footer-modal-ready.is-visible {
    will-change: auto;
  }
}
