/* Design Tokens */
:root {
  --bg-primary: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #1A1A1A;
  --text-muted: #555555;
  --text-dim: #777777;
  --border-hairline: #ECECEC;
  
  --price-up: #166534;
  --price-down: #991B1B;
  
  --color-cranberry: #851726; /* Deep, matte, organic institutional cranberry — zero neon */
  --color-cranberry-hover: #981C2E;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
}

::selection {
  background-color: #000000;
  color: #FFFFFF;
}

/* Custom Round Cursor */
.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #000000;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
  will-change: transform;
}

body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
}

body.cursor-hover .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: rgba(0, 0, 0, 0.55);
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Layout Container */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: space-between;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Header Navigation (Visible, Clean) */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 28px;
  z-index: 50;
  pointer-events: auto;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #000000;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Global Exchanges Display */
.exchanges-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.exchange-card {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  user-select: none;
  max-width: calc(100vw - 36px);
  word-break: break-word;
}

.exchange-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.exchange-card.leaving {
  opacity: 0;
  transform: translateY(-8px) scale(1.02);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.exchange-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.exchange-title {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3.8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1.1;
}

.exchange-price {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.4vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #222222;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.exchange-address {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #666666;
  line-height: 1.25;
  margin-top: 5px;
}

/* Split-Flap Character Transitions */
.flap-char {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 0.06s cubic-bezier(0.2, 0, 0, 1), opacity 0.06s ease;
  backface-visibility: hidden;
}

.flap-char.flip {
  transform: rotateX(90deg) scale(0.95);
  opacity: 0.2;
}

.flap-space {
  display: inline-block;
  width: 0.26em;
}

/* Brand Hero */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  z-index: 20;
  position: relative;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.brand-title {
  font-size: clamp(2.35rem, 7.8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 12px;
  user-select: none;
  cursor: pointer;
  perspective: 800px;
}

.brand-title .title-sub {
  font-weight: 300;
  letter-spacing: -0.035em;
  color: #000000;
}

.brand-tagline {
  font-size: clamp(0.95rem, 2.8vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #555555;
  line-height: 1.4;
  user-select: none;
}


/* Market Conveyor */
.conveyor-container {
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  z-index: 40;
}

.conveyor-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  white-space: nowrap;
  animation: conveyorSlide 42s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.conveyor-track:hover,
.conveyor-track:active {
  animation-play-state: paused;
}

@keyframes conveyorSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.conveyor-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 0 20px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.conveyor-symbol {
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.02em;
}

.conveyor-price {
  font-weight: 400;
  color: #444444;
  font-variant-numeric: tabular-nums;
}

.conveyor-change {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.conveyor-change.up {
  color: var(--price-up);
}

.conveyor-change.down {
  color: var(--price-down);
}

.conveyor-sep {
  color: #D4D4D8;
  font-size: 11px;
  margin-left: 12px;
  user-select: none;
}

.flash-tick {
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

/* ==========================================================================
   About Page Styles (Simple Language, High Visibility, No Lines)
   ========================================================================== */
.about-body {
  background-color: #FFFFFF;
  color: #000000;
  overflow-y: auto;
  overflow-x: hidden;
}

.about-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 32px 90px;
  border: none;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 54px;
  border: none;
}

.about-brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: #000000;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-brand:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.brand-text-april {
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(110deg, #000000 0%, #000000 38%, #777777 50%, #000000 62%, #000000 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandSheenContinuous 4.5s ease-in-out infinite;
}

@keyframes brandSheenContinuous {
  0%, 20% {
    background-position: 100% 0;
  }
  80%, 100% {
    background-position: -100% 0;
  }
}

.about-content {
  margin-top: 16px;
}

.about-lines {
  display: flex;
  flex-direction: column;
  gap: 26px;
  border: none;
}

/* Cursor Zoom Lines */
.zoom-line {
  font-family: var(--font-sans);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.62;
  color: #1A1A1A;
  cursor: default;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease, opacity 0.2s ease;
  transform-origin: left center;
  user-select: none;
  border: none;
}

.zoom-line strong {
  font-weight: 600;
  color: #000000;
}

.zoom-line.hero-line {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.035em;
}

.zoom-line.contact-line {
  color: #000000;
  font-weight: 500;
  margin-top: 14px;
}

.email-link {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.email-link:hover {
  opacity: 0.65;
}

.zoom-line:hover {
  transform: translateX(6px);
  color: #000000;
}

.about-lines:hover .zoom-line:not(:hover) {
  opacity: 0.52;
}

/* Careers Page Pure Text Layout (Zero Containers, Pure Typography) */
.hiring-title-line {
  font-size: clamp(2rem, 5.2vw, 3.5rem) !important;
  font-weight: 600 !important;
  color: #000000;
  letter-spacing: -0.04em !important;
  margin-bottom: 6px;
}

.strike-animated {
  position: relative;
  display: inline-block;
  padding: 0 4px;
}

.strike-animated .strike-word {
  display: inline-block;
  color: #000000;
  opacity: 0.85;
}

.strike-animated::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 52%;
  height: clamp(3px, 0.45vw, 4px);
  background-color: #000000;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
  animation: strikeDraw 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.strike-animated.strike-delay::after {
  animation-delay: 0.55s;
}

@keyframes strikeDraw {
  0% {
    transform: translateY(-50%) scaleX(0);
  }
  100% {
    transform: translateY(-50%) scaleX(1);
  }
}

.role-hero-line {
  font-size: clamp(1.4rem, 3.4vw, 2.35rem) !important;
  font-weight: 600 !important;
  color: #000000;
  letter-spacing: -0.035em !important;
  margin-bottom: 6px;
}

/* Continuous Live Dot Pulse */
.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000000;
  margin-right: 10px;
  vertical-align: middle;
  animation: liveDotBreathe 2s ease-in-out infinite;
}

@keyframes liveDotBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.45;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
  }
}

/* Continuous Quantitative Ticker for Careers */
.quant-ticker-container {
  width: 100%;
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  user-select: none;
  margin-top: 56px;
  border-top: 1px solid var(--border-hairline);
  background: #FFFFFF;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.quant-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: quantConveyorSlide 36s linear infinite;
  will-change: transform;
}

.quant-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes quantConveyorSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.quant-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #555555;
  padding: 0 24px;
}

.quant-ticker-item strong {
  color: #000000;
  font-weight: 600;
}

.quant-ticker-sep {
  color: #CCCCCC;
  font-size: 11px;
}

/* Injected Widget Overrides */
#netlify-drawer,
iframe#netlify-drawer,
.netlify-badge,
[data-netlify-drawer],
[id*="netlify"],
div[class*="netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Anti-Inspection & Security Hardening
   ========================================================================== */
*, *::before, *::after {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Print Protection (Prevents PDF save/print of source) */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
  }
}

/* ==========================================================================
   Mobile Orientation Adaptation (Both Portrait & Landscape)
   ========================================================================== */

/* 1. Mobile Portrait (< 768px in portrait) */
@media (max-width: 768px) and (orientation: portrait), (max-width: 500px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand-title {
    font-size: clamp(2.1rem, 9.2vw, 3.2rem);
  }

  .brand-tagline {
    font-size: clamp(0.85rem, 3.4vw, 1.05rem);
  }


  .exchange-header {
    gap: 8px;
    align-items: baseline;
  }

  .exchange-title {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
    letter-spacing: -0.03em;
  }

  .exchange-price {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .exchange-address {
    font-size: clamp(0.8rem, 3.4vw, 1rem);
    margin-top: 3px;
  }

  .conveyor-container {
    padding: 10px 0;
  }

  .conveyor-item {
    font-size: 12px;
    padding: 0 14px;
    gap: 6px;
  }

  .conveyor-track {
    animation-duration: 32s;
  }

  .about-container {
    padding: 24px 20px 60px;
  }

  .about-lines {
    gap: 20px;
  }

  .zoom-line {
    font-size: clamp(1.02rem, 3.8vw, 1.28rem);
    line-height: 1.55;
  }

  .zoom-line:hover {
    transform: translateX(4px);
  }
}

/* 2. Mobile Landscape (max-height: 550px in landscape or any short viewport) */
@media (orientation: landscape) and (max-height: 550px), (max-height: 500px) {
  .site-container {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .site-header {
    padding: 8px 18px;
  }

  .nav-link {
    font-size: 12px;
    padding: 4px 10px;
  }

  .hero-section {
    padding: 4px 16px;
  }

  .brand-title {
    font-size: clamp(1.55rem, 5.2vh, 2.35rem);
    margin-bottom: 2px;
  }

  .brand-tagline {
    font-size: clamp(0.72rem, 2.5vh, 0.88rem);
    line-height: 1.2;
  }


  .exchange-card {
    max-width: 44vw;
  }

  .exchange-header {
    gap: 6px;
    align-items: baseline;
  }

  .exchange-title {
    font-size: clamp(0.92rem, 3.6vh, 1.22rem);
    line-height: 1.1;
  }

  .exchange-price {
    font-size: clamp(0.82rem, 3.2vh, 1.05rem);
  }

  .exchange-address {
    font-size: clamp(0.68rem, 2.4vh, 0.82rem);
    margin-top: 1px;
  }

  .conveyor-container {
    padding: 6px 0;
  }

  .conveyor-item {
    font-size: 11px;
    padding: 0 10px;
    gap: 5px;
  }

  .conveyor-track {
    animation-duration: 28s;
  }

  /* About page in mobile landscape */
  .about-container {
    padding: 12px 20px 40px;
  }

  .about-header {
    padding: 4px 0 16px;
  }

  .about-lines {
    gap: 14px;
  }

  .zoom-line {
    font-size: clamp(0.92rem, 3.4vh, 1.15rem);
    line-height: 1.45;
  }

  .zoom-line.hero-line {
    font-size: clamp(1.05rem, 4vh, 1.35rem);
  }

  .zoom-line:hover {
    transform: translateX(4px);
  }
}

/* 3. Ultra-compact devices (< 380px portrait) */
@media (max-width: 380px) and (orientation: portrait) {
  .brand-title {
    font-size: 2.15rem;
  }
  .exchange-title {
    font-size: 1.15rem;
  }
  .exchange-address {
    font-size: 0.78rem;
  }
}

/* Careers Wrapper & Sticky Running Conveyor */
.careers-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
}

.careers-conveyor {
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 0;
  overflow: hidden;
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 40;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.conveyor-math-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  padding: 0 18px;
  letter-spacing: -0.01em;
}

.conveyor-math-item strong {
  color: #000000;
  font-weight: 600;
}

/* Products & Page Wrappers */
.products-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
}

.coming-soon-tag {
  display: inline-block;
  font-size: 0.6em;
  font-weight: 400;
  color: #666666;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* ==========================================================================
   Products, Matte Cranberry & Interactive Shower (Jane Street / Citadel Polish)
   ========================================================================== */

/* Page Wrapper */
.products-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
}

.coming-soon-tag {
  display: inline-block;
  font-size: 0.58em;
  font-weight: 450;
  color: #777777;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* Institutional Matte Cranberry Accent — Strictly Zero Neon & Zero Glow */
.cranberry-word {
  color: var(--color-cranberry) !important;
  cursor: pointer !important;
  display: inline-block;
  font-weight: 600 !important;
  letter-spacing: inherit;
  text-rendering: optimizeLegibility;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  animation: cranberrySubtleFloat 5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes cranberrySubtleFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.8px);
  }
  100% {
    transform: translateY(0);
  }
}

.zoom-line:hover .cranberry-word,
.cranberry-word:hover {
  color: var(--color-cranberry-hover) !important;
  transform: translateY(-1px) !important;
  /* Strictly matte — no drop-shadows or text-shadows */
}

.cranberry-word:active,
.cranberry-word.cranberry-pressed {
  transform: scale(0.95) translateY(0) !important;
  transition: transform 0.08s ease !important;
}

/* Bottom Conveyor Ticker */
.careers-conveyor,
.bottom-conveyor {
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 13px 0;
  overflow: hidden;
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 40;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.conveyor-math-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  padding: 0 18px;
  letter-spacing: -0.01em;
}

.conveyor-math-item strong {
  color: #000000;
  font-weight: 600;
}

/* Fullscreen Shower Container */
#cranberry-shower-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
}

.falling-cranberry {
  position: fixed;
  top: -100px;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: fallDownAndSway;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: forwards;
}

.falling-cranberry img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

@keyframes fallDownAndSway {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rot-start, 0deg));
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift-x, 0px), calc(100vh + 160px), 0) rotate(var(--rot-end, 360deg));
    opacity: 0.95;
  }
}
