/* ============================================================
   OXYCELL FX — site-wide award-polish layer.
   Grain, cursor, magnets, ambient video, particle mounts,
   and the home "science band". All reduced-motion safe.
   ============================================================ */

/* film grain (subtle, above content, never blocks) */
.oxfx-grain { position: fixed; inset: -100px; z-index: 95; pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: oxfxGrain 9s steps(10) infinite; }
@keyframes oxfxGrain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-3%,-2%); } 20% { transform: translate(2%,3%); }
  30% { transform: translate(-2%,1%); } 40% { transform: translate(3%,-1%); } 50% { transform: translate(-1%,2%); }
  60% { transform: translate(2%,-3%); } 70% { transform: translate(-3%,2%); } 80% { transform: translate(1%,1%); } 90% { transform: translate(-1%,-2%); } }

/* cursor follower */
.oxfx-cursor { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(143,193,231,0.55) 45%, rgba(143,193,231,0) 75%);
  mix-blend-mode: screen; transition: width .25s ease, height .25s ease, opacity .3s ease; opacity: 0; }
.oxfx-cursor.is-on { opacity: 1; }
.oxfx-cursor.is-big { width: 52px; height: 52px; }
@media (hover: none), (pointer: coarse) { .oxfx-cursor { display: none; } }

/* magnetic elements */
.oxfx-magnet { transition: transform .25s cubic-bezier(.22,.61,.36,1); will-change: transform; }

/* ambient video layers */
.ox-ambient, .sci-ambient { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.ox-ambient.is-on { opacity: .5; }
.sci-ambient.is-on { opacity: .5; }

/* particle mounts */
[data-ox-particles] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---- home science band ---- */
.ox-sciband { position: relative; overflow: hidden; isolation: isolate; min-height: 78vh; display: flex; align-items: center;
  background: radial-gradient(120% 90% at 50% 0%, rgb(20,42,62) 0%, rgb(9,21,33) 55%, rgb(3,8,15) 100%); }
.ox-sciband::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,8,15,0.5) 0%, rgba(3,8,15,0.12) 35%, rgba(3,8,15,0.55) 100%); }
.ox-sciband__content { position: relative; z-index: 2; max-width: calc(var(--ox-max) + 2 * var(--ox-pad-x)); width: 100%; margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) var(--ox-pad-x); }
.ox-sciband__title { font-family: var(--ox-serif); font-weight: 400; font-size: clamp(48px, 7vw, 120px); line-height: .95;
  letter-spacing: .01em; color: #fff; margin: 14px 0 0; }
.ox-sciband__body { margin: 24px 0 0; max-width: 540px; font-family: var(--ox-sans); font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: rgba(209,230,255,0.72); }
.ox-sciband__cta { margin-top: 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ox-sciband__chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; border: 1px solid rgba(143,193,231,0.35);
  border-radius: 999px; font-family: var(--ox-sans); font-size: 12px; letter-spacing: .08em; color: rgba(209,230,255,0.85); text-transform: uppercase; }
.ox-sciband__chip em { font-style: normal; font-family: var(--ox-serif); font-size: 19px; color: #fff; }

/* ---- science band v2: 101 figures + enhanced-medicine cards ---- */
.ox-sciband__figs { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px); border-top: 1px solid rgba(143,193,231,0.18); padding-top: clamp(28px, 3.5vw, 44px); }
.ox-scifig__num { font-family: var(--ox-serif); font-size: clamp(34px, 3.6vw, 56px); line-height: 1; color: #fff; }
.ox-scifig__label { margin-top: 10px; font-family: var(--ox-sans); font-weight: 300; font-size: 13px; line-height: 1.5;
  color: rgba(209,230,255,0.6); max-width: 220px; }
.ox-sciband__quote { margin: clamp(48px, 6vw, 76px) 0 0; font-family: var(--ox-serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px); line-height: 1.4; color: rgba(225,240,255,0.88); max-width: 720px; }
.ox-sciband__cards { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.ox-scicard { background: rgba(13,28,43,0.55); border: 1px solid rgba(143,193,231,0.16); border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s ease; }
.ox-scicard:hover { border-color: rgba(143,193,231,0.4); }
.ox-scicard__media { aspect-ratio: 16/10; overflow: hidden; }
.ox-scicard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.ox-scicard:hover .ox-scicard__media img { transform: scale(1.04); }
.ox-scicard h3 { margin: 18px 20px 0; font-family: var(--ox-sans); font-weight: 500; font-size: 16px; letter-spacing: .01em; color: #fff; }
.ox-scicard p { margin: 8px 20px 22px; font-family: var(--ox-sans); font-weight: 300; font-size: 13.5px; line-height: 1.55; color: rgba(209,230,255,0.62); }
.ox-sciband .ox-arrowlink--light { margin-top: clamp(28px, 3.5vw, 40px); display: inline-flex; color: rgba(209,230,255,0.85); }
.ox-sciband .ox-arrowlink--light:hover { color: #fff; }
@media (max-width: 900px) {
  .ox-sciband__figs { grid-template-columns: repeat(2, 1fr); }
  .ox-sciband__cards { grid-template-columns: 1fr; }
}

/* ---- trust band (social proof, from /about/#athletes) ---- */
.ox-trust { background: rgb(244,247,250); }
.ox-trust__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.ox-trust__body { margin: 22px 0 0; max-width: 520px; font-family: var(--ox-sans); font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: rgba(19,28,40,0.72); }
.ox-trust__chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.ox-trust__chips span { padding: 9px 16px; border: 1px solid rgba(19,28,40,0.16); border-radius: 999px;
  font-family: var(--ox-sans); font-size: 12.5px; letter-spacing: .04em; color: rgba(19,28,40,0.78); background: #fff; }
.ox-trust .ox-arrowlink { margin-top: 30px; }
.ox-trust__media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(19,28,40,0.16); }
.ox-trust__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/4.6; }
@media (max-width: 900px) {
  .ox-trust__grid { grid-template-columns: 1fr; }
  .ox-trust__media { order: -1; max-height: 420px; }
  .ox-trust__media img { aspect-ratio: auto; max-height: 420px; }
}

/* ---- trust band: testimonial facades (click-to-play Vimeo) ---- */
.ox-trust__words { margin-top: clamp(56px, 7vw, 96px); }
.ox-trust__subtitle { margin: 14px 0 0; font-family: var(--ox-serif); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; color: rgb(19,28,40); max-width: 640px; }
.ox-trust__testi { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.ox-testi__media { position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: rgb(19,28,40); }
.ox-testi__bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(22px) saturate(1.1) brightness(.85); transform: scale(1.25); }
.ox-testi__fg { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: calc(100% * 9 / 16); background-size: cover; background-position: center; z-index: 1;
  transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.ox-testi:not(.is-playing) .ox-testi__media:hover .ox-testi__fg { transform: translateX(-50%) scale(1.04); }
.ox-testi__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  background: linear-gradient(180deg, rgba(19,28,40,0) 55%, rgba(19,28,40,0.45) 100%); cursor: pointer; z-index: 2; }
.ox-testi__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: rgb(19,28,40); backdrop-filter: blur(4px);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), background .3s ease; }
.ox-testi__btn svg { width: 22px; height: 22px; margin-left: 3px; }
.ox-testi__play:hover .ox-testi__btn { transform: translate(-50%,-50%) scale(1.1); background: #fff; }
.ox-testi.is-playing .ox-testi__fg { display: none; }
.ox-testi.is-playing .ox-testi__play { display: none; }
.ox-testi__stop { display: none; position: absolute; top: 10px; right: 10px; z-index: 5; width: 34px; height: 34px;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center;
  background: rgba(10,16,26,0.62); color: #fff; backdrop-filter: blur(6px);
  transition: background .25s ease, transform .25s ease; }
.ox-testi__stop svg { width: 15px; height: 15px; }
.ox-testi__stop:hover { background: rgba(10,16,26,0.9); transform: scale(1.1); }
.ox-testi.is-playing .ox-testi__stop { display: flex; }
.ox-testi iframe { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: calc(100% * 9 / 16); border: 0; z-index: 3; } /* 9:16 video inside the square box */
.ox-testi__meta { margin-top: 12px; }
.ox-testi__meta strong { display: block; font-family: var(--ox-sans); font-weight: 500; font-size: 14.5px; color: rgb(19,28,40); }
.ox-testi__meta span { display: block; margin-top: 2px; font-family: var(--ox-sans); font-weight: 300; font-size: 12.5px; letter-spacing: .03em; color: rgba(19,28,40,0.55); }
@media (max-width: 1100px) { .ox-trust__testi { grid-template-columns: repeat(2, 1fr); } }
/* mobile: vertical 9:16 cards, two-up — portrait fills the card, video plays full-card */
@media (max-width: 640px) {
  .ox-trust__testi { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ox-testi__media { aspect-ratio: 9/16; }
  .ox-testi__fg { width: 100%; }
  .ox-testi iframe { width: 100%; }
  .ox-testi__btn { width: 46px; height: 46px; }
  .ox-testi__meta strong { font-size: 13px; }
  .ox-testi__meta span { font-size: 11px; }
}

/* ---- OS/O₂ band (the differentiator, from /about/#software) ---- */
.ox-osband { background: #fff; }
.ox-osband__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.ox-osband__media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(19,28,40,0.18); }
.ox-osband__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/4.8; }
.ox-osband__body { margin: 22px 0 0; max-width: 560px; font-family: var(--ox-sans); font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: rgba(19,28,40,0.72); }
.ox-osband__cycle { margin-top: 26px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 18px; border: 1px solid rgba(19,28,40,0.12); border-radius: 999px; background: rgb(247,249,252); }
.ox-osband__cycle span { font-family: var(--ox-sans); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: rgba(19,28,40,0.78); }
.ox-osband__cycle em { font-style: normal; color: rgb(143,193,231); }
.ox-osband__points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.ox-osband__points li { position: relative; padding-left: 26px; font-family: var(--ox-sans); font-weight: 300;
  font-size: 14.5px; line-height: 1.6; color: rgba(19,28,40,0.68); max-width: 560px; }
.ox-osband__points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid rgb(143,193,231); }
.ox-osband__points strong { font-weight: 500; color: rgb(19,28,40); }
.ox-osband__tag { margin: 26px 0 0; font-family: var(--ox-serif); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); color: rgb(19,28,40); }
.ox-osband .ox-arrowlink { margin-top: 18px; }
@media (max-width: 900px) {
  .ox-osband__grid { grid-template-columns: 1fr; }
  .ox-osband__media { max-height: 440px; }
  .ox-osband__media img { aspect-ratio: auto; max-height: 440px; }
}

/* ---- safety & standards band (ASME) — distinct section, set apart by a
   subtle tint so safety reads as its own statement, not part of ownership ---- */
.ox-asme { background: linear-gradient(180deg, rgb(248,250,252), rgb(243,246,250)); }
.ox-asme .ox-ownchip { background: #fff; }
.ox-asme .ox-own__asmelink { margin-bottom: 0; }

/* ---- ownership band (white-glove delivery / warranty / concierge / financing) ---- */
.ox-own__asme { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(28px, 3.5vw, 44px); }
.ox-asmecard { padding: 26px 26px 28px; border: 1px solid rgba(19,28,40,0.1); border-radius: 18px; background: #fff; }
.ox-asmecard__num { font-family: var(--ox-serif); font-size: 15px; color: rgb(176,30,36); letter-spacing: .08em; }
.ox-asmecard h3 { margin: 12px 0 0; font-family: var(--ox-sans); font-weight: 500; font-size: 16.5px; color: rgb(19,28,40); }
.ox-asmecard p { margin: 9px 0 0; font-family: var(--ox-sans); font-weight: 300; font-size: 13.5px; line-height: 1.6; color: rgba(19,28,40,0.62); }
@media (max-width: 900px) { .ox-own__asme { grid-template-columns: 1fr; } }

/* ---- ownership band (ASME + OS/O₂ + white-glove, from /about/) ---- */
.ox-own__head { max-width: 820px; margin-bottom: clamp(36px, 4.5vw, 56px); }
/* ASME U-stamp lockup — puts the certification mark beside the headline so the
   section reads as ASME-first, not buried */
.ox-own__lockup { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
/* real ASME U Certification Mark (PNG, transparent line-art) */
.ox-ustamp { flex: none; display: block; width: clamp(66px, 7vw, 94px); height: auto; }
@media (max-width: 560px) { .ox-own__lockup { gap: 16px; align-items: flex-start; } .ox-ustamp { width: 58px; margin-top: 4px; } }
.ox-own__intro { margin: 22px 0 0; font-family: var(--ox-sans); font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: rgba(19,28,40,0.72); }
.ox-own__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.ox-ownchip { padding: 22px 22px 24px; border: 1px solid rgba(19,28,40,0.1); border-radius: 16px; background: rgb(247,249,252); }
.ox-ownchip strong { display: block; font-family: var(--ox-serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; color: rgb(19,28,40); }
.ox-ownchip span { display: block; margin-top: 9px; font-family: var(--ox-sans); font-weight: 300; font-size: 12.5px; line-height: 1.5; color: rgba(19,28,40,0.6); }
.ox-own__asmelink { margin: 24px 0 clamp(44px, 5.5vw, 68px); display: inline-flex; font-size: 14px; }
.ox-own__finance { margin-top: clamp(36px, 4.5vw, 56px); padding: 20px 26px; display: flex; align-items: center;
  flex-wrap: wrap; gap: 18px; border: 1px solid rgba(19,28,40,0.1); border-radius: 16px; background: rgb(247,249,252); }
.ox-own__finchip { padding: 8px 16px; border-radius: 999px; background: rgb(19,28,40); color: #fff;
  font-family: var(--ox-sans); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.ox-own__finance p { margin: 0; flex: 1 1 320px; font-family: var(--ox-sans); font-weight: 300;
  font-size: 14px; line-height: 1.55; color: rgba(19,28,40,0.68); }
@media (max-width: 900px) {
  .ox-own__chips { grid-template-columns: repeat(2, 1fr); }
}

/* closing sections that host ambient video need stacking context */
.ox-closing { isolation: isolate; position: relative; overflow: hidden; }
.ox-closing__inner { position: relative; z-index: 2; }
.ox-closing .ox-ambient.is-on { opacity: .32; }

/* chambers page-hero particles sit under content */
.ox-pagehero { position: relative; overflow: hidden; isolation: isolate; }
.ox-pagehero__inner { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .oxfx-grain { animation: none; }
  .ox-ambient, .sci-ambient { display: none; }
  .oxfx-cursor { display: none; }
  .oxfx-magnet { transition: none; }
}
