/* Use cases: all motion is activated by an intersection observer. */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.nav-links a[aria-current="page"] { color: var(--cyan); background: var(--glass); }
.mobile-menu { visibility: hidden; overflow-y: auto; }
.mobile-menu.open { visibility: visible; }
.uc-hero { align-items: center; text-align: center; background: var(--ink); }
.uc-hero-inner { position: relative; padding-block: 150px 105px; }
.uc-hero h1 { max-width: 10.8em; margin: 24px auto; font-size: clamp(48px, 7.8vw, 108px); text-wrap: balance; }
.uc-hero .lede { max-width: 37em; margin-inline: auto; }
.uc-aurora, .uc-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.uc-aurora { overflow: hidden; }
.uc-aurora i { position: absolute; width: 95%; height: 100%; left: -26%; top: -26%; background: radial-gradient(ellipse, rgba(8,146,141,.29), transparent 65%); filter: blur(35px); }
.uc-aurora i:nth-child(2) { left: 30%; top: 0; background: radial-gradient(ellipse, rgba(4,114,115,.35), transparent 64%); }
.uc-aurora i:nth-child(3) { width: 75%; left: 15%; top: 38%; background: radial-gradient(ellipse, rgba(118,230,211,.11), transparent 65%); }
.uc-hero.is-visible .uc-aurora i { animation: uc-drift 26s ease-in-out infinite alternate; }
.uc-hero.is-visible .uc-aurora i:nth-child(2) { animation-duration: 32s; animation-direction: alternate-reverse; }
.uc-hero.is-visible .uc-aurora i:nth-child(3) { animation-duration: 23s; }
.uc-grid { background-image: linear-gradient(rgba(118,230,211,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(118,230,211,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000, transparent 72%); }
.uc-viewfinder { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; width: fit-content; max-width: 100%; margin: 46px auto 0; padding: 24px 30px; font-size: clamp(16px, 1.8vw, 23px); color: var(--steel); }
.uc-viewfinder p { min-width: 0; }
.uc-lead { margin-right: .3em; }
html[lang="ja"] .uc-lead { margin-right: .15em; }
/* use-cases.js sizes this to the active phrase so the full stop follows it without a gap */
.uc-objects { display: inline-grid; text-align: left; vertical-align: bottom; color: var(--cyan); transition: width .5s var(--ease); }
.uc-object { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.uc-object.is-active { opacity: 1; transform: none; }
.uc-corners { position: absolute; inset: 0; pointer-events: none; }
.uc-corners i { position: absolute; width: 18px; height: 18px; border: solid var(--cyan); border-width: 0; opacity: .8; }
.uc-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 5px; }
.uc-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 5px; }
.uc-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 5px; }
.uc-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 5px; }
.uc-wave { display: inline-flex; flex: none; gap: 3px; align-items: center; height: 15px; }
.uc-wave b { display: block; width: 2px; height: 7px; border-radius: 2px; background: var(--aqua); }
.uc-wave b:nth-child(2) { height: 14px; animation-delay: .15s !important; }
.uc-wave b:nth-child(3) { height: 10px; animation-delay: .3s !important; }
.uc-wave b:nth-child(4) { height: 12px; animation-delay: .45s !important; }
.is-visible .uc-wave b { animation: wave 1.1s ease-in-out infinite; }
.uc-index { position: sticky; top: 88px; z-index: 70; display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 999px; background: rgba(7,30,31,.86); border: 1px solid var(--line-strong); box-shadow: 0 12px 40px rgba(0,0,0,.25); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow-x: auto; scrollbar-width: none; }
.uc-index::-webkit-scrollbar { display: none; }
.uc-chip { flex: 1 0 auto; padding: 12px 14px; text-align: center; border-radius: 999px; color: var(--steel); font-size: 13px; white-space: nowrap; }
.uc-chip:hover, .uc-chip.is-active { color: var(--ink); background: var(--cyan); }
.uc-chip:focus-visible { outline-offset: -3px; outline-color: #fff; }
.uc-cases { padding-top: 100px; padding-bottom: 40px; }
.uc-cases .sec-head { margin-bottom: 28px; }
.uc-cases .sec-head .title { margin-top: 16px; }
.uc-case { grid-template-columns: 1fr 1fr; padding-block: clamp(42px, 6vw, 84px); scroll-margin-top: 164px; border-bottom: 1px solid var(--line); }
.uc-case > * { min-width: 0; }
.uc-case .story-copy { order: 1; }
.uc-case .story-media { order: 2; }
.uc-case.flip .story-media { order: 0; }
.uc-case .story-copy h3 { font-size: clamp(32px, 3.5vw, 48px); max-width: 13em; text-wrap: balance; }
.uc-scene { background: radial-gradient(ellipse at 50% 20%, rgba(8,146,141,.18), transparent 68%), linear-gradient(145deg, #082a2c, var(--ink)); }
.uc-scene::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(118,230,211,.13) .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(#000, transparent 80%); }
.uc-art { position: absolute; top: 4%; left: 0; width: 100%; height: 53%; color: var(--cyan); overflow: visible; }
.uc-steel { stroke: var(--steel); opacity: .65; }
.uc-band { stroke: #53dba3; stroke-width: 7px; }
.uc-needle { transform-origin: 200px 99px; }
.uc-highlight { stroke: var(--cyan); stroke-width: 2px; }
.uc-capture { position: absolute; top: 6%; left: 19%; width: 62%; height: 49%; overflow: hidden; }
.uc-scan { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(transparent 90%, rgba(118,230,211,.08) 99%, var(--cyan)); opacity: 0; }
.uc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.uc-dialogue { position: absolute; inset: auto 5% 5%; display: flex; flex-direction: column; gap: 8px; }
.uc-bubble { max-width: 92%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(7,30,31,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: clamp(12px, 1.1vw, 14px); line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.uc-bubble strong { display: flex; align-items: center; gap: 7px; color: var(--steel); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .1em; margin-bottom: 3px; }
.uc-you { align-self: flex-end; border-bottom-right-radius: 4px; }
.uc-glimpse { align-self: flex-start; background: rgba(14,64,63,.9); border-color: rgba(118,230,211,.25); border-bottom-left-radius: 4px; }
.uc-glimpse strong { color: var(--cyan); }
.uc-glimpse .uc-wave { height: 10px; transform: scale(.75); transform-origin: left; margin-right: -3px; }
.uc-word { display: inline-block; }
.uc-clinical { display: flex; align-items: flex-start; gap: 16px; margin: 26px 0; padding: 26px 30px; border-radius: var(--radius); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.uc-clinical svg { width: 24px; height: 24px; flex: none; color: var(--steel); }
.uc-privacy { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 65em; margin: 30px auto 0; text-align: center; }
.uc-teams { padding-block: 60px 100px; }
.uc-team-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: 1px; background: var(--line-strong); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.uc-team-card::before { content: ""; position: absolute; z-index: -1; width: 180%; aspect-ratio: 1; left: -40%; top: 50%; background: conic-gradient(from 20deg, transparent 0%, var(--teal) 20%, var(--cyan) 30%, transparent 43%, transparent 60%, var(--teal) 75%, var(--cyan) 85%, transparent 95%); transform: translateY(-50%) rotate(0); }
.uc-team-card.is-visible::before { animation: uc-orbit 28s linear infinite; }
.uc-team-content { padding: clamp(32px, 6vw, 80px); border-radius: calc(var(--radius-lg) - 1px); background: radial-gradient(ellipse at top right, #103d3c, var(--ink-raised) 65%); }
.uc-team-content h2 { max-width: 13em; margin-top: 20px; }
.uc-team-content .lede { max-width: 35em; margin-top: 24px; }
.uc-team-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Initial states exist only with JS and motion enabled. No JS leaves all copy visible. */
.uc-motion .uc-drawing > * { stroke-dasharray: 100; stroke-dashoffset: 100; }
.uc-motion .uc-capture { opacity: 0; transform: scale(1.25); }
.uc-motion .uc-bubble, .uc-motion .uc-word, .uc-motion .uc-highlight, .uc-motion .uc-board-row { opacity: 0; }
.uc-motion .uc-needle { transform: rotate(-105deg); }
.uc-motion.is-entered .uc-drawing > * { animation: uc-draw 1.2s var(--ease) both; }
.uc-motion.is-entered .uc-capture { animation: uc-snap .65s .85s var(--ease) both; }
.uc-motion.is-entered .uc-scan { animation: uc-scan 1s 1.25s var(--ease) both; }
.uc-motion.is-entered .uc-flash { animation: uc-flash .5s 1.45s ease-out both; }
.uc-motion.is-entered .uc-you { animation: uc-rise .6s 1.9s var(--ease) both; }
.uc-motion.is-entered .uc-glimpse { animation: uc-rise .6s 2.65s var(--ease) both; }
.uc-motion.is-entered .uc-word { animation: uc-rise .4s calc(2.85s + var(--word) * .075s) var(--ease) both; }
.uc-motion.is-entered .uc-highlight { animation: uc-rise .8s 1.5s var(--ease) both; }
.uc-motion.is-entered .uc-needle { animation: uc-gauge 1.9s .4s var(--ease) both; }
.uc-motion.is-entered .uc-board-row { transform-origin: center; transform-box: fill-box; animation: uc-flip .7s calc(.5s + var(--row) * .22s) var(--ease) both; }
.uc-motion .uc-ecg { stroke-dasharray: 100; stroke-dashoffset: 100; }
.uc-motion.is-entered .uc-ecg { animation: uc-trace 3.4s 1.2s linear infinite; animation-play-state: paused; }
.uc-motion.is-visible .uc-ecg { animation-play-state: running; }
@keyframes uc-drift { from { transform: translate(-4%, 0) rotate(-8deg); } to { transform: translate(12%, 10%) rotate(9deg); } }
@keyframes uc-orbit { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes uc-draw { to { stroke-dashoffset: 0; } }
@keyframes uc-snap { 0% { opacity: 0; transform: scale(1.25); } 30% { opacity: .6; } 100% { opacity: 1; transform: scale(1); } }
@keyframes uc-scan { 0% { opacity: 0; transform: translateY(-100%); } 20% { opacity: .6; } 90% { opacity: .3; } 100% { opacity: 0; transform: translateY(0); } }
@keyframes uc-flash { 0%, 100% { opacity: 0; } 20% { opacity: .12; } }
@keyframes uc-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes uc-gauge { 0% { transform: rotate(-105deg); } 72% { transform: rotate(9deg); } 100% { transform: rotate(0); } }
@keyframes uc-flip { from { opacity: 0; transform: rotateX(-80deg); } to { opacity: 1; transform: rotateX(0); } }
@keyframes uc-trace { 0% { stroke-dashoffset: 100; } 65%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (max-width: 900px) {
    .uc-case { grid-template-columns: 1fr; gap: 32px; }
    .uc-case .story-copy, .uc-case .story-media, .uc-case.flip .story-media { order: initial; }
    .uc-case .story-copy h3 { max-width: 18em; }
    .uc-case .story-copy p { max-width: 40em; }
    .uc-scene { width: 100%; max-width: 620px; margin-inline: auto; }
    .uc-bubble { font-size: 15px; }
    .uc-index { top: 84px; }
    .uc-chip { padding-inline: 16px; }
}
@media (max-width: 600px) {
    .uc-hero-inner { padding-block: 128px 80px; }
    .uc-hero h1 { font-size: clamp(46px, 10vw, 60px); max-width: 9em; }
    .uc-viewfinder { margin-top: 34px; padding: 20px 15px; gap: 10px; font-size: 16px; }
    .uc-ask { display: block; }
    .uc-viewfinder > .uc-wave { position: absolute; right: 17px; bottom: 25px; }
    .uc-index { width: calc(100% - 24px); }
    .uc-cases { padding-top: 64px; }
    .uc-case { scroll-margin-top: 155px; padding-block: 42px; }
    .uc-scene { border-radius: var(--radius); }
    .uc-art { top: 3%; height: 47%; }
    .uc-capture { top: 5%; height: 43%; }
    .uc-dialogue { inset: auto 4% 4%; gap: 6px; }
    .uc-bubble { padding: 7px 10px; font-size: 12px; line-height: 1.4; max-width: 94%; border-radius: 12px; }
    .uc-bubble strong { font-size: 8px; }
    .uc-clinical { padding: 22px; gap: 12px; }
    .uc-clinical svg { width: 20px; height: 20px; }
    .uc-team-actions .btn { width: 100%; }
    .uc-team-content { padding: 32px 26px; }
    .uc-team-content h2 { font-size: 36px; }
    .uc-teams { padding-block: 40px 70px; }
    .mobile-menu { justify-content: flex-start; }
    .mobile-menu a { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .uc-motion .uc-drawing > *, .uc-motion .uc-ecg { stroke-dashoffset: 0; }
    .uc-motion .uc-capture, .uc-motion .uc-bubble, .uc-motion .uc-word, .uc-motion .uc-highlight, .uc-motion .uc-board-row { opacity: 1; transform: none; }
    .uc-motion .uc-needle { transform: none; }
    .uc-scan, .uc-flash { opacity: 0 !important; }
    .rv { opacity: 1; transform: none; }
}

html[lang="ja"] .uc-case h3, html[lang="ja"] .uc-hero h1, html[lang="ja"] .uc-teams h2, html[lang="ja"] .closing h2 { word-break: auto-phrase; text-wrap: balance; }
