/* MYRIQS Web v3: one continuous sample journey, light theme only.
   Radius rule: buttons and inputs 8px, media and panels 12px, full-bleed media 0. */
:root {
  --ink: #1B1F22;
  --slate: #2D353D;
  --body: #4A5259;
  --mute: #6F787F;
  --line: #DDE2E5;
  --field: #7F8A91;
  --canvas: #ffffff;
  --mist: #F3F5F6;
  --aqua: #3DB5B5;
  --aqua-deep: #0D3B3D;
  --aqua-pale: #E4F5F3;
  --cell-pbmc: #7CCB7E;
  --cell-rbc: #E2493B;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --gap: clamp(96px, 13vw, 176px);
  --header: 68px;
  --fast: 150ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0; background: var(--canvas); color: var(--body); font-family: var(--font);
  font-size: 17px; line-height: 1.65; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aqua-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 60; width: auto; height: auto; clip: auto; padding: 8px 12px; background: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 700; max-width: 18em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; letter-spacing: -0.015em; max-width: 34em; margin-top: 20px; }
.note { font-size: 13px; color: var(--mute); line-height: 1.55; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow var(--fast) ease-out; }
.header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--body); padding-block: 6px; box-shadow: 0 0 0 transparent; transition: color var(--fast) ease-out, box-shadow var(--fast) ease-out; }
.nav a[aria-current="true"] { color: var(--ink); box-shadow: 0 2px 0 var(--aqua); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9999px; padding: 2px; }
.lang button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--mute); padding: 4px 10px; border-radius: 9999px; cursor: pointer; transition: background-color var(--fast) ease-out, color var(--fast) ease-out; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 1023px) { .nav { display: none; } .header__actions { margin-left: auto; } }
@media (max-width: 639px) { .header__actions .btn { display: none; } .header__logo img { height: 26px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 8px;
  border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--ink); color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) ease-out, scale var(--fast) ease-out;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.link { font-weight: 600; color: var(--ink); text-decoration-color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (hover: hover) { .btn:hover { background: var(--aqua-deep); } .nav a:hover { color: var(--ink); } .lang button:not([aria-pressed="true"]):hover { color: var(--ink); } .link:hover { color: var(--aqua-deep); } }
@media (prefers-reduced-motion: no-preference) { .btn:not(:disabled):active { scale: 0.96; } }

/* Hero: the render dissolves into the page instead of sitting in a box */
.hero { position: relative; min-height: calc(100dvh - var(--header)); display: grid; align-items: center; overflow: clip; }
.hero__copy { position: relative; z-index: 1; padding-block: 48px; }
.hero__title { font-size: clamp(38px, 4.2vw, 62px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; max-width: 9.6em; }
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin-top: 24px; max-width: 21em; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.hero__media { position: absolute; top: 50%; right: 0; width: min(66vw, 1040px); translate: 0 -50%; }
.hero__media img {
  width: 100%; height: auto;
  /* Only the blurred lab background fades; the device starts 21% in and stays solid */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 19%), linear-gradient(0deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 19%), linear-gradient(0deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero__caption { position: absolute; right: var(--gutter); bottom: 0; font-size: 13px; color: var(--mute); }
@media (max-width: 1023px) {
  .hero { min-height: 0; display: block; }
  .hero__copy { padding-block: 40px 0; }
  .hero__media { position: relative; top: auto; right: auto; translate: none; width: 100%; margin-top: 12px; }
  .hero__media img { -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 14%); mask-image: linear-gradient(0deg, transparent 0, #000 14%); }
  .hero__caption { bottom: 4px; }
}

/* Tube: the page's one big moment. The section is tall, the stage sticks, scroll is the timeline. */
.tube { position: relative; height: 560vh; }
.tube__stage { position: sticky; top: var(--header); height: calc(100dvh - var(--header)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.tube__view { position: relative; height: 100%; min-width: 0; }
.tube__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tube__copy { position: relative; height: 60%; }
.tube__step { position: absolute; inset: 0 0 auto 0; opacity: 0; }
.tube__step:first-child { opacity: 1; }
.tube__h { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 700; }
.tube__step p { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; margin-top: 18px; max-width: 28em; }
.tube__uses { font-size: 15px !important; color: var(--mute); }
.co { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; pointer-events: none; will-change: transform, opacity; }
.co::before { content: ""; width: 28px; height: 1px; background: var(--field); }
.co b { display: block; font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.co span { display: block; font-size: 14px; color: var(--body); margin-top: 4px; }
.co--plain span { margin-top: 0; }
.co--band b { font-weight: 600; color: var(--aqua-deep); }
.is-static .tube { height: auto; padding-block: 32px; }
.is-static .tube__stage { position: static; height: auto; grid-template-columns: 1fr; }
.is-static .tube__view { height: 70vh; }
.is-static .tube__copy { height: auto; display: grid; gap: 40px; }
.is-static .tube__step { position: static; opacity: 1 !important; transform: none !important; }
.is-static .co { display: none; }
@media (max-width: 860px) {
  .tube__stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
  .tube__copy { height: 100%; }
  .tube__h { font-size: 26px; }
  .tube__step p { font-size: 16px; margin-top: 10px; }
  .co::before { width: 14px; }
  .co { gap: 8px; }
  .co b { font-size: 28px; }
  .co span { font-size: 13px; margin-top: 2px; }
}

/* Problem: bar widths are minutes, so the eye sees where the time goes */
.problem { padding-block: clamp(48px, 6vw, 88px) 0; }
.line { display: flex; gap: 6px; margin-top: 64px; }
.seg { --f: 0; flex: var(--m) 1 0; min-width: 0; }
.seg__bar { height: 14px; background: var(--mist); overflow: hidden; }
.seg__bar i { display: block; height: 100%; background: var(--slate); transform: scaleX(var(--f)); transform-origin: left; }
.seg.is-risk .seg__bar i { background: var(--aqua); }
.seg__name { display: block; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.3; margin-top: 14px; }
.seg__time { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.seg__flag { display: block; font-size: 13px; font-weight: 600; color: var(--aqua-deep); margin-top: 6px; line-height: 1.35; }
.is-static .seg { --f: 1; }
.facts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; margin-top: clamp(56px, 7vw, 96px); align-items: end; }
.fact:nth-child(1) { grid-column: 1 / span 5; }
.fact:nth-child(2) { grid-column: 6 / span 3; }
.fact:nth-child(3) { grid-column: 9 / span 4; }
.fact b { display: block; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; font-size: clamp(38px, 4.4vw, 64px); }
.fact:nth-child(1) b { font-size: clamp(52px, 7.6vw, 112px); }
.fact span { display: block; margin-top: 10px; font-size: 15px; }
.problem .note { margin-top: 28px; }
@media (max-width: 760px) {
  .line { flex-direction: column; gap: 12px; }
  .seg { display: grid; grid-template-columns: 10px 1fr; column-gap: 16px; flex: none; }
  .seg__bar { grid-row: 1 / span 3; width: 10px; height: auto; min-height: calc(var(--m) * 3px + 44px); }
  .seg__bar i { transform: scaleY(var(--f)); transform-origin: top; }
  .seg__name { margin-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(1) { grid-column: 1 / -1; }
  .fact:nth-child(2), .fact:nth-child(3) { grid-column: auto; }
}

/* Solution: the video opens from inset to the full width of the screen */
.solution { padding-top: var(--gap); }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; max-width: 980px; }
.route strong { display: block; color: var(--ink); font-size: 17px; }
.route span { font-size: 15px; line-height: 1.5; display: block; margin-top: 4px; }
.sep { margin-top: 56px; }
.sep__media { position: relative; }
.sep__media video, .sep__media img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 668; object-fit: cover; background: var(--mist); }
.sep__toggle { position: absolute; right: var(--gutter); bottom: 16px; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: rgba(27,31,34,.72); color: #fff; cursor: pointer; transition: background-color var(--fast) ease-out; }
.sep__icon { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; fill: currentColor; transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1); }
.sep__icon--play { opacity: 0; translate: 1px 0; }
.sep__toggle[aria-pressed="true"] .sep__icon--play { opacity: 1; }
.sep__toggle[aria-pressed="true"] .sep__icon--pause { opacity: 0; }
@media (hover: hover) { .sep__toggle:hover { background: var(--ink); } }
.sep__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 16px; }
.sep__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.sep__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { border-radius: 50%; display: inline-block; }
.dot--pbmc { width: 14px; height: 14px; background: var(--cell-pbmc); }
.dot--rbc { width: 8px; height: 8px; background: var(--cell-rbc); }
@media (max-width: 639px) {
  .route { grid-template-columns: 1fr; gap: 16px; }
  .sep__media video, .sep__media img { aspect-ratio: 8 / 5; object-position: 40% center; }
  .sep__toggle { right: auto; left: 8px; bottom: 8px; }
}

/* Kit: choosing a part moves the camera on the product render */
.kit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: var(--gap); }
.kit__frame { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10.5; background: var(--mist); }
.kit__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0, 0, 1); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.kit__frame[data-view="chip"] { --ox: 80%; --oy: 86%; }
.kit__frame[data-view="chip"] img { transform: scale(2.3); }
.kit__frame[data-view="software"] { --ox: 38%; --oy: 40%; }
.kit__frame[data-view="software"] img { transform: scale(1.6); }
.kit__item { display: block; width: 100%; padding: 18px 0 18px 20px; border: 0; border-left: 2px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color var(--fast) ease-out; }
.kit__item[aria-pressed="true"] { border-left-color: var(--aqua); }
.kit__item b { display: block; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; color: var(--mute); transition: color var(--fast) ease-out; }
.kit__item[aria-pressed="true"] b { color: var(--ink); }
.kit__item span { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms cubic-bezier(0.2, 0, 0, 1); font-size: 16px; line-height: 1.55; }
.kit__item span > em { overflow: hidden; font-style: normal; }
.kit__item[aria-pressed="true"] span { grid-template-rows: 1fr; }
.kit__item[aria-pressed="true"] span > em { padding-top: 8px; }
@media (hover: hover) { .kit__item:hover b { color: var(--ink); } }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; } }

/* Target: same time axis as the manual bar */
.target { margin-top: var(--gap); padding-block: clamp(72px, 9vw, 120px); background: var(--aqua-pale); }
.axis { margin-top: 48px; display: grid; gap: 28px; max-width: 1040px; }
.axis__row { --w: 0; }
.axis__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--ink); font-weight: 600; }
.axis__label b { font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.axis__bar { height: 16px; width: calc(var(--to) * var(--w) * 100%); margin-top: 8px; background: var(--aqua-deep); }
.axis__row--now .axis__bar { background: linear-gradient(90deg, var(--field) var(--solid), transparent var(--solid)), repeating-linear-gradient(135deg, var(--field) 0 2px, transparent 2px 7px); }
.is-static .axis__row { --w: 1; }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px clamp(40px, 7vw, 104px); margin-top: 56px; }
.specs b { display: block; font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.specs span { font-size: 15px; }
.target .note { margin-top: 32px; color: var(--aqua-deep); font-size: 14px; font-weight: 500; }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } }

/* Who: the choice travels down to the form */
.who { padding-top: var(--gap); }
.who__opts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 40px; }
.who__opt { padding: 4px 0; border: 0; background: none; font: inherit; font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: var(--mute); cursor: pointer; box-shadow: 0 0 0 transparent; transition: color var(--fast) ease-out, box-shadow var(--fast) ease-out; }
.who__opt[aria-pressed="true"] { color: var(--ink); box-shadow: 0 3px 0 var(--aqua); }
@media (hover: hover) { .who__opt:hover { color: var(--ink); } }
.who__answer { margin-top: 32px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); min-height: 3.4em; }
.who__answer + .btn { margin-top: 20px; }

/* Milestones: a real timeline, so it scrolls sideways */
.miles { padding-top: var(--gap); }
.rail { display: flex; gap: 0; margin-top: 40px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-bottom: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scrollbar-width: thin; overscroll-behavior-x: contain; }
.rail li { flex: 0 0 min(320px, 76vw); padding: 20px 32px 0 0; border-top: 2px solid var(--line); scroll-snap-align: start; }
.rail time { font-size: 14px; font-weight: 600; color: var(--aqua-deep); font-variant-numeric: tabular-nums; }
.rail b { display: block; color: var(--ink); font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; margin-top: 8px; }
.rail span { display: block; font-size: 15px; margin-top: 6px; }

/* About */
.about { padding-top: var(--gap); }
.quote { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); max-width: 17em; }
.quote i { font-style: normal; }
.about__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 48px; }
.about__list { display: grid; gap: 10px; }
.about__list li { padding-left: 18px; position: relative; font-size: 16px; }
.about__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--aqua); }
.about .note { margin-top: 20px; font-size: 14px; }
@media (max-width: 860px) { .about__body { grid-template-columns: 1fr; } }

/* Partner */
.partner { padding-block: var(--gap) clamp(72px, 9vw, 120px); }
.partner__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.offer { margin-top: 36px; display: grid; gap: 20px; }
.offer strong { display: block; color: var(--ink); font-size: 18px; }
.offer span { font-size: 16px; }
.form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); background: var(--mist); border-radius: 12px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.field select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234A5259' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.field ::placeholder { color: var(--mute); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--aqua-deep); outline: 2px solid rgba(61,181,181,.4); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .note a { color: var(--ink); }
@media (max-width: 860px) { .partner__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding-block: 48px; box-shadow: inset 0 1px 0 var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; font-size: 15px; }
.footer__logo img { height: 30px; width: auto; }
.footer p { margin-top: 4px; }
.footer__grid > div > p:first-of-type { margin-top: 12px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; font-size: 13px; color: var(--mute); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
