@import "/mk3/assets/palette.css";
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+HK:wght@400;500;600;700;800&family=Noto+Serif+HK:wght@600;700;900&display=swap");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #f7f8fc; color: var(--ink); font-family: "Noto Sans HK", sans-serif; }
a { color: inherit; }
.institution-page { overflow: hidden; }
.institution-page h1, .institution-page h2, .institution-page h3, .institution-page p { margin-top: 0; }
.institution-page :focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.inst-hero { position: relative; isolation: isolate; min-height: 610px; padding: 88px clamp(22px, 7vw, 112px) 72px; background: var(--navy-deep); color: #fff; overflow: hidden; }
.inst-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(112deg, var(--navy-deep) 0%, #173779 58%, var(--navy) 100%); }
.inst-hero::after { content: ""; position: absolute; z-index: -1; width: 730px; height: 730px; top: -360px; right: -140px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 56px rgba(255,255,255,.045), 0 0 0 112px rgba(255,255,255,.035), 0 0 0 168px rgba(255,255,255,.025); }
.inst-hero-grid { max-width: 1160px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .7fr); align-items: center; gap: clamp(34px, 7vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 21px; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.inst-hero h1 { max-width: 715px; margin-bottom: 22px; font-family: "Noto Serif HK", serif; font-size: clamp(39px, 5vw, 66px); letter-spacing: -.065em; line-height: 1.2; }
.inst-hero h1 em { color: var(--orange); font-style: normal; }
.hero-intro { max-width: 605px; margin-bottom: 30px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 7px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn-primary { background: var(--orange); color: var(--dark); }
.btn-primary:hover { transform: translateY(-2px); background: var(--orange-hover); }
.btn-secondary { border: 1px solid rgba(255,255,255,.43); color: #fff; }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.11); }
.hero-note { margin: 17px 0 0; color: rgba(255,255,255,.54); font-size: 12px; line-height: 1.7; }

.operation-card { position: relative; padding: 24px; background: #fbfcff; color: var(--ink); border-radius: 16px; border: 1px solid rgba(255,255,255,.42); box-shadow: 0 22px 70px rgba(5,18,48,.36); }
.operation-card::before { content: "日常工作，放在同一處"; display: block; margin-bottom: 16px; color: var(--navy); font-size: 13px; font-weight: 800; }
.mini-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.mini-sign { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--light-blue); color: var(--navy); font-family: "DM Mono", monospace; font-size: 13px; font-weight: 500; }
.mini-row:nth-of-type(3) .mini-sign { background: var(--orange-soft); color: #80570b; }
.mini-row:nth-of-type(4) .mini-sign { background: #e9f5f0; color: var(--success-strong); }
.mini-row strong { display: block; margin-bottom: 2px; font-size: 14px; }
.mini-row span:not(.mini-sign) { color: var(--gray); font-size: 12px; }
.mini-check { width: 17px; height: 17px; border: 2px solid var(--navy); border-radius: 50%; }
.mini-row:nth-of-type(3) .mini-check { border-color: var(--orange); }
.mini-row:nth-of-type(4) .mini-check { border-color: var(--success); }

.section { padding: 96px clamp(22px, 7vw, 112px); }
.content-width { max-width: 1160px; margin: auto; }
.section-kicker { margin-bottom: 12px; color: var(--navy); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.section-heading { max-width: 650px; margin-bottom: 17px; color: var(--navy-deep); font-family: "Noto Serif HK", serif; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.05em; line-height: 1.28; }
.section-lead { max-width: 650px; margin-bottom: 0; color: #4c5c74; font-size: 16px; line-height: 1.9; }
.purpose { background: #fff; }
.purpose-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(42px, 9vw, 136px); align-items: center; }
.work-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.work-list li { position: relative; padding: 18px 18px 18px 31px; border-bottom: 1px solid var(--line); color: #334863; font-size: 15px; line-height: 1.55; }
.work-list li::before { content: ""; position: absolute; left: 2px; top: 29px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); }
.work-list strong { color: var(--navy-deep); }

.management { background: var(--light-blue); }
.management-top { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 43px; }
.management-top .section-heading { margin-bottom: 0; }
.management-note { max-width: 330px; margin: 0; color: var(--gray); font-size: 13px; line-height: 1.7; }
.capability-grid { display: grid; grid-template-columns: 1.06fr .94fr 1fr; gap: 15px; }
.capability { min-height: 215px; padding: 26px; background: #fff; border: 1px solid rgba(36,85,166,.09); border-radius: 13px; }
.capability:nth-child(1) { background: var(--navy); color: #fff; }
.capability:nth-child(4) { grid-column: span 2; min-height: 150px; background: var(--orange-soft); }
.capability-label { display: block; margin-bottom: 28px; font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .1em; color: var(--navy); }
.capability:nth-child(1) .capability-label { color: var(--orange); }
.capability h3 { margin-bottom: 9px; color: var(--navy-deep); font-size: 21px; }
.capability:nth-child(1) h3 { color: #fff; }
.capability p { margin-bottom: 0; color: #5a6a82; font-size: 14px; line-height: 1.75; }
.capability:nth-child(1) p { color: rgba(255,255,255,.74); }

.setup { background: var(--navy-deep); color: #fff; }
.setup .section-kicker { color: var(--orange); }
.setup .section-heading { color: #fff; }
.setup .section-lead { color: rgba(255,255,255,.73); }
.setup-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(44px, 9vw, 126px); align-items: center; }
.step-list { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.step-list::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 40px; width: 1px; background: rgba(255,255,255,.23); }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 17px; align-items: start; }
.step-number { z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: var(--navy-deep); color: var(--orange); font-family: "DM Mono", monospace; font-size: 12px; }
.step h3 { margin: 7px 0 4px; font-size: 16px; }
.step p { margin-bottom: 0; color: rgba(255,255,255,.67); font-size: 14px; line-height: 1.7; }
.setup-callout { padding: 27px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.08); }
.setup-callout h3 { margin-bottom: 10px; color: var(--orange); font-size: 17px; }
.setup-callout p { margin-bottom: 0; color: rgba(255,255,255,.81); font-size: 15px; line-height: 1.85; }

.boundary { background: #fff; }
.boundary-header { display: grid; grid-template-columns: .8fr 1fr; gap: 70px; align-items: end; margin-bottom: 40px; }
.boundary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.boundary-card { padding: 32px; border: 1px solid var(--line); border-radius: 13px; }
.boundary-card.partner { background: #f8faff; }
.boundary-card h3 { margin-bottom: 14px; color: var(--navy-deep); font-size: 22px; }
.boundary-card p { margin-bottom: 17px; color: #50627c; font-size: 14px; line-height: 1.8; }
.boundary-card ul { margin: 0; padding: 0; list-style: none; }
.boundary-card li { position: relative; padding: 8px 0 8px 19px; color: #334863; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--line); }
.boundary-card li::before { content: "—"; position: absolute; left: 0; color: var(--orange-hover); }

.privacy { padding-top: 72px; padding-bottom: 72px; background: var(--orange); }
.privacy-grid { display: grid; grid-template-columns: auto 1fr; gap: 25px; align-items: center; }
.privacy-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid var(--navy-deep); color: var(--navy-deep); border-radius: 50%; font-family: "DM Mono", monospace; font-size: 17px; font-weight: 500; }
.privacy h2 { margin-bottom: 6px; color: var(--navy-deep); font-size: 23px; }
.privacy p { margin-bottom: 0; max-width: 800px; color: rgba(26,29,35,.82); font-size: 15px; line-height: 1.8; }

.closing { padding-top: 104px; padding-bottom: 104px; background: #f7f8fc; text-align: center; }
.closing .section-heading, .closing .section-lead { margin-right: auto; margin-left: auto; }
.closing .section-heading { max-width: 800px; }
.closing .section-lead { margin-bottom: 29px; }
.contact-panel { max-width: 720px; margin: 40px auto 0; padding: 25px 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.contact-panel h3 { margin-bottom: 8px; color: var(--navy-deep); font-size: 16px; }
.contact-panel p { margin: 0; color: var(--gray); font-size: 13px; line-height: 1.65; }
.contact-panel [data-mk2-contact] { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 15px; }
.contact-panel [data-mk2-contact] p { color: #4d607c; }
.contact-panel [data-mk2-contact] a { color: var(--navy); font-weight: 800; }
.mk-footer { padding: 24px clamp(22px, 7vw, 112px); }

@media (max-width: 860px) {
  .inst-hero { min-height: 0; padding-top: 66px; }
  .inst-hero-grid, .purpose-grid, .setup-grid, .boundary-header { grid-template-columns: 1fr; }
  .inst-hero-grid { gap: 44px; }
  .operation-card { max-width: 520px; }
  .management-top { display: block; }
  .management-note { margin-top: 15px; }
  .boundary-header { gap: 10px; }
}
@media (max-width: 620px) {
  .section { padding-top: 68px; padding-bottom: 68px; }
  .inst-hero { padding-bottom: 55px; }
  .inst-hero h1 { letter-spacing: -.075em; }
  .hero-actions { display: grid; }
  .btn-primary, .btn-secondary { width: 100%; }
  .capability-grid, .boundary-cards { grid-template-columns: 1fr; }
  .capability:nth-child(4) { grid-column: auto; min-height: 0; }
  .capability { min-height: 0; }
  .capability-label { margin-bottom: 19px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-panel { padding: 23px; }
  .contact-panel [data-mk2-contact] { display: block; }
  .contact-panel [data-mk2-contact] p { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}