:root {
  --navy-950: #05182c;
  --navy-900: #071d36;
  --navy-800: #0d2c4c;
  --blue-700: #0a5c8b;
  --blue-500: #1498c5;
  --cyan: #46cae9;
  --ink: #10283e;
  --muted: #617385;
  --line: #dbe5eb;
  --ice: #edf7fa;
  --paper: #f8fbfc;
  --white: #fff;
  --max: 1240px;
  --sans: "Avenir Next", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

svg { display: block; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--navy-950);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: white;
  border-bottom: 1px solid rgb(255 255 255 / .15);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--max));
  height: 92px;
  margin: auto;
}

.identity {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .32);
  border-radius: 50%;
}

.identity-mark svg { width: 29px; }
.identity-mark path { fill: none; stroke: var(--cyan); stroke-width: 2; }
.identity strong { display: block; font-size: 13px; letter-spacing: .14em; }
.identity small { display: block; margin-top: 4px; color: rgb(255 255 255 / .62); font-size: 9px; letter-spacing: .17em; }

.global-nav { display: flex; height: 100%; }

.global-nav a {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 24px;
  color: rgb(255 255 255 / .72);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  transition: color .25s ease, background .25s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a.is-current { color: white; background: rgb(255 255 255 / .04); }
.global-nav a::after { position: absolute; right: 24px; bottom: -1px; left: 24px; height: 2px; content: ""; background: var(--cyan); transform: scaleX(0); transition: transform .25s ease; }
.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a.is-current::after { transform: scaleX(1); }
.global-nav span { color: var(--cyan); font-size: 9px; }

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgb(5 24 44 / .98) 0%, rgb(6 30 54 / .94) 48%, rgb(7 35 62 / .84) 100%),
    radial-gradient(circle at 82% 28%, #0f6285, transparent 42%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .18;
  background-image: linear-gradient(rgb(255 255 255 / .11) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 5%, black 55%, black);
}

.hero::after {
  position: absolute;
  top: 92px;
  bottom: 0;
  left: calc(50% - 1px);
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgb(255 255 255 / .13) 20%, rgb(255 255 255 / .13) 85%, transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  width: min(calc(100% - 64px), var(--max));
  min-height: 790px;
  padding-top: 92px;
  margin: auto;
}

.hero-copy { padding: 54px 50px 54px 0; }
.eyebrow { margin: 0 0 26px; color: var(--blue-500); font-size: 10px; font-weight: 600; letter-spacing: .25em; }
.hero .eyebrow { color: var(--cyan); }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.12;
}

.hero h1 span { display: block; margin-top: 12px; color: rgb(255 255 255 / .74); font-size: clamp(19px, 2vw, 26px); font-weight: 400; letter-spacing: .08em; }
.affiliation { margin: 30px 0 0; color: rgb(255 255 255 / .68); font-size: 14px; letter-spacing: .16em; }
.lead { margin: 44px 0 20px; font-size: clamp(20px, 2.3vw, 29px); font-weight: 400; letter-spacing: .055em; line-height: 1.75; }
.intro { max-width: 570px; margin: 0; color: rgb(255 255 255 / .62); font-size: 13px; line-height: 2; }

.hero-actions { display: flex; gap: 30px; align-items: center; margin-top: 38px; }
.button { display: inline-flex; gap: 38px; align-items: center; justify-content: space-between; min-width: 228px; padding: 17px 20px; font-size: 12px; letter-spacing: .05em; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.button svg { width: 18px; fill: none; stroke: currentcolor; stroke-width: 1.4; }
.button-primary { color: var(--navy-950); background: var(--cyan); }
.button-primary:hover,
.button-primary:focus-visible { background: white; transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 16px; align-items: center; color: rgb(255 255 255 / .7); font-size: 11px; text-decoration: none; }
.text-link span { color: var(--cyan); }

.hero-visual { position: relative; display: grid; align-items: center; min-width: 0; min-height: 650px; padding-left: 22px; }
.heart-diagram { width: min(100%, 650px); margin: auto; filter: drop-shadow(0 30px 60px rgb(0 0 0 / .18)); }
.orbit { fill: none; stroke: rgb(113 213 237 / .18); stroke-width: 1; stroke-dasharray: 2 9; }
.orbit-two { stroke: rgb(255 255 255 / .09); stroke-dasharray: none; }
.measure-arc { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 34 8 3 8; opacity: .55; }
.arc-two { opacity: .3; }
.heart-outline { fill: rgb(4 26 48 / .28); stroke: rgb(109 214 238 / .5); stroke-width: 1.5; }
.conduction { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.conduction.branch { stroke-width: 1.2; opacity: .75; }
.node { fill: var(--cyan); filter: url(#softGlow); }
.node-two { fill: white; }
.ecg-line path { fill: none; stroke: #85e7f7; stroke-width: 2; stroke-linejoin: round; }
.ecg-line .ecg-glow { stroke: var(--cyan); stroke-width: 9; opacity: .17; filter: url(#softGlow); }
.ticks path { fill: none; stroke: rgb(255 255 255 / .35); stroke-width: 1; }
.visual-label { position: absolute; color: rgb(255 255 255 / .32); font-size: 8px; letter-spacing: .2em; writing-mode: vertical-rl; }
.visual-label b { color: var(--cyan); font-weight: 500; }
.visual-label-top { top: 80px; right: 20px; }
.visual-label-bottom { bottom: 62px; left: 32px; transform: rotate(180deg); }
.hero-index { position: absolute; right: max(32px, calc((100% - var(--max)) / 2)); bottom: 32px; color: rgb(255 255 255 / .32); font-size: 9px; letter-spacing: .2em; }

.section { width: min(calc(100% - 64px), var(--max)); margin: auto; }
.interests { padding: 120px 0 128px; }
.section-heading { display: grid; grid-template-columns: 56px 1fr 350px; align-items: end; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.section-number { margin: 0; color: var(--blue-500); font-size: 11px; letter-spacing: .15em; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section h2 { margin: 0; color: var(--navy-900); font-size: clamp(34px, 4.2vw, 57px); font-weight: 500; letter-spacing: -.025em; }
.section-note { max-width: 330px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.9; }

.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.interest-card { position: relative; min-height: 290px; padding: 34px 26px 28px; border-right: 1px solid var(--line); transition: background .25s, transform .25s; }
.interest-card:first-child { border-left: 1px solid var(--line); }
.interest-card:hover { z-index: 1; background: white; box-shadow: 0 20px 45px rgb(10 50 75 / .08); transform: translateY(-5px); }
.card-number { color: #9eacb7; font-size: 9px; }
.card-icon { display: grid; width: 70px; height: 70px; margin: 36px 0 30px; place-items: center; border-radius: 50%; background: var(--ice); }
.card-icon svg { width: 38px; fill: none; stroke: var(--blue-500); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.interest-card h3 { margin: 0 0 10px; color: var(--navy-900); font-size: 16px; font-weight: 500; }
.interest-card p { margin: 0; color: #8b9aa7; font-size: 10px; letter-spacing: .07em; line-height: 1.5; }

.profile {
  display: grid;
  grid-template-columns: .87fr 1.13fr;
  min-height: 660px;
  margin-bottom: 120px;
  overflow: hidden;
  color: white;
  background: var(--navy-900);
  box-shadow: 0 30px 80px rgb(6 33 56 / .12);
}

.profile-intro { position: relative; padding: 72px 72px 70px; overflow: hidden; background: linear-gradient(145deg, #0a3353, #071d36); }
.profile-intro::after { position: absolute; right: -140px; bottom: -140px; width: 400px; height: 400px; content: ""; border: 1px solid rgb(71 203 233 / .16); border-radius: 50%; box-shadow: 0 0 0 55px rgb(71 203 233 / .04), 0 0 0 110px rgb(71 203 233 / .025); }
.profile .section-number { margin-bottom: 58px; color: var(--cyan); }
.profile .eyebrow { margin-bottom: 20px; color: var(--cyan); }
.profile h2 { color: white; font-size: clamp(35px, 4vw, 51px); line-height: 1.42; }
.profile-intro > p:not(.section-number, .eyebrow) { max-width: 400px; margin: 31px 0; color: rgb(255 255 255 / .58); font-size: 12px; line-height: 2; }
.profile-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; max-width: 360px; padding: 18px 0; border-top: 1px solid rgb(255 255 255 / .22); border-bottom: 1px solid rgb(255 255 255 / .22); color: white; font-size: 11px; text-decoration: none; }
.profile-link span { color: var(--cyan); font-size: 18px; transition: transform .2s; }
.profile-link:hover span { transform: translate(3px, -3px); }

.qualifications { padding: 66px 72px; background: white; color: var(--ink); }
.qualifications-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 24px; border-bottom: 2px solid var(--navy-900); }
.qualifications-heading h3 { margin: 0; color: var(--navy-900); font-size: 21px; font-weight: 500; }
.qualifications-heading span { color: #91a0ad; font-size: 8px; letter-spacing: .14em; }
.qualifications ul { padding: 0; margin: 0; list-style: none; }
.qualifications li { display: grid; grid-template-columns: 42px 1fr; align-items: center; min-height: 59px; border-bottom: 1px solid var(--line); font-size: 13px; }
.qualifications li span { color: var(--blue-500); font-size: 9px; letter-spacing: .1em; }

.next-section { padding: 105px max(32px, calc((100% - var(--max)) / 2)) 120px; color: white; background: #0b3150; }
.next-section .eyebrow { color: var(--cyan); }
.next-section h2 { max-width: 850px; margin: 0 0 65px; font-size: clamp(34px, 5vw, 61px); font-weight: 400; letter-spacing: .02em; line-height: 1.45; }
.next-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgb(255 255 255 / .2); }
.next-links a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 7px; padding: 32px 28px 28px 0; border-bottom: 1px solid rgb(255 255 255 / .2); text-decoration: none; transition: padding .25s, background .25s; }
.next-links a:first-child { padding-right: 40px; border-right: 1px solid rgb(255 255 255 / .2); }
.next-links a:last-child { padding-left: 40px; }
.next-links a:hover { background: rgb(255 255 255 / .035); }
.next-links span { font-size: 18px; letter-spacing: .08em; }
.next-links small { grid-row: 2; color: rgb(255 255 255 / .48); font-size: 10px; }
.next-links b { grid-row: 1 / 3; align-self: center; color: var(--cyan); font-size: 22px; font-weight: 400; transition: transform .2s; }
.next-links a:hover b { transform: translateX(6px); }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 70px; align-items: end; padding: 48px max(32px, calc((100% - var(--max)) / 2)); color: rgb(255 255 255 / .62); background: var(--navy-950); }
.site-footer strong { color: white; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.site-footer strong span { color: rgb(255 255 255 / .45); font-weight: 400; }
.site-footer p { margin: 7px 0 0; font-size: 10px; }
.site-footer a { color: var(--cyan); font-size: 9px; letter-spacing: .13em; text-decoration: none; }

/* Interior pages */
.page-hero {
  position: relative;
  display: flex;
  min-height: 500px;
  overflow: hidden;
  color: white;
  background: linear-gradient(115deg, #05182c, #0a3152 70%, #0c4c6c);
}

.page-hero::before { position: absolute; inset: 0; content: ""; opacity: .14; background-image: linear-gradient(rgb(255 255 255 / .13) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .13) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(90deg, transparent, black); }
.page-hero-inner { position: relative; z-index: 2; width: min(calc(100% - 64px), var(--max)); padding-top: 206px; margin: auto; }
.page-hero .eyebrow { margin-bottom: 20px; color: var(--cyan); }
.page-hero h1 { margin: 0; font-size: clamp(52px, 7vw, 90px); font-weight: 400; letter-spacing: .02em; line-height: 1; }
.page-hero-inner > p:last-child { margin: 25px 0 0; color: rgb(255 255 255 / .6); font-size: 13px; letter-spacing: .12em; }
.page-wave { position: absolute; right: -90px; bottom: 25px; width: min(62vw, 900px); fill: none; stroke: var(--cyan); stroke-width: 2; opacity: .38; filter: drop-shadow(0 0 14px rgb(70 202 233 / .4)); }
.page-hero-detail { min-height: 430px; }
.page-hero-detail .page-hero-inner { padding-top: 170px; }
.page-hero-detail h1 { font-size: clamp(40px, 5.6vw, 69px); }
.breadcrumbs { display: flex; gap: 12px; margin-bottom: 42px; color: rgb(255 255 255 / .43); font-size: 9px; letter-spacing: .13em; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }

.page-section { padding: 110px 0 125px; }
.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 72px; }
.page-intro .section-number { margin-bottom: 42px; }
.page-intro .eyebrow { margin-bottom: 13px; }
.page-intro h2, .course-summary h2 { margin: 0; color: var(--navy-900); font-size: clamp(36px, 4vw, 54px); font-weight: 500; letter-spacing: -.025em; }
.page-intro > p, .page-intro > div:last-child > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 2.15; }

.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-card { position: relative; display: flex; flex-direction: column; min-height: 425px; padding: 30px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color .25s, background .25s, transform .25s; }
.portal-card:first-child { border-left: 1px solid var(--line); }
.portal-number { color: #9baab5; font-size: 9px; letter-spacing: .16em; }
.portal-symbol { display: grid; width: 104px; height: 104px; margin: 45px 0 42px; place-items: center; border-radius: 50%; background: var(--ice); transition: background .25s; }
.portal-symbol svg { width: 56px; fill: none; stroke: var(--blue-500); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.card-kicker { margin: 0 0 12px; color: var(--blue-500); font-size: 8px; font-weight: 600; letter-spacing: .19em; }
.portal-card h3 { margin: 0 0 12px; color: var(--navy-900); font-size: 23px; font-weight: 500; }
.portal-card p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.portal-card > b { position: absolute; right: 30px; bottom: 30px; color: var(--blue-500); font-size: 23px; font-weight: 400; }
.portal-card:hover { z-index: 1; color: white; background: var(--navy-900); box-shadow: 0 22px 55px rgb(5 31 52 / .16); transform: translateY(-7px); }
.portal-card:hover h3, .portal-card:hover .portal-number { color: white; }
.portal-card:hover p:last-child { color: rgb(255 255 255 / .55); }
.portal-card:hover .portal-symbol { background: rgb(70 202 233 / .1); }
.portal-card:hover .portal-symbol svg { stroke: var(--cyan); }
.portal-card:hover > b, .portal-card:hover .card-kicker { color: var(--cyan); }

.access-note { display: flex; gap: 22px; align-items: flex-start; padding: 28px 34px; margin-top: -65px; margin-bottom: 100px; border: 1px solid #cfe2e9; background: var(--ice); }
.access-note > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 1px solid var(--blue-500); border-radius: 50%; color: var(--blue-500); font-size: 13px; }
.access-note strong { display: block; margin-bottom: 4px; color: var(--navy-900); font-size: 13px; }
.access-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.course-layout { display: grid; grid-template-columns: 340px 1fr; gap: 100px; align-items: start; }
.course-summary { position: sticky; top: 30px; }
.course-summary .section-number { margin-bottom: 45px; }
.course-summary .eyebrow { margin-bottom: 14px; }
.course-summary > p:not(.section-number, .eyebrow) { margin: 28px 0 36px; color: var(--muted); font-size: 12px; line-height: 2; }
.course-summary > a { display: block; width: fit-content; margin-top: 15px; color: var(--blue-700); font-size: 10px; letter-spacing: .08em; text-decoration: none; }
.material-list { border-top: 2px solid var(--navy-900); }
.material-list > a, .material-disabled { display: grid; grid-template-columns: 90px 1fr 28px; gap: 18px; align-items: center; min-height: 93px; padding: 20px 16px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s, background .2s, padding .2s; }
.material-list > a > span, .material-disabled > span { color: var(--blue-500); font-size: 10px; letter-spacing: .08em; }
.material-list strong { display: block; margin-bottom: 7px; color: var(--navy-900); font-size: 15px; font-weight: 500; }
.material-list small { color: #92a0aa; font-size: 8px; letter-spacing: .14em; }
.material-list b { color: var(--blue-500); font-size: 18px; font-weight: 400; }
.material-list > a:hover { padding-right: 23px; padding-left: 23px; background: white; box-shadow: 0 12px 30px rgb(7 35 58 / .06); }
.material-disabled { opacity: .45; }
.archive-heading { padding: 0 0 23px; }
.archive-heading span { display: block; color: var(--navy-900); font-size: 20px; }
.archive-heading small { display: block; margin-top: 7px; color: #93a1ab; font-size: 8px; letter-spacing: .14em; }
.video-list > a { grid-template-columns: 50px 1fr 28px; }

/* Apps */
.apps-hero { min-height: 570px; }
.apps-hero .page-hero-inner { padding-top: 225px; }
.apps-hero .page-hero-inner > p:last-child { font-size: 16px; }
.app-wave { width: min(72vw, 1050px); opacity: .48; }
.apps-intro { align-items: center; }
.platform-pill { display: inline-flex; gap: 9px; align-items: center; padding: 9px 14px; margin-top: 22px; border: 1px solid #c4d7e1; border-radius: 100px; color: var(--navy-800); font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.platform-pill span { color: var(--blue-500); font-size: 7px; }
.app-list { border-top: 1px solid var(--line); }
.app-card { display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: center; padding: 90px 0; border-bottom: 1px solid var(--line); }
.app-card-reverse .app-preview { order: 2; }
.app-preview { overflow: hidden; border: 1px solid #bfd2dd; border-radius: 8px; background: #e9f3f6; box-shadow: 0 35px 70px rgb(8 45 68 / .13); }
.preview-toolbar { display: flex; gap: 6px; align-items: center; height: 34px; padding: 0 12px; border-bottom: 1px solid #c7d8e0; background: white; }
.preview-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: #cfdae0; }
.preview-toolbar span { margin-left: 8px; color: #758896; font-size: 7px; letter-spacing: .14em; }
.ecg-preview > svg { width: 100%; padding: 32px 20px 14px; background: #0a2942; }
.grid-lines { fill: none; stroke: rgb(71 203 233 / .1); stroke-width: .7; }
.preview-line, .noise-line { fill: none; stroke: #58ddf1; stroke-width: 2.3; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgb(88 221 241 / .5)); }
.preview-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 12px; background: #0a2942; }
.preview-controls span { padding: 10px; color: #6d8fa2; background: #0e3453; font-size: 7px; letter-spacing: .1em; }
.preview-controls b { display: block; margin-top: 6px; color: #c4f5fa; font-size: 10px; font-weight: 400; }
.filter-preview { padding-bottom: 16px; background: #0a2942; }
.filter-channel { padding: 22px 20px 0; }
.filter-channel small { color: #6c8da1; font-size: 7px; letter-spacing: .15em; }
.filter-channel svg { width: 100%; margin-top: 3px; }
.noise-line { stroke: #60b9d3; stroke-width: 1.5; }
.filter-divider { height: 24px; border-top: 1px solid rgb(255 255 255 / .08); border-bottom: 1px solid rgb(255 255 255 / .08); color: #55cce3; text-align: center; }
.filter-divider span { position: relative; top: 6px; padding: 0 10px; background: #0a2942; font-size: 7px; letter-spacing: .12em; }
.app-copy { max-width: 470px; }
.app-number { display: block; margin-bottom: 44px; color: #94a3ad; font-size: 9px; letter-spacing: .16em; }
.app-copy h2 { margin: 0; color: var(--navy-900); font-size: clamp(34px, 3.8vw, 49px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.app-jp { margin: 12px 0 28px !important; color: var(--blue-700) !important; font-size: 13px !important; }
.app-copy > p:not(.card-kicker, .app-jp) { margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.feature-list { padding: 0; margin: 28px 0 35px; list-style: none; }
.feature-list li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); color: #455e71; font-size: 11px; }
.feature-list li::before { position: absolute; top: 14px; left: 2px; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--blue-500); }
.download-panel { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; padding: 19px; border: 1px solid #cddde5; background: white; }
.download-panel > div small { display: block; margin-top: 7px; color: #8c9ba5; font-size: 9px; }
.platform-label { display: inline-block; padding: 5px 9px; color: white; background: var(--navy-800); font-size: 8px; letter-spacing: .1em; }
.download-disabled { display: flex; gap: 30px; align-items: center; min-width: 164px; padding: 14px 16px; color: #8a99a3; background: #edf1f3; font-size: 9px; letter-spacing: .1em; cursor: not-allowed; }
.download-disabled b { margin-left: auto; font-size: 14px; font-weight: 400; }
.support-button { grid-column: 1 / 3; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 0 0; border: 0; border-top: 1px solid var(--line); color: var(--blue-700); background: transparent; font: inherit; font-size: 10px; text-align: left; cursor: pointer; }
.support-button b { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--blue-500); border-radius: 50%; color: var(--blue-500); font-weight: 500; }
.support-button:hover { color: var(--blue-500); }

.medical-notice { padding: 68px 0; color: white; background: var(--navy-900); }
.medical-notice .section { display: grid; grid-template-columns: 54px 320px 1fr; gap: 34px; align-items: center; }
.notice-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-size: 20px; }
.medical-notice .eyebrow { margin-bottom: 8px; color: var(--cyan); }
.medical-notice h2 { color: white; font-size: 24px; }
.medical-notice .section > p { margin: 0; padding-left: 40px; border-left: 1px solid rgb(255 255 255 / .18); color: rgb(255 255 255 / .59); font-size: 12px; line-height: 2; }

.help-dialog { width: min(calc(100% - 40px), 680px); max-height: calc(100vh - 50px); padding: 38px 42px 40px; border: 0; color: var(--ink); background: white; box-shadow: 0 30px 100px rgb(0 0 0 / .35); }
.help-dialog::backdrop { background: rgb(3 18 32 / .76); backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.dialog-top .eyebrow { margin: 0; }
.dialog-top button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy-900); background: transparent; font-size: 23px; cursor: pointer; }
.help-dialog h2 { margin: 32px 0 14px; color: var(--navy-900); font-size: 30px; font-weight: 500; }
.dialog-lead { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.help-dialog ol { padding: 0; margin: 0; list-style: none; border-top: 2px solid var(--navy-900); }
.help-dialog li { display: grid; grid-template-columns: 42px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.help-dialog li > span { color: var(--blue-500); font-size: 9px; }
.help-dialog li strong { display: block; margin-bottom: 6px; color: var(--navy-900); font-size: 13px; }
.help-dialog li p, .dialog-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.dialog-note { padding: 17px; margin-top: 20px; background: var(--ice); }
.dialog-note strong { display: block; margin-bottom: 5px; color: var(--navy-900); font-size: 11px; }
.dialog-close { width: 100%; padding: 14px; margin-top: 20px; border: 0; color: white; background: var(--navy-900); font: inherit; font-size: 11px; cursor: pointer; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 900px) {
  .header-inner { width: min(calc(100% - 36px), var(--max)); }
  .global-nav a { padding: 0 12px; }
  .global-nav a::after { right: 12px; left: 12px; }
  .hero-grid { grid-template-columns: 1fr; width: min(calc(100% - 48px), 720px); padding-top: 120px; }
  .hero-copy { z-index: 2; padding: 70px 0 20px; }
  .hero-visual { min-height: 440px; margin-top: -100px; opacity: .62; transform: translateX(18%); }
  .heart-diagram { width: min(100%, 560px); }
  .hero::after { display: none; }
  .section-heading { grid-template-columns: 45px 1fr; }
  .section-note { grid-column: 2; margin-top: 18px; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
  .interest-card:nth-child(3) { border-left: 1px solid var(--line); }
  .profile { grid-template-columns: 1fr; }
  .profile-intro, .qualifications { padding: 64px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 280px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .portal-symbol { margin: 28px 0; }
  .course-layout { grid-template-columns: 260px 1fr; gap: 50px; }
  .app-card { grid-template-columns: 1fr; gap: 55px; }
  .app-card-reverse .app-preview { order: 0; }
  .app-copy { max-width: none; }
  .medical-notice .section { grid-template-columns: 54px 1fr; }
  .medical-notice .section > p { grid-column: 2; padding: 0; border: 0; }
}

@media (max-width: 620px) {
  .site-header { position: absolute; }
  .header-inner { display: block; width: 100%; height: auto; }
  .identity { height: 72px; padding: 0 20px; }
  .identity-mark { width: 38px; height: 38px; }
  .global-nav { height: 48px; border-top: 1px solid rgb(255 255 255 / .1); }
  .global-nav a { flex: 1; justify-content: center; padding: 0 6px; font-size: 10px; }
  .global-nav a::after { right: 20px; left: 20px; }
  .global-nav span { display: none; }
  .hero { min-height: 820px; }
  .hero-grid { display: block; width: calc(100% - 40px); min-height: 820px; padding-top: 120px; }
  .hero-copy { padding-top: 75px; }
  .hero h1 { font-size: 43px; }
  .lead { margin-top: 34px; font-size: 19px; }
  .desktop-only { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .button { width: 100%; }
  .hero-visual { position: absolute; right: -155px; bottom: -110px; width: 500px; min-height: 500px; margin: 0; opacity: .42; transform: none; }
  .visual-label, .hero-index { display: none; }
  .section { width: calc(100% - 40px); }
  .interests { padding: 80px 0; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .section-number { margin-bottom: 22px; }
  .section-note { grid-column: 1; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; min-height: 0; padding: 26px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .interest-card:first-child, .interest-card:nth-child(3) { border-left: 0; }
  .card-number { display: none; }
  .card-icon { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  .card-icon svg { width: 25px; }
  .interest-card h3 { margin-bottom: 5px; }
  .profile { width: 100%; margin-bottom: 0; }
  .profile-intro, .qualifications { padding: 55px 24px; }
  .profile .section-number { margin-bottom: 40px; }
  .qualifications-heading { display: block; }
  .qualifications-heading span { display: block; margin-top: 8px; }
  .qualifications li { grid-template-columns: 34px 1fr; padding: 10px 0; line-height: 1.6; }
  .next-section { padding: 75px 20px 85px; }
  .next-links { grid-template-columns: 1fr; }
  .next-links a:first-child, .next-links a:last-child { padding: 26px 12px 26px 0; border-right: 0; }
  .page-hero { min-height: 420px; }
  .page-hero-inner { width: calc(100% - 40px); padding-top: 205px; }
  .page-hero h1 { font-size: 44px; }
  .page-wave { right: -150px; width: 700px; }
  .page-hero-detail .page-hero-inner { padding-top: 175px; }
  .page-section { padding: 75px 0 90px; }
  .page-intro { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .page-intro .section-number { margin-bottom: 30px; }
  .portal-card { min-height: 270px; padding: 24px; }
  .portal-symbol { width: 74px; height: 74px; margin: 25px 0; }
  .portal-symbol svg { width: 40px; }
  .access-note { margin-top: -40px; margin-bottom: 70px; padding: 23px; }
  .course-layout { grid-template-columns: 1fr; gap: 55px; }
  .course-summary { position: static; }
  .material-list > a, .material-disabled { grid-template-columns: 62px 1fr 20px; min-height: 84px; padding: 16px 4px; }
  .material-list > a:hover { padding-right: 4px; padding-left: 4px; }
  .apps-hero { min-height: 480px; }
  .apps-hero .page-hero-inner { padding-top: 215px; }
  .apps-hero .page-hero-inner > p:last-child { font-size: 13px; }
  .app-card { gap: 42px; padding: 65px 0; }
  .app-number { margin-bottom: 30px; }
  .download-panel { grid-template-columns: 1fr; }
  .download-disabled { grid-column: 1; min-width: 0; }
  .support-button { grid-column: 1; }
  .medical-notice .section { grid-template-columns: 42px 1fr; gap: 22px; }
  .notice-icon { width: 42px; height: 42px; }
  .help-dialog { padding: 28px 22px 30px; }
  .help-dialog h2 { margin-top: 24px; font-size: 25px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 30px; padding: 40px 20px; }
  .site-footer > p { grid-column: 1 / 3; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Screenshot preview and dual-platform download cards */
.screenshot-preview { aspect-ratio: 600 / 395; display: grid; place-items: center; }
.screenshot-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.screenshot-preview img[hidden], .screenshot-placeholder[hidden] { display: none; }
.screenshot-placeholder { padding: 50px 20px; color: #9ac9da; background: #0a2942; width: 100%; text-align: center; font-size: 24px; }
.screenshot-placeholder small { display: block; margin-top: 18px; font-size: 12px; }
.platform-download { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.platform-download small { display: block; margin-top: 7px; color: #8c9ba5; font-size: 9px; }
@media (max-width: 620px) { .platform-download { grid-template-columns: 1fr; } }

/* ダウンロード可能なボタン */
.download-active {
    background: var(--cyan);
    color: var(--navy-950);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.download-active:hover {
    background: #ffffff;
}

.gatekeeper-command {
    padding: 12px;
    overflow-x: auto;
    background: #edf7fa;
    border: 1px solid #dbe5eb;
    font-size: 11px;
    line-height: 1.6;
}

.gatekeeper-command-label {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    font-weight: 600;
}

/* トップページのキャッチコピーの改行調整 */
@media (min-width: 901px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-copy {
        padding-right: 20px;
    }
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.hero-visual {
    pointer-events: none;
}

.site-footer .footer-contact {
    color: #dce6ef;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 2px;
}

.site-footer .footer-note {
    display: block;
    color: #aebdcb;
    font-size: 12px;
    line-height: 1.5;
}