/* =========================================================
   GIT INVEST — corporate site
   ========================================================= */
:root {
  --ink: #0b0d12;
  --ink-2: #121419;
  --slate: #1b1f27;
  --slate-2: #242a35;
  --white: #fff;
  --gray-50: #f4f5f7;
  --gray-100: #eaecf0;
  --gray-200: #dcdfe5;
  --gray-400: #9ba2ae;
  --gray-500: #697080;
  --gray-700: #3a404c;
  --blue: #3461ff;
  --blue-600: #2348e6;
  --blue-light: #8ea8ff;
  --blue-50: #edf1ff;
  --line-d: rgba(255, 255, 255, .1);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
html[lang="ko"] body { word-break: keep-all; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { flex: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.label { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 14px; letter-spacing: -0.005em; }
.h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 700; line-height: 1.24; letter-spacing: -0.032em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--gray-700); font-weight: 500; }
.body { color: var(--gray-500); }
.sec-sub { color: var(--gray-500); font-size: 17px; max-width: 460px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--gray-100); }
.btn-outline-white { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--slate-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--gray-100); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 48px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-type { font-size: 19px; font-weight: 500; letter-spacing: .015em; line-height: 1; }
.logo-type b { font-weight: 800; }

.nav { display: flex; gap: 36px; }
.nav a { font-size: 16px; font-weight: 600; opacity: .82; transition: opacity .2s, color .2s; position: relative; padding: 6px 0; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.site-header.is-solid .nav a.is-active { color: var(--blue); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-cta { background: #fff; color: var(--ink); margin-left: 4px; }
.header-cta:hover { background: var(--gray-100); }
.site-header.is-solid .header-cta { background: var(--ink); color: #fff; }
.site-header.is-solid .header-cta:hover { background: var(--slate-2); }

.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700; transition: background-color .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.12); }
.site-header.is-solid .lang-btn:hover, .site-header.is-solid .lang-btn[aria-expanded="true"] { background: var(--gray-100); }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-btn .chev { width: 14px; height: 14px; stroke-width: 2; transition: transform .25s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: #fff; color: var(--ink); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(11,13,18,.16), 0 0 0 1px rgba(11,13,18,.05);
}
.lang-menu[hidden] { display: none; }
.lang-menu button { width: 100%; text-align: left; padding: 10px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.lang-menu button:hover { background: var(--gray-50); }
.lang-menu button[aria-checked="true"] { font-weight: 700; color: var(--blue); }
.lang-menu button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 999px; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; background: #fff; color: var(--ink); padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a { display: block; padding: 18px 0; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; border-bottom: 1px solid var(--gray-100); }
.mobile-lang { display: flex; gap: 8px; padding-top: 24px; }
.mobile-lang button { flex: 1; height: 48px; border-radius: 999px; border: 1px solid var(--gray-200); font-weight: 600; }
.mobile-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(8,10,16,.45) 0%, rgba(8,10,16,0) 100%),
    linear-gradient(180deg, rgba(8,10,16,.6) 0%, rgba(8,10,16,.42) 40%, rgba(8,10,16,.78) 100%),
    url("/assets/img/hero.jpg") center 35% / cover no-repeat;
  animation: heroZoom 18s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
.hero-title { font-size: clamp(38px, 6.2vw, 80px); font-weight: 700; line-height: 1.14; letter-spacing: -0.04em; margin-bottom: 28px; }
.hero-sub { max-width: 640px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.7; color: rgba(255,255,255,.82); margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-strip { background: rgba(11,13,18,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-d); }
.hero-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; align-items: center; justify-content: center; gap: 12px; height: 92px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.78); transition: color .2s; }
.strip-item + .strip-item { border-left: 1px solid var(--line-d); }
.strip-item:hover { color: #fff; }
.strip-item svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-gray { background: var(--gray-50); }
.section-ink { background: var(--ink-2); color: #fff; }
.section-slate { background: linear-gradient(180deg, #1d212a 0%, #15181e 100%); color: #fff; }
.section-ink .label, .section-slate .label, .cta .label { color: var(--blue-light); }
.section-slate .sec-sub { color: var(--gray-400); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 72px); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-text .h2 { margin-bottom: 32px; }
.about-text .lead { margin-bottom: 20px; }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--gray-100); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.03); }

/* ---------- approach ---------- */
.statement { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.32; letter-spacing: -0.032em; margin-bottom: clamp(48px, 6vw, 72px); }
.statement em { font-style: normal; color: var(--blue-light); }
.approach-grid { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 1fr 1fr; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.ap-cell { padding: 44px 40px; }
.ap-cell:not(.ap-main) { border-left: 1px solid var(--line-d); }
.ap-cell:nth-child(3) { border-top: 1px solid var(--line-d); }
.ap-main { grid-row: span 2; padding-left: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.ap-chart { width: 100%; height: auto; margin-bottom: 14px; overflow: visible; }
.ap-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .ap-line { transition: stroke-dashoffset 2.4s var(--ease); }
.ap-main.is-in .ap-line, html:not(.js) .ap-line { stroke-dashoffset: 0; }
.ap-axis { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-400); margin-bottom: 36px; }
.ap-big { font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 14px; }
.ap-big.sm { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.ap-text { color: var(--gray-400); font-size: 16px; max-width: 460px; }
.ap-icon { width: 34px; height: 34px; fill: none; stroke: var(--blue-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; }

/* ---------- strategy cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; display: flex; }
.card-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,10,16,.88) 0%, rgba(8,10,16,.62) 52%, rgba(8,10,16,.28) 100%); }
.card:hover .card-bg { transform: scale(1.05); }
.card-body { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.card-label { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.72); margin-bottom: 12px; }
.card-title { font-size: clamp(24px, 2.3vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 16px; }
.card-text { font-size: 16px; color: rgba(255,255,255,.76); max-width: 380px; margin-bottom: 28px; }
.card .btn { margin-top: auto; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 32px 28px 36px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,13,18,.07); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: 14px; font-weight: 700; margin-bottom: 48px; }
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--gray-500); line-height: 1.65; }

/* ---------- research ---------- */
.research { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.stack svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.plate .top { fill: url(#plTop); transition: fill .4s; }
.plate .side-l { fill: #1a1d24; }
.plate .side-r { fill: #14161c; }
.plate .rim { fill: none; stroke: #3461ff; stroke-width: 2; opacity: .55; transition: opacity .4s; }
.plate .edge { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; }
.plate text { fill: rgba(255,255,255,.62); font-family: var(--font); font-size: 22px; font-weight: 700; letter-spacing: .01em; transition: fill .4s; }
.plate { transition: transform .5s var(--ease); }
.plate.is-on .top { fill: url(#plTopOn); }
.plate.is-on .rim { opacity: 1; }
.plate.is-on text { fill: #fff; }

.layers { border-top: 1px solid var(--line-d); }
.layer { padding: 28px 8px 28px 0; border-bottom: 1px solid var(--line-d); cursor: default; outline: none; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; transition: padding-left .4s var(--ease); }
.layer h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; transition: color .3s; }
.layer p { font-size: 16px; color: var(--gray-400); grid-column: 1; }
.layer::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); transition: background-color .3s, border-color .3s; }
.layer.is-on { padding-left: 12px; }
.layer.is-on h3 { color: var(--blue-light); }
.layer.is-on::after { background: var(--blue); border-color: var(--blue); }

/* ---------- risk ---------- */
.risk { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.risk-head { position: sticky; top: 120px; }
.risk-head .h2 { margin-bottom: 24px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rcard { background: var(--gray-50); border-radius: var(--radius); padding: 36px 32px 40px; transition: background-color .3s; }
.rcard:hover { background: var(--gray-100); }
.ricon { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; background: #fff; align-items: center; justify-content: center; margin-bottom: 40px; box-shadow: 0 1px 2px rgba(11,13,18,.06); }
.ricon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rcard h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.rcard p { font-size: 15.5px; color: var(--gray-500); }

/* ---------- contact ---------- */
.cta { position: relative; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; margin-bottom: 20px; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 60%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,16,.9) 0%, rgba(8,10,16,.7) 55%, rgba(8,10,16,.45) 100%); }
.cta-body { padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 72px); }
.cta .h2 { margin-bottom: 18px; }
.cta-text { color: rgba(255,255,255,.78); font-size: 18px; max-width: 520px; margin-bottom: 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .is-done { border-color: var(--blue-light); color: var(--blue-light); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; }
.info { background: #fff; border-radius: var(--radius); padding: 16px 40px; }
.info-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 28px 0; }
.info-row + .info-row { border-top: 1px solid var(--gray-100); }
.info-row dt { font-size: 15px; font-weight: 600; color: var(--gray-500); }
.info-row dd { font-size: 17px; font-weight: 500; line-height: 1.6; }
.info-row dd a:hover { color: var(--blue); }
.maplinks { display: flex; flex-wrap: wrap; gap: 8px; }
.maplinks a { font-size: 14.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--gray-50); transition: background-color .2s, color .2s; }
.maplinks a:hover { background: var(--blue-50); color: var(--blue); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; background: var(--gray-100); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 80px 0 40px; }
.f-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
.f-brand p { margin-top: 18px; color: var(--gray-400); font-size: 15px; }
.f-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(32px, 6vw, 88px); }
.f-cols div { display: flex; flex-direction: column; gap: 12px; }
.f-cols h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.f-cols a, .f-cols span { font-size: 14.5px; color: var(--gray-400); transition: color .2s; max-width: 260px; }
.f-cols a:hover { color: #fff; }
.disclaimer { font-size: 13px; line-height: 1.75; color: #7c8392; max-width: 880px; padding: 32px 0; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--gray-400); padding-right: 72px; }

.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; background: var(--slate-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(11,13,18,.22);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- modal ---------- */
.modal { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(8,10,16,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-media { height: 200px; background-size: cover; background-position: center; position: relative; }
.modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,16,.1), rgba(8,10,16,.45)); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #fff; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.modal-body { padding: 36px 40px 40px; }
.modal-title { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 16px; }
.modal-desc { color: var(--gray-700); margin-bottom: 28px; }
.modal-sub { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.modal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
.modal-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--gray-50); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.modal-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
html.modal-open { overflow: hidden; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1.1s var(--ease) both .2s; }
.js .hero .reveal[data-delay="1"] { animation-delay: .35s; }
.js .hero .reveal[data-delay="2"] { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav { gap: 26px; }
  .header-inner { gap: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-open .site-header { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--gray-100); }
  .logo-mark { width: 30px; height: 30px; }
  .logo-type { font-size: 17px; }

  .hero-strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item { height: 68px; font-size: 14.5px; gap: 10px; justify-content: flex-start; padding-left: 4px; }
  .strip-item + .strip-item { border-left: 0; }
  .strip-item:nth-child(even) { border-left: 1px solid var(--line-d); padding-left: 20px; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line-d); }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about, .research, .risk, .contact-grid { grid-template-columns: 1fr; }
  .risk-head { position: static; }
  .approach-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ap-main { grid-column: 1 / -1; grid-row: auto; padding-right: 0; }
  .ap-cell:nth-child(2) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); }
  .ap-cell:nth-child(3) { border-top: 1px solid var(--line-d); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
  .stack svg { max-width: 380px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(32px, 9.4vw, 42px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .strip-item svg { width: 20px; height: 20px; }
  .approach-grid { grid-template-columns: 1fr; }
  .ap-cell { padding: 36px 0; }
  .ap-cell:nth-child(3) { border-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 26px 24px; }
  .step-no { grid-row: span 2; margin: 0; }
  .risk-grid { grid-template-columns: 1fr; }
  .rcard { padding: 30px 26px; }
  .ricon { margin-bottom: 28px; }
  .info { padding: 8px 24px; }
  .info-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .map { min-height: 300px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .f-top { flex-direction: column; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-cols div:last-child { grid-column: 1 / -1; }
  .f-bottom { flex-direction: column; align-items: flex-start; padding-right: 0; }
  .modal-body { padding: 28px 24px 28px; }
  .modal-list { grid-template-columns: 1fr; }
  .modal-media { height: 150px; }
}

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

/* research plates lift */
.plate .pl { transition: transform .5s var(--ease); }
.plate.is-on .pl { transform: translateY(-10px); }


/* ================= footer legal links ================= */
.f-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.f-legal a { color: var(--gray-400); transition: color .2s; }
.f-legal a:hover { color: #fff; }
.f-legal a.strong { color: #fff; font-weight: 700; }

/* ================= legal pages ================= */
.legal-hero { background: var(--gray-50); padding: calc(var(--header-h) + 64px) 0 0; border-bottom: 1px solid var(--gray-100); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--gray-500); margin-bottom: 18px; }
.crumbs a:hover { color: var(--blue); }
.legal-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; margin-bottom: 12px; }
.legal-meta { color: var(--gray-500); font-size: 16px; margin-bottom: 40px; }
.legal-tabs { display: flex; gap: 6px; }
.legal-tabs a { padding: 14px 22px; font-size: 15px; font-weight: 600; color: var(--gray-500); border-radius: 14px 14px 0 0; transition: color .2s, background-color .2s; }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 -1px 0 var(--gray-100), 1px 0 0 var(--gray-100), -1px 0 0 var(--gray-100); }

.legal-body { padding: 64px 0 120px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--gray-200) transparent; }
.toc-title { font-size: 13px; font-weight: 700; color: var(--gray-500); margin-bottom: 12px; }
.toc-list { border-left: 1px solid var(--gray-100); }
.toc-list a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--gray-500); transition: color .2s, border-color .2s; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.legal-docs { max-width: 800px; }
.doc[hidden] { display: none; }
.doc-note { font-size: 14px; color: var(--gray-500); background: var(--gray-50); border-radius: 12px; padding: 14px 18px; margin-bottom: 40px; }
.doc-intro { margin-bottom: 16px; }
.doc-intro p { color: var(--gray-700); margin-bottom: 8px; }
.art { padding: 36px 0; border-top: 1px solid var(--gray-100); scroll-margin-top: calc(var(--header-h) + 24px); }
.art:first-of-type { border-top: 0; padding-top: 0; }
.doc-intro + .art { border-top: 1px solid var(--gray-100); padding-top: 36px; }
.art h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 24px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.art p { color: var(--gray-700); line-height: 1.85; }
.art p + p, .art ol + p, .art p + .formulas { margin-top: 14px; }
.art p + ol { margin-top: 14px; }
.art ol { counter-reset: li; display: flex; flex-direction: column; gap: 10px; }
.art ol > li { counter-increment: li; position: relative; padding-left: 30px; color: var(--gray-700); line-height: 1.8; }
.art ol > li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.art ol ol { margin-top: 10px; gap: 6px; }
.art ol ol > li { padding-left: 34px; }
.art ol ol > li::before { content: "(" counter(li) ")"; font-weight: 600; color: var(--gray-500); }

.formulas { display: grid; gap: 10px; margin-top: 18px; }
.formula { border: 1px solid var(--gray-100); border-radius: 14px; padding: 18px 20px; background: #fff; }
.formula .f-case { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.formula .f-eq { font-size: 15px; color: var(--gray-700); line-height: 1.7; padding-left: 14px; border-left: 2px solid var(--blue); }
.formula .f-eq + .f-eq { margin-top: 8px; }
.doc-sign { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-100); font-weight: 600; text-align: right; line-height: 1.8; }

.req { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.ptable { border: 1px solid var(--gray-100); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.ptable > div { display: grid; grid-template-columns: 180px 1fr; }
.ptable > div + div { border-top: 1px solid var(--gray-100); }
.ptable dt { background: var(--gray-50); padding: 18px 20px; font-size: 14.5px; font-weight: 700; }
.ptable dd { padding: 18px 20px; color: var(--gray-700); line-height: 1.8; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 999px; padding: 3px 11px; }
.notes { display: grid; gap: 6px; }
.notes li { position: relative; padding-left: 16px; font-size: 15px; color: var(--gray-500); line-height: 1.75; }
.notes li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--gray-400); }
.confirm { display: grid; gap: 10px; background: var(--gray-50); border-radius: 16px; padding: 22px 24px; }
.confirm li { position: relative; padding-left: 22px; color: var(--gray-700); line-height: 1.75; }
.confirm li::before { content: "※"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .legal-hero { padding-top: calc(var(--header-h) + 40px); }
}
@media (max-width: 640px) {
  .legal-tabs a { padding: 12px 16px; font-size: 14px; }
  .legal-body { padding: 40px 0 88px; }
  .ptable > div { grid-template-columns: 1fr; }
  .ptable dt { padding: 12px 18px; }
  .ptable dd { padding: 14px 18px 18px; }
  .art h2 { font-size: 18px; }
  .art ol > li { padding-left: 24px; }
  .art ol ol > li { padding-left: 30px; }
  .doc-sign { text-align: left; }
}
