/* v113 — dojo hero + karate Cilantro + foreground petals + $700 offer. Preview only. */
:root {
  --dojo-ink: #f6eee4;
  --dojo-ink-dim: rgba(246, 238, 228, 0.72);
  --dojo-gold: #e8c38a;
  --dojo-panel: rgba(10, 7, 14, 0.78);
  --dojo-border: rgba(232, 195, 138, 0.2);
}
html, body {
  margin: 0;
  padding: 0;
  background: #050308;
  color: var(--dojo-ink);
  height: auto;
  min-height: 100%;
}
html { overflow-x: clip; overflow-y: scroll; }
body { overflow: visible; }
html.ctb-co-open, html.ctb-co-open body,
html.ctb-pay-open, html.ctb-pay-open body {
  overflow: hidden;
  height: 100%;
}

/* ---- fixed dojo plate ---- */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #050308;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img.hero-poster,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg video { z-index: 1; }
.hero-bg img.hero-poster { z-index: 0; }
.hero-bg.reduced video { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg video { display: none !important; }
}

/* Hide the v111 sleeping-nap / yard-sign composition; work-loop no-ops without .nap */
.sign, .nap { display: none !important; }

/* ---- cilantro ---- */
.cilantro {
  position: fixed;
  z-index: 4;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  will-change: transform;
}
.cilantro-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw, 420px);
  height: var(--ch, 700px);
  transform: translate(-50%, -50%);
  transform-origin: 50% 70%;
  will-change: transform;
}
.cilantro-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: opacity, transform;
  transform-origin: 50% 80%;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.28));
}
.cilantro-shadow {
  position: absolute;
  left: 0;
  top: 0;
  width: 180px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 48%, rgba(0,0,0,0) 74%);
  transform: translate(-50%, 0) scale(1);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Foreground petals sit IN FRONT of Cilantro */
.fg-petals {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.fg-petals img {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  max-width: none;
  display: block;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  pointer-events: none;
  user-select: none;
}
@media (prefers-reduced-motion: reduce) {
  .fg-petals { display: none !important; }
}

/* ---- chrome: mail + socials, top-left so they don't fight Cilantro ---- */
.dojo-chrome {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.dojo-chrome > * { pointer-events: auto; }
.dojo-chrome .mailpill {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  -webkit-transform: none;
  z-index: 8;
}
.dojo-chrome .socials {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  -webkit-transform: none;
  flex-direction: row;
  gap: 8px;
}
.dojo-chrome .socials a {
  width: 38px;
  height: 38px;
}

/* ---- intro wordmark (above his ears) + hint (bottom of first screen) ---- */
.intro-mark {
  position: fixed;
  left: 50%;
  top: 5.5vh;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: min(92vw, 780px);
  pointer-events: none;
  text-shadow: 0 8px 28px rgba(0,0,0,0.55);
}
.intro-mark .eyebrow {
  margin: 0 0 8px;
  font: 600 12px/1.2 "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dojo-gold);
}
.intro-mark h1 {
  margin: 0;
  font: 700 clamp(28px, 4.4vw, 52px)/1.15 "Trebuchet MS", Palatino, serif;
  color: var(--dojo-ink);
}
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 5.5vh;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  width: min(92vw, 520px);
  text-align: center;
  font: 600 13px/1.3 "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 238, 228, 0.9);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 18px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* ---- scroll column ---- */
.scroll-track {
  position: relative;
  z-index: 3;
  /* v129: height is content-sized (catalog + footer). --ctb-len is still set by dojo.js. */
  height: auto;
  min-height: 100vh;
  pointer-events: none;
}
.column {
  width: min(560px, 52vw);
  margin: 0 0 0 6vw;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(180vh * var(--ctb-len, 1.00)) 0 3vh; /* v133: intro/glide lead-in scales with the track */
  pointer-events: none;
  box-sizing: border-box;
}
.slot {
  flex: 0 0 auto;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
}
.slot .yard,
.slot .offer {
  position: sticky;
  top: 16vh;
  width: 100%;
}
.slot-end {
  flex: 0 0 auto;
  align-items: flex-end;
  min-height: 0;
  padding-top: 2vh;
}
.slot-end .sig {
  position: sticky;
  bottom: 18px;
  width: 100%;
}

/* Yard cards: readable on the dark dojo, same markup checkout.js injects */
.yard {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  -webkit-transform: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 18px 16px;
  z-index: 3;
  pointer-events: auto;
  box-sizing: border-box;
  background: var(--dojo-panel);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--dojo-border);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.yard-head { margin: 0 0 12px; }
.yard-head .yard-prompt {
  color: var(--dojo-ink);
  font: 700 15px/1.3 "Trebuchet MS", system-ui, sans-serif;
}
.yard-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(232, 195, 138, 0.28);
  color: var(--dojo-ink);
  box-shadow: none;
}
.yard-card:hover, .yard-card:focus-visible {
  border-color: var(--dojo-gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.yard-card .yc-name { color: var(--dojo-ink); }
.yard-card .yc-blurb { color: var(--dojo-ink-dim); }
.yard-card.yc-gallery { background: rgba(255,255,255,0.08); border-color: rgba(232,195,138,0.35); }
.langsw {
  background: rgba(8,6,12,0.7);
  color: var(--dojo-gold);
  border-color: var(--dojo-gold);
  box-shadow: none;
}
.langsw[aria-checked="true"] .ls-track { background: #c9a46a; }
.langsw:focus-visible { outline-color: var(--dojo-gold); }

/* Footer: end of the scroll, readable on the stone floor */
footer.sig, .sig {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 6;
  pointer-events: auto;
  padding: 8px 8px 10px;
  color: #f2e6d8;
  white-space: normal;
}
.sig span, #sigtxt {
  color: #f2e6d8;
  background: none;
  -webkit-text-fill-color: #f2e6d8;
  animation: none;
  -webkit-animation: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}
.sig a.sig-priv {
  color: #e8c38a;
}

@media (max-width: 900px) {
  .dojo-chrome { top: 10px; left: 10px; max-width: calc(100vw - 140px); }
  .dojo-chrome .mailpill {
    padding: 7px 12px 7px 8px;
    font-size: 12px;
    /* kill the v111 phone recenter at 62% */
    top: auto; left: auto; right: auto; bottom: auto;
    transform: none;
    -webkit-transform: none;
  }
  .dojo-chrome .socials a { width: 32px; height: 32px; }
  .column {
    width: min(92vw, 560px);
    margin: 0 auto;
    padding: calc(280vh * var(--ctb-len, 0.75)) 0 4vh;
  }
  .slot .yard, .slot .offer { top: 26vh; }
  .intro-mark {
    top: auto;
    bottom: auto;
    /* Title lives in the lower third so it never sits on his ears,
       and stays clear of the top-right cilantro after the glide. */
    top: auto;
    bottom: 18vh;
    width: min(92vw, 420px);
  }
  .intro-mark h1 { font-size: clamp(22px, 6.6vw, 34px); }
  .scroll-hint { bottom: 5vh; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .cilantro-stage, .cilantro-stage img, .cilantro-shadow, .intro-mark, .scroll-hint {
    transition: none !important;
  }
}

/* v129: catalog is content-sized; the footer follows the last site. Adding a site lengthens the page. */
.slot-sites {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 6vh;
  padding-bottom: 1vh;
  position: relative;
  z-index: 3;
  width: var(--sites-width, 100%);
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.slot-sites .built-sites {
  width: 100%;
  height: auto;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .slot-sites {
    min-height: 0;
    padding-top: 26vh;
    width: var(--sites-width, 100%);
  }
}

/* ---- v130 (t937u/t938u): bubbles lower-right, client login pill top-right ---- */
/* The four social bubbles leave the top-left (the mail pill stays there alone)
   and sit in a fixed lower-right cluster, clear of the notch / home bar. */
.dojo-chrome .socials {
  position: fixed;
  top: auto;
  left: auto;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: none;
  -webkit-transform: none;
  flex-direction: row;
  gap: 8px;
  z-index: 9;
}
.dojo-chrome .socials a { width: 44px; height: 44px; }
/* Client login pill: fixed top-right, same pill shape as the mail pill but in the
   site's dark + gold so the two read as a pair (not a second red button). */
.loginpill {
  position: fixed;
  top: 14px;
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  background: rgba(20, 13, 26, 0.88);
  color: #f6eee4;
  text-decoration: none;
  font: 600 clamp(13px, 1.5vw, 17px)/1.1 "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: .2px;
  border: 2px solid #e8c38a;
  box-shadow: 0 3px 0 rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.28);
  transition: transform .2s;
  pointer-events: auto;
}
.loginpill:hover, .loginpill:focus-visible { transform: translateY(-2px); outline: none; border-color: #fff; }
.loginpill .tag {
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: #e8c38a; display: flex; align-items: center; justify-content: center; flex: none;
}
.loginpill .tag svg { width: 62%; height: 62%; fill: #1a1220; }
@media (max-width: 900px) {
  .dojo-chrome .socials { right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .dojo-chrome .socials a { width: 36px; height: 36px; }
  .loginpill { top: 10px; right: calc(10px + env(safe-area-inset-right, 0px)); padding: 7px 12px 7px 8px; font-size: 12px; gap: 7px; }
  .loginpill .tag { width: 1.35em; height: 1.35em; }
  /* keep the ctb-sig footer above the bubble row at the very end of the page */
  .slot-end { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .slot-end .sig { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  /* phones: tighter login pill so it sits beside the mail pill even in Spanish */
  .loginpill { font-size: 11px; padding: 6px 10px 6px 7px; gap: 6px; }
  .loginpill .tag { width: 1.25em; height: 1.25em; }
}
@media (max-width: 374px) {
  /* narrowest phones: login pill drops under the mail pill, right-aligned */
  .loginpill { top: 54px; }
}

/* v132 (t952u): CSS-only fallback (used only if katana.js does not run): desktop scrollbar as a black katana with gold accents.
   Phone overlay scrollbars are left native.
   Do not set scrollbar-color on Chrome — it overrides ::-webkit-scrollbar and
   paints a solid gold thumb. Firefox gets scrollbar-color as a fallback. */
@media (min-width: 901px) {
  html:not(.ctb-katana) {
    scrollbar-width: auto;
  }
  @-moz-document url-prefix() {
    html:not(.ctb-katana) { scrollbar-color: #c9a227 #0a0a0a; }
  }
  html:not(.ctb-katana)::-webkit-scrollbar {
    width: 18px;
  }
  html:not(.ctb-katana)::-webkit-scrollbar-corner {
    background: #0a0a0a;
  }
  html:not(.ctb-katana)::-webkit-scrollbar-track {
    background: linear-gradient(90deg,
      #1a1410 0%,
      #0c0a08 16%,
      #2a2218 50%,
      #100e0c 84%,
      #1a1410 100%);
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
    box-shadow: inset 0 0 8px rgba(0,0,0,.85);
  }
  html:not(.ctb-katana)::-webkit-scrollbar-thumb {
    /* glossy black saya/blade, gold edge lines, gold tsuba bands at both ends */
    background-color: #12100c;
    background-image:
      linear-gradient(90deg,
        #e8c38a 0px,
        #f3e2b0 2px,
        #2a241c 3px,
        #4a4030 30%,
        #0a0806 50%,
        #2a241c 70%,
        #c9a227 calc(100% - 2px),
        #e8c38a 100%);
    border-radius: 3px;
    border: 0;
    box-shadow:
      inset 0 8px 0 0 #e8c38a,
      inset 0 10px 0 0 #8a7020,
      inset 0 -8px 0 0 #e8c38a,
      inset 0 -10px 0 0 #8a7020,
      inset 1px 0 0 rgba(255, 236, 190, .35),
      inset -2px 0 4px rgba(0,0,0,.7);
    min-height: 72px;
  }
  html:not(.ctb-katana)::-webkit-scrollbar-thumb:hover {
    background-image:
      linear-gradient(90deg,
        #f3e2b0 0px,
        #ffe9b0 2px,
        #3a3228 3px,
        #5a4c38 30%,
        #14110c 50%,
        #3a3228 70%,
        #e8c38a calc(100% - 2px),
        #f3e2b0 100%);
  }
}

/* v135/v136 (t963u): custom katana scroll indicator (desktop only; katana.js adds html.ctb-katana).
   Native scrollbar is hidden only while the custom one is active. Phones keep the native overlay.
   v136 swaps in Canon's drawn pieces (see katana.js). */
.ctb-katana-el { display: none; }
html.ctb-katana { --kt-w: 24px; scrollbar-width: none; -ms-overflow-style: none; }
html.ctb-katana::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.ctb-katana .ctb-katana-el {
  display: block;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--kt-w);
  box-sizing: border-box;
  z-index: 20;
  overflow: hidden;
  contain: layout paint;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  background: linear-gradient(90deg, rgba(12,9,14,.55), rgba(8,6,10,.82));
  border-left: 1px solid rgba(201,162,39,.55);
  box-shadow: -4px 0 14px rgba(0,0,0,.35);
}
html.ctb-katana .ctb-katana-el.kt-grab { cursor: grabbing; }
/* v136: Canon's 4x art (96px = 24css). Handle 100css, tip 65, koiguchi 16, kojiri 24.
   Blade body tiles at 800css. 1px gold edge is a box-shadow so the art stays exactly 24px. */
html.ctb-katana .ctb-katana-el {
  border-left: 0;
  box-shadow: inset 1px 0 0 rgba(201,162,39,.55), -4px 0 14px rgba(0,0,0,.35);
}
.ctb-katana-el .kt-hilt,
.ctb-katana-el .kt-blade,
.ctb-katana-el .kt-saya,
.ctb-katana-el .kt-blade-body,
.ctb-katana-el .kt-blade-tip,
.ctb-katana-el .kt-koiguchi,
.ctb-katana-el .kt-saya-body,
.ctb-katana-el .kt-kojiri {
  position: absolute; left: 0; width: 24px; pointer-events: none;
  background-repeat: no-repeat; background-position: top center;
}
.ctb-katana-el .kt-hilt {
  top: 0; height: var(--kt-h, 100px); z-index: 4;
  background-image: url("katana/handle.webp");
  background-size: 24px var(--kt-h, 100px);
}
.ctb-katana-el .kt-blade {
  top: 0; height: 0; z-index: 2; overflow: hidden;
}
.ctb-katana-el .kt-blade-body {
  top: 0; height: 0;
  background-image: url("katana/blade-body.webp");
  background-repeat: repeat-y;
  background-size: 24px 800px;
}
.ctb-katana-el .kt-blade-tip {
  top: 0; height: 65px;
  background-image: url("katana/blade-tip.webp");
  background-size: 24px 65px;
}
.ctb-katana-el .kt-saya {
  top: 0; height: var(--kt-L, 600px); z-index: 3;
  will-change: transform;
}
.ctb-katana-el .kt-koiguchi {
  top: 0; height: 16px;
  background-image: url("katana/sheath-koiguchi.webp");
  background-size: 24px 16px;
}
.ctb-katana-el .kt-saya-body {
  top: 16px; bottom: 24px; height: auto;
  background-image: url("katana/sheath-body.webp");
  background-size: 24px 100%; /* stretch-safe in y */
}
.ctb-katana-el .kt-kojiri {
  bottom: 0; top: auto; height: 24px;
  background-image: url("katana/sheath-kojiri.webp");
  background-size: 24px 24px;
}

/* v135: keep the login pill and social bubbles clear of the katana rail */
html.ctb-katana .loginpill { right: calc(var(--kt-w) + 14px); }
html.ctb-katana .dojo-chrome .socials { right: calc(var(--kt-w) + 14px); }
