@font-face {
  font-family: "Keystone Asap";
  src: url("/assets/fonts/asap-condensed-bold-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0a0a09;
  --paper: #efeee9;
  --paper-deep: #dedcd4;
  --white: #f8f8f5;
  --muted: #777770;
  --line-dark: rgba(10, 10, 9, 0.18);
  --line-light: rgba(255, 255, 255, 0.22);
  --shell: min(100% - 48px, 1376px);
  --header-height: 96px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Keystone Asap", "Arial Narrow", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--ink);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

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

button, input, textarea, select { font: inherit; }

button { color: inherit; }

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

p, h1, h2, h3, figure { margin: 0; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

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

/* Opening */
.opening-veil {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--ink);
  color: var(--white);
  transition: opacity .6s var(--ease-out), visibility .6s;
}

.opening-veil img { width: 150px; height: auto; }

.is-ready .opening-veil {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--white);
  transition: color .35s ease, transform .45s var(--ease-out);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header.is-on-light { color: var(--ink); }

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark {
  position: relative;
  display: block;
  width: 102px;
  height: 64px;
}

.header-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity .35s ease;
}

.header-logo-black { opacity: 0; }
.site-header.is-on-light .header-logo-white { opacity: 0; }
.site-header.is-on-light .header-logo-black { opacity: 1; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: .82rem;
}

.site-nav a,
.footer-nav a {
  position: relative;
}

.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  justify-self: end;
  display: none;
  min-width: 64px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile menu */
.menu-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.menu-dialog::backdrop {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
}

.menu-panel {
  width: min(100%, 520px);
  height: 100%;
  margin-left: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  transform: translateX(100%);
  transition: transform .6s var(--ease-out);
}

.menu-dialog[open] .menu-panel { transform: translateX(0); }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line-light);
}

.menu-top img { width: 98px; height: auto; }

.menu-top button {
  min-width: 64px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-navigation {
  display: grid;
  margin-top: 11vh;
  border-top: 1px solid var(--line-light);
}

.menu-navigation a {
  min-height: 74px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  font-size: clamp(1.55rem, 7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.045em;
}

.menu-panel > p {
  max-width: 28ch;
  margin-top: auto;
  color: rgba(255, 255, 255, .58);
  font-size: .92rem;
}

/* Shared type and links */
.section-kicker {
  font-size: .68rem;
  line-height: 1.2;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.text-link {
  position: relative;
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.text-link::before,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
}

.text-link::before { background: currentColor; opacity: .32; }

.text-link::after {
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: -3%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translate3d(0, var(--hero-media-y, 0px), 0) scale(var(--hero-media-scale, 1.035));
  transform-origin: center;
  will-change: transform;
}

.hero-media-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-media-panel + .hero-media-panel { border-left: 1px solid rgba(255,255,255,.16); }

.hero-media-panel img,
.hero-media-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-media-turbo img {
  object-position: 52% 54%;
  transform: translate3d(0, var(--hero-turbo-y, 0px), 0) scale(1.025);
}

.hero-media-jacros video {
  object-position: 58% center;
  transform: translate3d(0, var(--hero-jacros-y, 0px), 0) scale(1.025);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,.58) 0%, rgba(5,5,5,.24) 34%, rgba(5,5,5,.64) 100%),
    linear-gradient(90deg, rgba(5,5,5,.16), rgba(5,5,5,.34));
}

.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #050505;
  opacity: var(--hero-darken, 0);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  text-align: center;
  opacity: var(--hero-content-opacity, 1);
  transform: translate3d(0, var(--hero-content-y, 0px), 0);
  will-change: opacity, transform;
}

.hero h1 {
  max-width: 10ch;
  font-family: var(--font-brand);
  font-size: clamp(5.4rem, 9.6vw, 10.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 620px;
  margin-top: 34px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.98rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}

.hero-link { margin-top: 32px; }

.js:not(.is-ready) [data-intro] { opacity: 0; transform: translateY(24px); }

.is-ready [data-intro] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

.is-ready [data-intro]:nth-child(2) { transition-delay: .1s; }
.is-ready [data-intro]:nth-child(3) { transition-delay: .2s; }

/* Studio */
.studio-section {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 7vw, 112px) 0 clamp(96px, 10vw, 156px);
}

.studio-section::before,
.venture::before,
.destination-close::before,
.site-footer::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: .2;
  transform: scaleX(var(--section-line, 1));
  transform-origin: left;
  pointer-events: none;
}

.studio-section,
.venture-worlds,
.venture,
.destination-close {
  scroll-margin-top: var(--header-height);
}

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .55fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
}

.studio-intro h2 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.25vw, 5.2rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 620;
}

.studio-copy {
  max-width: 36ch;
  color: #5d5d58;
  font-size: 1.02rem;
  line-height: 1.65;
}

.studio-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(72px, 8vw, 120px);
}

.studio-diptych figure { min-width: 0; }

.studio-image {
  height: clamp(420px, 48vw, 680px);
  overflow: hidden;
  background: #d8d7d1;
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--media-zoom, 1));
  translate: 0 var(--media-shift, 0px);
  transition: transform .9s var(--ease-out);
  will-change: transform, translate;
}

.studio-diptych figure:first-child .studio-image img { object-position: 50% 55%; }
.studio-diptych figure:last-child .studio-image img { object-position: 54% center; }

.studio-diptych figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  font-size: .82rem;
}

.studio-diptych figcaption span { color: var(--muted); text-align: right; }

/* Ventures */
.venture {
  position: relative;
  padding: clamp(100px, 10vw, 160px) 0;
}

.venture-turbo { background: var(--ink); color: var(--white); }
.venture-jacros { background: #f7f5f0; color: var(--ink); }

.venture-inner {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: clamp(52px, 8vw, 132px);
  align-items: center;
}

.venture-jacros .venture-inner { grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); }

.venture-media {
  height: min(72vw, 760px);
  min-height: 560px;
  overflow: hidden;
  background: #191918;
}

.venture-media img,
.venture-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--media-zoom, 1));
  translate: 0 var(--media-shift, 0px);
  transition: transform .9s var(--ease-out);
  will-change: transform, translate;
}

.venture-turbo .venture-media img { object-position: 50% 56%; }
.venture-jacros .venture-media video { object-position: center; }

.venture-content { max-width: 470px; }

.venture-relationship {
  margin-top: 16px;
  color: currentColor;
  opacity: .55;
  font-size: .8rem;
}

.venture-content h3 {
  margin-top: clamp(56px, 8vw, 104px);
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 620;
  line-height: .98;
  letter-spacing: -.065em;
  padding-block: .04em .08em;
}

.venture-content > p:not(.section-kicker):not(.venture-relationship) {
  max-width: 35ch;
  margin-top: 34px;
  color: currentColor;
  opacity: .7;
  font-size: 1.06rem;
  line-height: 1.65;
}

.venture-content .text-link { margin-top: 34px; }

.jacros-heading {
  width: min(270px, 62%);
  line-height: 0 !important;
}

.jacros-heading img { width: 100%; height: auto; }

/* Destination */
.destination-close {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(100px, 10vw, 156px) 0;
  border-top: 1px solid var(--line-dark);
}

.destination-inner {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
}

.destination-intro h2 {
  max-width: 9ch;
  margin-top: 24px;
  font-size: clamp(3.2rem, 5.4vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 620;
}

.destination-links {
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.destination-links a {
  min-height: 148px;
  display: grid;
  grid-template-columns: 1.1fr .8fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding .4s var(--ease-out), background-color .3s ease, color .3s ease;
}

.destination-links a:hover,
.destination-links a:focus-visible {
  padding-inline: 22px;
  background: var(--ink);
  color: var(--white);
}

.destination-title {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 620;
  letter-spacing: -.05em;
}

.destination-meta {
  color: currentColor;
  opacity: .58;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.destination-action {
  font-size: .76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 7px;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 84px 0 28px;
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.15fr .75fr;
  gap: 48px;
  align-items: start;
}

.footer-wordmark { display: block; width: 118px; }
.footer-wordmark img { width: 100%; height: auto; }

.footer-main > p {
  color: rgba(255,255,255,.68);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.footer-nav { display: grid; justify-items: start; gap: 6px; font-size: .86rem; }

.footer-nav a,
.footer-bottom a,
.privacy-note summary {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.privacy-note {
  grid-column: 2 / -1;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}

.privacy-note summary {
  width: max-content;
  cursor: pointer;
  font-size: .82rem;
}

.privacy-note p {
  max-width: 72ch;
  margin-top: 18px;
  color: rgba(255,255,255,.58);
  font-size: .84rem;
  line-height: 1.65;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: rgba(255,255,255,.48);
  font-size: .7rem;
}

.footer-bottom span:nth-child(2) { text-align: center; }
.footer-bottom a { color: var(--white); }

/* Branded error route */
.route-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: var(--white);
}

.route-page .site-header {
  position: relative;
  color: var(--white);
}

.route-label {
  grid-column: 3;
  justify-self: end;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-main {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  align-items: center;
  padding: clamp(64px, 8vw, 128px) 0;
}

.route-card { max-width: 820px; }

.route-card h1 {
  max-width: 10ch;
  margin-top: 26px;
  font-family: var(--font-brand);
  font-size: clamp(4.2rem, 9vw, 8.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.route-card > p:not(.section-kicker) {
  max-width: 42ch;
  margin-top: 30px;
  color: rgba(255,255,255,.66);
}

.route-card .text-link { margin-top: 28px; }
.route-footer { padding-top: 32px; }

/* Customer support */
.support-page {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
}

.support-page .site-header {
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.support-page .header-logo-white { opacity: 0; }
.support-page .header-logo-black { opacity: 1; }

.support-main {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(64px, 8vw, 118px) 0 clamp(88px, 10vw, 150px);
}

.support-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .65fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-dark);
}

.support-intro h1 {
  max-width: 9ch;
  margin-top: 18px;
  font-family: var(--font-brand);
  font-size: clamp(4.2rem, 8vw, 8rem);
  font-style: italic;
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.support-intro > p {
  max-width: 42ch;
  color: rgba(17,17,15,.68);
  line-height: 1.65;
}

.support-form {
  max-width: 920px;
  margin-top: 60px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.support-field { display: grid; gap: 9px; }
.support-field-full { grid-column: 1 / -1; }
.support-field label { font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(17,17,15,.22);
  border-radius: 0;
  padding: 13px 14px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  font: inherit;
}
.support-field textarea { min-height: 180px; resize: vertical; }
.support-field input:focus-visible,
.support-field select:focus-visible,
.support-field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.support-honeypot,
.support-honeypot[hidden] { display: none !important; position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.support-submit {
  min-height: 52px;
  margin-top: 28px;
  border: 1px solid var(--ink);
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.support-submit:hover { background: transparent; color: var(--ink); }
.support-notice {
  max-width: 920px;
  margin: 0 0 30px;
  border: 1px solid rgba(17,17,15,.22);
  padding: 18px 20px;
  background: rgba(255,255,255,.65);
}
.support-small { margin-top: 24px; color: rgba(17,17,15,.6); font-size: .78rem; line-height: 1.6; }
.support-admin-list { display: grid; gap: 18px; margin-top: 40px; }
.support-admin-card { border: 1px solid rgba(17,17,15,.2); padding: 22px; background: #fff; }
.support-admin-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; }
.support-admin-card dt { color: rgba(17,17,15,.55); font-size: .76rem; text-transform: uppercase; }
.support-admin-card dd { min-width: 0; overflow-wrap: anywhere; }
.support-admin-message { margin-top: 18px; white-space: pre-wrap; line-height: 1.65; }

.support-page .wordmark { width: clamp(92px, 8vw, 126px); }
.support-page .header-inner { min-height: 82px; }
.support-page .site-footer { margin-top: 0; background: var(--ink); color: var(--white); }
.support-page .route-footer { padding: 30px 0; }
.support-page .route-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-top: 0; padding-top: 0; border-top: 0; }
.support-page .route-footer .footer-bottom span:nth-child(2) { text-align: left; }
.support-page .footer-bottom a { color: inherit; text-underline-offset: 4px; }

/* Public support center: deliberately compact and connected to the Keystone site. */
.support-center-page .support-main {
  width: min(100% - 40px, 1040px);
  padding: clamp(58px, 7vw, 92px) 0 clamp(72px, 8vw, 110px);
}
.support-center-page .support-intro {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  padding-bottom: clamp(32px, 4vw, 46px);
}
.support-center-page .support-intro h1 {
  max-width: 11ch;
  margin-top: 12px;
  font-size: clamp(3.25rem, 6.2vw, 5.8rem);
  line-height: .9;
}
.support-center-page .support-form {
  max-width: 820px;
  margin: clamp(36px, 5vw, 54px) auto 0;
  border: 1px solid rgba(17,17,15,.16);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 46px);
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 70px rgba(17,17,15,.07);
}
.support-center-page .support-field input,
.support-center-page .support-field select,
.support-center-page .support-field textarea {
  border-color: rgba(17,17,15,.18);
  border-radius: 8px;
  background: #f8f8f5;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.support-center-page .support-field input:hover,
.support-center-page .support-field select:hover,
.support-center-page .support-field textarea:hover { border-color: rgba(17,17,15,.4); }
.support-center-page .support-field input:focus-visible,
.support-center-page .support-field select:focus-visible,
.support-center-page .support-field textarea:focus-visible {
  border-color: var(--ink);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17,17,15,.09);
}
.support-center-page .support-submit { border-radius: 999px; padding-inline: 30px; }
.support-center-page .support-small { max-width: 68ch; }
.support-page-nav,
.support-admin-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.support-page-nav a,
.support-admin-nav a { color: inherit; text-decoration: none; }
.support-page-nav a:hover,
.support-admin-nav a:hover,
.support-admin-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.support-form { position: relative; }
.support-submit { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.support-link-button { width: fit-content; }
.support-actions { display: flex; align-items: center; gap: 24px; margin-top: 42px; }
.support-confirmation { max-width: 920px; margin: 50px 0; border: 1px solid var(--line-dark); padding: clamp(28px, 5vw, 54px); background: #fff; }
.support-confirmation h2,
.support-admin-detail h2,
.support-admin-actions h2 { margin-top: 10px; font-family: var(--font-brand); font-size: clamp(2rem, 4vw, 3.8rem); font-style: italic; line-height: .95; text-transform: uppercase; }
.support-confirmation > p { max-width: 62ch; margin-top: 20px; line-height: 1.65; }
.support-confirmation dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 24px; margin: 28px 0; }
.support-confirmation dt,
.support-admin-detail dt { color: rgba(17,17,15,.58); font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.support-confirmation dd { overflow-wrap: anywhere; }
.support-copy-label { display: block; margin-top: 26px; font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.support-copy-input { width: 100%; min-height: 52px; margin-top: 8px; border: 1px solid var(--line-dark); padding: 12px; background: var(--paper); color: var(--ink); font: inherit; overflow-wrap: anywhere; }
textarea.support-copy-input { min-height: 112px; resize: vertical; }
.support-status { display: inline-flex; align-items: center; min-height: 30px; border: 1px solid rgba(17,17,15,.22); border-radius: 999px; padding: 5px 11px; background: rgba(255,255,255,.8); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status-waiting_for_keystone { background: #fff3df; border-color: #d79839; }
.status-waiting_for_customer { background: #e9f0ff; border-color: #7187af; }
.status-resolved { background: #e9f6ec; border-color: #6f9a76; }
.status-closed { color: rgba(17,17,15,.56); background: #ecece9; }
.support-ticket-summary { display: grid; grid-template-columns: .7fr .7fr 1.6fr; max-width: 1100px; margin: 44px 0; border-block: 1px solid var(--line-dark); }
.support-ticket-summary > div { display: grid; gap: 7px; padding: 22px 24px; border-right: 1px solid var(--line-dark); }
.support-ticket-summary > div:last-child { border-right: 0; }
.support-ticket-summary span { color: rgba(17,17,15,.58); font-size: .69rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.support-thread { display: grid; gap: 18px; max-width: 920px; margin: 44px 0; }
.support-message { width: min(82%, 700px); border: 1px solid var(--line-dark); padding: 22px; background: #fff; }
.support-message-keystone { margin-left: auto; background: var(--ink); color: var(--white); }
.support-message header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid currentColor; font-size: .72rem; letter-spacing: .04em; }
.support-message time { opacity: .64; }
.support-message p { margin-top: 16px; line-height: 1.65; }
.support-reply-form { margin-top: 46px; }
.support-login-form { max-width: 560px; }
.support-admin-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 48px; }
.support-admin-filters { display: grid; grid-template-columns: minmax(230px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr) auto auto; align-items: end; gap: 14px; margin-top: 48px; }
.support-admin-filters .support-submit { margin-top: 0; }
.support-quiet-button { min-height: 42px; border: 1px solid var(--line-dark); padding: 8px 14px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.support-table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line-dark); background: #fff; }
.support-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.support-table th,
.support-table td { padding: 17px 15px; border-bottom: 1px solid rgba(17,17,15,.14); text-align: left; vertical-align: top; }
.support-table th { background: #efefeb; font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }
.support-table td { font-size: .82rem; line-height: 1.45; }
.support-table tr:last-child td { border-bottom: 0; }
.support-table td a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.support-table td span { display: block; color: rgba(17,17,15,.58); font-size: .74rem; }
.support-admin-detail { margin-top: 40px; border: 1px solid var(--line-dark); padding: clamp(24px, 4vw, 40px); background: #fff; }
.support-admin-detail h2 { margin: 0 0 26px; font-size: clamp(1.8rem, 3vw, 3rem); }
.support-admin-detail dl { display: grid; grid-template-columns: 150px 1fr; gap: 13px 24px; }
.support-admin-detail dd { min-width: 0; overflow-wrap: anywhere; }
.support-admin-actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 34px; margin-top: 40px; align-items: start; }
.support-admin-actions .support-form { margin-top: 0; }
.support-status-form { max-width: 560px; }
.order-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.order-lines { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.order-lines > div { display: grid; grid-template-columns: minmax(220px, 1fr) 150px minmax(180px, .8fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }

@media (max-width: 860px) {
  .support-intro { grid-template-columns: 1fr; gap: 24px; }
  .support-intro h1 { max-width: 12ch; font-size: clamp(3.4rem, 14vw, 6rem); }
  .support-grid,
  .support-admin-actions,
  .order-admin-grid { grid-template-columns: 1fr; }
  .support-field-full { grid-column: auto; }
  .support-admin-filters { grid-template-columns: 1fr 1fr; }
  .support-admin-filters .support-field:first-child { grid-column: 1 / -1; }
  .support-ticket-summary { grid-template-columns: 1fr; }
  .support-ticket-summary > div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .support-ticket-summary > div:last-child { border-bottom: 0; }
  .support-center-page .support-intro { grid-template-columns: 1fr; gap: 22px; }
  .support-center-page .support-intro > p { max-width: 56ch; }
}

@media (max-width: 560px) {
  .support-page .header-inner { min-height: 70px; }
  .support-page-nav { gap: 12px; font-size: .65rem; }
  .support-admin-nav { gap: 12px; font-size: .62rem; }
  .support-main { padding: 46px 0 70px; }
  .support-form { margin-top: 38px; }
  .support-admin-filters { grid-template-columns: 1fr; }
  .support-admin-filters .support-field:first-child { grid-column: auto; }
  .support-admin-toolbar { display: block; }
  .support-message { width: 100%; }
  .support-message header { display: grid; gap: 5px; }
  .support-confirmation dl,
  .support-admin-detail dl { grid-template-columns: 1fr; gap: 5px; }
  .support-confirmation dd,
  .support-admin-detail dd { margin-bottom: 12px; }
  .order-lines > div { grid-template-columns: 1fr; gap: 6px; }
  .support-actions { align-items: flex-start; flex-direction: column; }
  .support-center-page .support-main { width: min(100% - 28px, 1040px); padding-top: 38px; }
  .support-center-page .support-intro h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .support-center-page .support-form { margin-top: 28px; border-radius: 14px; padding: 22px 18px; }
  .support-center-page .support-submit { width: 100%; }
}

/* Scroll choreography: defaults remain fully readable without JavaScript. */
[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: none;
}

.reveal-delay-1 { --reveal-delay: 60ms; }
.reveal-delay-2 { --reveal-delay: 110ms; }
.reveal-delay-3 { --reveal-delay: 160ms; }
.reveal-delay-4 { --reveal-delay: 210ms; }
.privacy-note[data-reveal="footer"] { --reveal-delay: 160ms; }

.motion-ready [data-motion-section] { --section-line: 0; }

.motion-ready [data-reveal] {
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="eyebrow"] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .58s ease, transform .72s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="heading"] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .72s ease, transform .95s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="copy"],
.motion-ready [data-reveal="link"],
.motion-ready [data-reveal="footer"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease, transform .82s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="media-left"] {
  opacity: .001;
  -webkit-clip-path: inset(0 94% 0 0);
  clip-path: inset(0 94% 0 0);
  transition: opacity .35s ease, clip-path 1.05s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="media-right"] {
  opacity: .001;
  -webkit-clip-path: inset(0 0 0 94%);
  clip-path: inset(0 0 0 94%);
  transition: opacity .35s ease, clip-path 1.05s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal="row"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .72s ease, transform .9s var(--ease-out), padding .4s var(--ease-out), background-color .3s ease, color .3s ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready [data-reveal="media-left"].is-visible,
.motion-ready [data-reveal="media-right"].is-visible {
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

.motion-ready [data-parallax-media] { --media-zoom: 1.035; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 40px, 960px); }

  .studio-intro { grid-template-columns: minmax(0, 1.25fr) minmax(240px, .65fr); }

  .venture-inner,
  .venture-jacros .venture-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .8fr);
    gap: 48px;
    min-height: 680px;
  }

  .venture-jacros .venture-inner { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.05fr); }

  .venture-media { min-height: 500px; }

  .destination-inner { grid-template-columns: .72fr 1.28fr; gap: 52px; }
  .destination-links a { grid-template-columns: 1fr auto; }
  .destination-meta { grid-row: 2; }
  .destination-action { grid-row: 1 / span 2; grid-column: 2; }
}

@media (max-width: 767px) {
  :root {
    --shell: calc(100% - 32px);
    --header-height: 78px;
  }

  .site-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .wordmark { width: 86px; height: 56px; }
  .menu-toggle { display: block; }

  .opening-veil img { width: 122px; }

  .hero { min-height: 620px; }
  .hero-media { inset: -2%; grid-template-columns: 47% 53%; }
  .hero-media-turbo img { object-position: 48% 56%; }
  .hero-media-jacros video { object-position: 55% center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5,5,5,.58) 0%, rgba(5,5,5,.38) 36%, rgba(5,5,5,.75) 100%),
      linear-gradient(90deg, rgba(5,5,5,.18), rgba(5,5,5,.38));
  }

  .hero-content { justify-content: flex-end; padding-bottom: clamp(58px, 10vh, 88px); }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 5rem); max-width: 8ch; }
  .hero-summary { max-width: 32ch; margin-top: 24px; font-size: .95rem; }
  .hero-link { margin-top: 26px; }

  .studio-section { padding: 72px 0 96px; }
  .studio-intro { display: block; }
  .studio-intro h2 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .studio-copy { margin-top: 28px; font-size: .96rem; }

  .studio-diptych { grid-template-columns: 1fr; gap: 54px; margin-top: 64px; }
  .studio-image { height: min(118vw, 520px); }
  .studio-diptych figcaption { display: grid; gap: 5px; }
  .studio-diptych figcaption span { text-align: left; }

  .venture { padding: 88px 0 96px; }
  .venture-inner,
  .venture-jacros .venture-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .venture-jacros .venture-content { order: 2; }
  .venture-jacros .venture-media { order: 1; }
  .venture-media { height: min(120vw, 560px); min-height: 0; }
  .venture-content { max-width: none; }
  .venture-content h3 { margin-top: 52px; font-size: clamp(3.8rem, 18vw, 5.5rem); }
  .venture-content > p:not(.section-kicker):not(.venture-relationship) { margin-top: 26px; font-size: 1rem; }
  .jacros-heading { width: min(235px, 66%); }

  .destination-close { padding: 92px 0 100px; }
  .destination-inner { grid-template-columns: 1fr; gap: 58px; }
  .destination-intro h2 { max-width: 10ch; font-size: clamp(3rem, 13vw, 4.5rem); }
  .destination-links a { min-height: 132px; grid-template-columns: 1fr auto; gap: 10px 18px; }
  .destination-title { font-size: clamp(2rem, 10vw, 3rem); }
  .destination-meta { grid-row: 2; }
  .destination-action { grid-row: 1 / span 2; grid-column: 2; max-width: 80px; text-align: right; line-height: 1.35; }
  .destination-links a:hover,
  .destination-links a:focus-visible { padding-inline: 14px; }

  .site-footer { padding-top: 68px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .footer-main > p { grid-column: 1 / -1; grid-row: 2; }
  .footer-nav { grid-column: 2; grid-row: 1; }
  .privacy-note { grid-column: 1 / -1; grid-row: 3; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 14px 24px; margin-top: 54px; }
  .footer-bottom span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }

  .support-intro { grid-template-columns: 1fr; gap: 28px; }
  .support-intro h1 { font-size: clamp(3.6rem, 17vw, 5.2rem); }
  .support-grid { grid-template-columns: 1fr; }
  .support-field-full { grid-column: auto; }
  .support-admin-card dl { grid-template-columns: 1fr; gap: 4px; }
  .support-admin-card dd + dt { margin-top: 12px; }
}

@media (max-width: 360px) {
  :root { --shell: calc(100% - 24px); }

  .hero h1 { font-size: 3.3rem; }
  .hero-summary { max-width: 29ch; }
  .studio-section { padding: 60px 0 84px; }
  .studio-intro h2 { font-size: 2.75rem; }
  .studio-image { height: 390px; }
  .venture-media { height: 410px; }
  .venture-content h3 { font-size: 3.9rem; }
  .destination-intro h2 { font-size: 3.05rem; }
  .destination-links a { min-height: 122px; }
  .destination-links a { grid-template-columns: 1fr; }
  .destination-action {
    grid-row: 3;
    grid-column: 1;
    max-width: none;
    text-align: left;
    font-size: .7rem;
  }
}

@media (hover: hover) {
  .studio-diptych figure:hover .studio-image,
  .venture-media:hover { --media-zoom: 1.045; }
}

@media (hover: none) {
  .destination-links a:hover { padding-inline: 0; background: transparent; color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .opening-veil { display: none; }
  .hero-media { transform: none !important; }
  .hero-media-panel img,
  .hero-media-panel video,
  .hero-content,
  [data-parallax-media] > img,
  [data-parallax-media] > video {
    transform: none !important;
    translate: none !important;
  }
  [data-intro], [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
  }
}

/* Support messenger — deliberately self-contained from the storefront layout. */
.sr-only {
  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;
}

.support-ticket-page {
  min-height: 100dvh;
  background: #e9e9e5;
}

.support-messenger-shell {
  width: min(100% - 24px, 1360px);
  margin: 12px auto;
}

.messenger-access-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(17,17,15,.14);
  border-radius: 16px;
  padding: 18px 54px 18px 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(17,17,15,.06);
}

.messenger-access-card h2 { font-size: 1rem; }
.messenger-access-card p { margin-top: 4px; color: rgba(17,17,15,.65); font-size: .8rem; line-height: 1.5; }
.messenger-access-actions { display: flex; align-items: center; gap: 10px; }
.messenger-access-actions input { position: absolute; opacity: 0; pointer-events: none; }
.messenger-access-actions button,
.messenger-access-card > button {
  min-height: 38px;
  border: 1px solid rgba(17,17,15,.2);
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}
.messenger-access-card > button { position: absolute; top: 12px; right: 12px; min-width: 34px; padding: 4px; font-size: 1.1rem; }
.support-messenger-shell:has(.messenger-access-card) .support-messenger { height: calc(100dvh - 124px); min-height: 560px; }

.support-messenger {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  height: calc(100dvh - 24px);
  min-height: 600px;
  border: 1px solid rgba(17,17,15,.15);
  border-radius: 20px;
  background: #f6f6f3;
  box-shadow: 0 22px 70px rgba(17,17,15,.12);
  overflow: hidden;
}
.messenger-expectation { border-bottom: 1px solid rgba(17,17,15,.1); padding: 8px 18px; background: #f7f7f3; color: rgba(17,17,15,.62); font-size: .68rem; line-height: 1.45; text-align: center; }
.load-earlier { display: block; min-height: 34px; margin: 0 auto 16px; border: 1px solid rgba(17,17,15,.15); border-radius: 999px; padding: 6px 13px; background: rgba(255,255,255,.78); color: inherit; font: inherit; font-size: .68rem; cursor: pointer; }
.load-earlier:disabled { opacity: .55; cursor: wait; }

.messenger-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  border-bottom: 1px solid rgba(17,17,15,.12);
  padding: 12px 18px;
  background: rgba(255,255,252,.94);
  backdrop-filter: blur(16px);
}

.messenger-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.messenger-brand img { width: 62px; height: 42px; object-fit: contain; }
.messenger-brand-copy { display: grid; min-width: 0; }
.messenger-brand-copy strong { font-size: .94rem; }
.messenger-brand-copy span { margin-top: 3px; color: rgba(17,17,15,.58); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #aaa; box-shadow: 0 0 0 4px rgba(120,120,120,.1); }
.presence-dot.is-active { background: #39734a; box-shadow: 0 0 0 4px rgba(57,115,74,.12); }
.messenger-header-actions { display: flex; align-items: center; gap: 9px; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; color: rgba(17,17,15,.58); font-size: .67rem; }
.connection-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #39734a; }
[data-connection="reconnecting"] .connection-state::before { background: #bd7a24; }
[data-connection="offline"] .connection-state::before { background: #aa4545; }
.messenger-details-button,
.messenger-back {
  min-height: 38px;
  border: 1px solid rgba(17,17,15,.17);
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}
.messenger-back { display: none; min-width: 38px; padding: 5px; font-size: 1.1rem; }

.messenger-ticket-details {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  width: min(390px, 92%);
  height: 100%;
  padding: 28px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(17,17,15,.14);
  overflow-y: auto;
}
.ticket-details-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(17,17,15,.12); }
.ticket-details-heading h2 { margin-top: 7px; font-size: 1.3rem; }
.ticket-details-heading button { border: 0; background: transparent; font: inherit; font-size: 1.8rem; cursor: pointer; }
.messenger-ticket-details dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 18px; margin-top: 24px; font-size: .82rem; }
.messenger-ticket-details dt { color: rgba(17,17,15,.55); font-size: .67rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.messenger-ticket-details dd { min-width: 0; overflow-wrap: anywhere; }
.messenger-ticket-details > p { margin-top: 24px; color: rgba(17,17,15,.62); font-size: .76rem; line-height: 1.55; }
.private-ticket-warning { border-left: 2px solid #171715; padding-left: 14px; }
.rotate-link-panel { margin-top: 26px; border-top: 1px solid rgba(17,17,15,.12); padding-top: 20px; }
.rotate-link-panel summary { font-size: .78rem; font-weight: 700; cursor: pointer; }
.rotate-link-panel form { display: grid; gap: 10px; margin-top: 14px; }
.rotate-link-panel label { font-size: .72rem; }
.rotate-link-panel input { width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid rgba(17,17,15,.2); padding: 9px 11px; font: inherit; }
.rotate-link-panel button,
.admin-ticket-details button,
.admin-ticket-details select,
.admin-ticket-details input,
.admin-ticket-details textarea { font: inherit; }

.messenger-thread-wrap { position: relative; min-height: 0; background: linear-gradient(180deg, #f0f0ed, #f7f7f4 42%); }
.messenger-conversation {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px clamp(16px, 4vw, 44px) 34px;
  scroll-behavior: smooth;
}
.chat-loading { display: grid; place-items: center; height: 100%; color: rgba(17,17,15,.5); font-size: .78rem; }
.messenger-day-separator { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: rgba(17,17,15,.48); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.messenger-day-separator::before,
.messenger-day-separator::after { content: ""; flex: 1; height: 1px; background: rgba(17,17,15,.1); }
.chat-message { display: grid; width: min(76%, 640px); margin: 12px 0; animation: chat-arrive .25s ease both; }
.chat-message-own { margin-left: auto; justify-items: end; }
.chat-message-other { margin-right: auto; justify-items: start; }
.chat-sender { margin: 0 9px 5px; color: rgba(17,17,15,.55); font-size: .66rem; }
.chat-bubble { max-width: 100%; border: 1px solid rgba(17,17,15,.1); border-radius: 4px 18px 18px 18px; padding: 11px 14px; background: #fff; box-shadow: 0 5px 20px rgba(17,17,15,.04); overflow-wrap: anywhere; }
.chat-message-own .chat-bubble { border-color: #171715; border-radius: 18px 4px 18px 18px; background: #171715; color: #fff; }
.chat-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.chat-bubble a { color: inherit; text-underline-offset: 3px; }
.chat-meta { display: flex; gap: 7px; margin: 5px 9px 0; color: rgba(17,17,15,.48); font-size: .61rem; }
.chat-deleted-placeholder { color: inherit; font-style: italic; opacity: .68; }
.message-actions-menu { position: relative; margin-left: 3px; }
.message-actions-menu summary { display: inline-grid; place-items: center; min-width: 25px; height: 20px; border-radius: 999px; cursor: pointer; list-style: none; font-weight: 700; letter-spacing: .05em; }
.message-actions-menu summary::-webkit-details-marker { display: none; }
.message-actions-menu summary:hover { background: rgba(17,17,15,.08); }
.message-actions-popover { position: absolute; z-index: 9; right: 0; bottom: 24px; display: grid; min-width: 150px; overflow: hidden; border: 1px solid rgba(17,17,15,.14); border-radius: 9px; background: #fff; color: #171715; box-shadow: 0 12px 32px rgba(17,17,15,.15); }
.message-actions-popover button { border: 0; border-bottom: 1px solid rgba(17,17,15,.08); padding: 9px 11px; background: transparent; color: inherit; font: inherit; font-size: .68rem; text-align: left; cursor: pointer; }
.message-actions-popover button:hover { background: #f0f0ec; }
.chat-message-pending { opacity: .68; }
.chat-message-failed { opacity: 1; }
.chat-message-failed .chat-meta { color: #9d3535; }
.chat-message-failed button { border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.pending-attachment-count { display: block; font-size: .7rem; opacity: .75; }
@keyframes chat-arrive { from { opacity: 0; transform: translateY(7px); } }

.chat-attachments { display: grid; width: min(100%, 360px); gap: 5px; margin-top: 9px; overflow: hidden; border-radius: 10px; }
.chat-attachments-1 .chat-attachment { aspect-ratio: 4 / 3; }
.chat-attachments-2,
.chat-attachments-3,
.chat-attachments-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-attachment { min-width: 0; border: 0; padding: 0; background: #ddd; cursor: zoom-in; overflow: hidden; aspect-ratio: 1; }
.chat-attachment img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.chat-attachment:hover img { transform: scale(1.025); }
.jump-newest { position: absolute; right: 22px; bottom: 18px; z-index: 4; min-height: 38px; border: 1px solid rgba(17,17,15,.18); border-radius: 999px; padding: 7px 14px; background: #fff; color: #171715; box-shadow: 0 8px 26px rgba(17,17,15,.12); font: inherit; font-size: .7rem; cursor: pointer; }
.messenger-typing { min-height: 23px; padding: 3px clamp(18px,4vw,44px); background: #f7f7f4; color: rgba(17,17,15,.55); font-size: .68rem; font-style: italic; }
.closed-ticket-notice { padding: 11px 18px; border-top: 1px solid rgba(17,17,15,.12); background: #ecece8; text-align: center; font-size: .74rem; }
.closed-ticket-notice button { margin-left: 8px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.messenger-composer { position: relative; z-index: 5; border-top: 1px solid rgba(17,17,15,.12); padding: 12px 14px 10px; background: rgba(255,255,252,.98); }
.composer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.composer-row textarea { width: 100%; min-width: 0; max-height: 150px; min-height: 46px; border: 1px solid rgba(17,17,15,.18); border-radius: 14px; padding: 12px 14px; background: #f5f5f1; color: #171715; font: inherit; line-height: 1.4; resize: none; }
.composer-row textarea:focus-visible { outline: 2px solid #171715; outline-offset: 2px; background: #fff; }
.attach-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(17,17,15,.18); border-radius: 50%; cursor: pointer; }
.attach-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attach-button span { font-size: 1.35rem; font-weight: 300; }
.chat-send-button { min-width: 74px; min-height: 44px; border: 1px solid #171715; border-radius: 999px; padding: 8px 16px; background: #171715; color: #fff; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.chat-send-button:disabled { opacity: .45; cursor: wait; }
.composer-meta { display: flex; justify-content: space-between; gap: 14px; min-height: 18px; padding: 5px 52px 0; color: rgba(17,17,15,.48); font-size: .6rem; }
.composer-error { color: #9b3030; text-align: right; }
.composer-preview { display: flex; gap: 8px; padding: 0 52px 10px; overflow-x: auto; }
.composer-preview-item { position: relative; flex: 0 0 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.composer-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.composer-preview-item button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(17,17,15,.82); color: #fff; font: inherit; cursor: pointer; }
.messenger-composer.is-dragging { box-shadow: inset 0 0 0 2px #171715; background: #efefe9; }
.copy-private-link,
.end-session-form button,
.admin-ticket-actions button { min-height: 36px; border: 1px solid rgba(17,17,15,.18); border-radius: 999px; padding: 7px 12px; background: transparent; color: inherit; font: inherit; font-size: .68rem; cursor: pointer; }
.copy-private-link { margin-top: 18px; }
.end-session-form { margin-top: 12px; }
.admin-ticket-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.support-toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: min(92vw, 520px); transform: translate(-50%, 18px); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 10px 16px; background: #171715; color: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.24); font-size: .72rem; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.support-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.image-lightbox { width: min(92vw, 1100px); max-width: none; height: min(90dvh, 900px); max-height: none; border: 0; padding: 54px 70px 44px; background: #111; color: #fff; }
.image-lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.image-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.image-lightbox a { position: absolute; right: 18px; bottom: 14px; color: #fff; font-size: .72rem; text-underline-offset: 4px; }

/* Private administrator console */
.support-console-page { height: 100dvh; overflow: hidden; background: #deded9; }
.support-console { display: grid; grid-template-columns: minmax(310px, 370px) minmax(0, 1fr); height: 100dvh; }
.support-inbox-pane { display: grid; grid-template-rows: auto auto auto auto auto minmax(0,1fr) auto; min-width: 0; border-right: 1px solid rgba(17,17,15,.14); background: #f7f7f3; }
.inbox-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; border-bottom: 1px solid rgba(17,17,15,.12); padding: 9px 16px; }
.inbox-brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font-size: .72rem; font-weight: 700; }
.inbox-brand img { width: 55px; height: 42px; object-fit: contain; }
.inbox-admin-links { display: flex; gap: 11px; }
.inbox-admin-links a { color: inherit; font-size: .65rem; text-underline-offset: 3px; }
.inbox-heading { display: flex; justify-content: space-between; align-items: end; padding: 20px 18px 10px; }
.inbox-heading h1 { margin-top: 4px; font-size: 1.5rem; }
.inbox-unread-total { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: #171715; color: #fff; font-size: .7rem; }
.inbox-controls { display: grid; gap: 8px; padding: 8px 14px; }
.inbox-controls input,
.inbox-controls select { width: 100%; min-height: 41px; border: 1px solid rgba(17,17,15,.14); border-radius: 10px; padding: 8px 10px; background: #fff; color: inherit; font: inherit; font-size: .72rem; }
.inbox-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.inbox-alert-controls { display: flex; gap: 7px; padding: 1px 14px 10px; }
.inbox-bulk-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 8px; color: rgba(17,17,15,.5); font-size: .6rem; }
.inbox-bulk-controls button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inbox-bulk-controls button:disabled { opacity: .38; cursor: default; }
.inbox-icon-button { min-height: 32px; border: 1px solid rgba(17,17,15,.14); border-radius: 999px; padding: 5px 10px; background: transparent; color: inherit; font: inherit; font-size: .62rem; cursor: pointer; }
.inbox-list { min-height: 0; padding: 3px 8px 12px; overflow-y: auto; }
.inbox-ticket-row { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: stretch; gap: 0; margin: 2px 0; }
.inbox-ticket-select { display: grid; place-items: start center; padding-top: 17px; }
.inbox-ticket-select input { width: 15px; height: 15px; accent-color: #171715; }
.inbox-ticket { display: grid; gap: 5px; border-radius: 12px; padding: 13px 12px; color: inherit; text-decoration: none; transition: background .18s ease; }
.inbox-ticket:hover,
.inbox-ticket.is-selected { background: #e8e8e3; }
.inbox-ticket.has-unread { background: #efefe9; }
.inbox-ticket-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.inbox-ticket-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.inbox-ticket-top time { flex: none; color: rgba(17,17,15,.46); font-size: .6rem; }
.inbox-ticket-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.inbox-ticket-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(17,17,15,.55); font-size: .68rem; }
.inbox-ticket-foot { display: flex; align-items: center; gap: 7px; min-width: 0; color: rgba(17,17,15,.48); font-size: .58rem; }
.inbox-ticket-foot span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-ticket-foot b { display: grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; border-radius: 50%; background: #171715; color: #fff; font-size: .58rem; }
.inbox-attachment-indicator { border: 1px solid rgba(17,17,15,.14); border-radius: 999px; padding: 2px 6px; }
.inbox-empty { padding: 30px 16px; color: rgba(17,17,15,.55); font-size: .76rem; text-align: center; }
.inbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(17,17,15,.12); padding: 11px 14px; color: rgba(17,17,15,.52); font-size: .58rem; }
.inbox-footer button { border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.support-chat-pane { min-width: 0; min-height: 0; padding: 16px; }
.support-chat-pane .support-messenger { height: 100%; min-height: 0; border-radius: 16px; }
.inbox-welcome { display: grid; place-items: center; align-content: center; height: 100%; color: rgba(17,17,15,.62); text-align: center; }
.inbox-welcome img { width: 105px; height: 74px; object-fit: contain; opacity: .75; }
.inbox-welcome h2 { margin-top: 12px; color: #171715; font-size: clamp(2.3rem,5vw,4rem); }
.inbox-welcome > p:last-child { margin-top: 10px; }
.admin-messenger-header { grid-template-columns: minmax(0,1fr) auto auto; }
.messenger-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.messenger-identity > div { display: grid; min-width: 0; }
.messenger-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.messenger-identity span { margin-top: 3px; color: rgba(17,17,15,.52); font-size: .62rem; }
.messenger-admin-heading { display: grid; justify-items: end; color: rgba(17,17,15,.5); font-size: .58rem; }
.messenger-admin-heading b { margin-top: 3px; color: #171715; font-size: .68rem; }
.admin-detail-control { display: grid; gap: 6px; margin-top: 22px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.admin-detail-control select,
.associate-order-form input { min-height: 42px; border: 1px solid rgba(17,17,15,.17); padding: 8px 10px; background: #fff; }
.associate-order-form { display: grid; gap: 8px; margin-top: 16px; }
.associate-order-form label { display: grid; gap: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.associate-order-form button,
.canned-editor button { min-height: 38px; border: 1px solid #171715; padding: 7px 11px; background: #171715; color: #fff; cursor: pointer; }
.associate-order-form span,
.canned-editor span { font-size: .68rem; }
.copy-inline { border: 0 !important; padding: 0 !important; background: transparent !important; color: inherit !important; font-size: .65rem !important; text-decoration: underline; cursor: pointer; }
.canned-editor { margin-top: 24px; border-top: 1px solid rgba(17,17,15,.12); padding-top: 18px; }
.canned-editor summary { font-size: .73rem; font-weight: 700; cursor: pointer; }
.canned-editor form { display: grid; gap: 12px; margin-top: 12px; }
.canned-editor [data-canned-row] { display: grid; gap: 5px; }
.canned-editor input,
.canned-editor textarea { width: 100%; border: 1px solid rgba(17,17,15,.16); padding: 7px; font-size: .7rem; }
.canned-editor textarea { min-height: 76px; resize: vertical; }
.customer-profile { margin-top: 26px; border-top: 1px solid rgba(17,17,15,.12); padding-top: 18px; }
.customer-profile h3 { font-size: .84rem; }
.customer-profile dl { grid-template-columns: 116px 1fr; margin-top: 16px; }
.profile-address { white-space: normal; line-height: 1.45; }
.canned-select { display: block; max-width: 230px; min-height: 30px; margin: 0 0 7px 52px; border: 1px solid rgba(17,17,15,.14); border-radius: 999px; padding: 4px 10px; background: transparent; color: inherit; font: inherit; font-size: .65rem; }

*:focus-visible { outline: 2px solid #171715; outline-offset: 3px; }

@media (max-width: 900px) {
  .support-console { grid-template-columns: 310px minmax(0,1fr); }
  .support-chat-pane { padding: 10px; }
  .messenger-admin-heading { display: none; }
  .admin-messenger-header { grid-template-columns: minmax(0,1fr) auto; }
}

@media (max-width: 700px) {
  .support-console-page { overflow: auto; }
  .support-console { display: block; min-height: 100dvh; height: auto; }
  .support-inbox-pane { height: 100dvh; border-right: 0; }
  .support-chat-pane { display: none; padding: 0; }
  .support-chat-pane.has-ticket { display: block; position: fixed; inset: 0; z-index: 40; background: #e8e8e4; }
  .support-chat-pane .support-messenger { height: 100dvh; border: 0; border-radius: 0; }
  .support-chat-pane.has-ticket + * { display: none; }
  .messenger-back { display: block; }
  .admin-messenger-header { grid-template-columns: auto minmax(0,1fr) auto; }
  .admin-messenger-header .messenger-header-actions .connection-state { display: none; }
  .support-messenger-shell { width: 100%; margin: 0; }
  .support-ticket-page .support-messenger { height: 100dvh; min-height: 520px; border: 0; border-radius: 0; }
  .support-ticket-page .messenger-access-card { margin: 10px; }
  .support-ticket-page:has(.messenger-access-card) .support-messenger { height: calc(100dvh - 110px); }
  .messenger-header { min-height: 70px; padding: 9px 11px; }
  .messenger-brand img { width: 49px; height: 35px; }
  .messenger-brand-copy strong { font-size: .8rem; }
  .messenger-brand-copy span { max-width: 160px; font-size: .6rem; }
  .messenger-details-button { min-height: 34px; padding: 5px 9px; }
  .connection-state { font-size: 0; }
  .connection-state::before { width: 8px; height: 8px; }
  .messenger-conversation { padding: 18px 12px 26px; }
  .chat-message { width: min(88%, 560px); }
  .chat-bubble { padding: 10px 12px; }
  .messenger-composer { padding: 9px 8px 7px; padding-bottom: max(7px, env(safe-area-inset-bottom)); }
  .composer-row { gap: 6px; }
  .attach-button { width: 42px; height: 42px; }
  .chat-send-button { min-width: 62px; padding-inline: 12px; }
  .composer-meta { padding-inline: 48px 4px; }
  .composer-meta > span:first-child { display: none; }
  .composer-preview { padding-left: 48px; }
  .canned-select { margin-left: 48px; }
  .image-lightbox { width: 100vw; height: 100dvh; padding: 52px 48px 40px; }
}

@media (max-width: 390px) {
  .messenger-access-card { display: block; padding: 15px 48px 15px 15px; }
  .messenger-access-actions { margin-top: 12px; }
  .messenger-brand-copy span { max-width: 130px; }
  .messenger-header-actions { gap: 5px; }
  .support-ticket-page .messenger-header .support-status { display: none; }
  .support-ticket-page .messenger-brand { gap: 6px; }
  .support-ticket-page .messenger-brand img { width: 38px; height: 30px; }
  .support-ticket-page .messenger-brand-copy strong { font-size: .73rem; }
  .support-ticket-page .messenger-brand-copy span { max-width: 138px; }
  .chat-message { width: 92%; }
  .chat-bubble { font-size: .88rem; }
  .messenger-ticket-details { width: 100%; padding: 22px; }
  .messenger-ticket-details dl { grid-template-columns: 94px 1fr; }
  .composer-row textarea { min-height: 44px; padding: 11px; }
  .attach-button { width: 40px; height: 40px; }
  .chat-send-button { min-width: 58px; min-height: 40px; padding-inline: 10px; }
  .inbox-brandbar { padding-inline: 12px; }
  .inbox-admin-links a:last-child { display: none; }
}

@media (max-width: 330px) {
  .messenger-brand-copy span { max-width: 108px; }
  .messenger-details-button { font-size: .65rem; }
  .chat-message { width: 94%; }
  .composer-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .attach-button { width: 36px; height: 36px; }
  .chat-send-button { min-width: 52px; min-height: 36px; font-size: .68rem; }
  .chat-send-button { width: 52px; padding-inline: 6px; }
  .composer-row textarea { min-height: 40px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message { animation: none !important; }
  .messenger-conversation { scroll-behavior: auto; }
  .chat-attachment img { transition: none; }
}
