:root {
  --ip-blue: #2457ef;
  --ip-blue-dark: #1742c8;
  --ip-ink: #10131a;
  --ip-copy: #3f4652;
  --ip-muted: #777e89;
  --ip-line: #e5e7eb;
  --ip-paper: #fbfaf7;
  --ip-white: #fff;
  --ip-max: 1240px;
  --ip-content-max: 1120px;
  --ip-section-title-size: 14px;
  --ip-section-title-weight: 650;
  --ip-feature-size: clamp(30px, 2.65vw, 38px);
  --ip-feature-line: 1.46;
  --ip-feature-weight: 500;
  --ip-section-content-gap: clamp(34px, 3.2vw, 42px);
  --ip-serif: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  --ip-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ip-paper); color: var(--ip-ink); font: 16px/1.7 var(--ip-sans); -webkit-font-smoothing: antialiased; }
body.is-menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(36, 87, 239, .46); outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 10px 16px; background: #fff; color: #111827; }
.skip-link:focus { top: 18px; }
.ip-preview-banner { position: fixed; inset: 12px auto auto 50%; z-index: 50; transform: translateX(-50%); padding: 7px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(12,15,22,.78); color: #fff; font-size: 12px; font-weight: 680; letter-spacing: .02em; backdrop-filter: blur(16px); }

.ip-header { position: absolute; inset: 0 0 auto; z-index: 20; height: 84px; display: flex; align-items: center; padding: 0 clamp(24px, 4.5vw, 72px); color: #fff; }
.ip-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 14, .34), transparent); pointer-events: none; }
.ip-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: .01em; }
.ip-brand img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.ip-navigation { margin-left: auto; display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); font-size: 14px; font-weight: 650; }
.ip-navigation > a { position: relative; padding: 10px 0; }
.ip-navigation > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: currentColor; transition: right .2s ease; }
.ip-navigation > a:hover::after { right: 0; }
.ip-nav-contact { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; backdrop-filter: blur(12px); }
.ip-nav-contact:hover { background: #fff; color: var(--ip-ink); }
.ip-menu-button { display: none; margin-left: auto; min-width: 52px; min-height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(0,0,0,.16); color: #fff; cursor: pointer; }

.ip-hero { position: relative; min-height: min(900px, 100svh); overflow: hidden; isolation: isolate; background: #0a0d12; color: #fff; }
.ip-hero-media { position: absolute; inset: 0 0 0 auto; z-index: 0; width: 68%; min-width: 760px; overflow: hidden; }
.ip-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 24%; filter: saturate(.86) contrast(1.03); }
.ip-hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #080b10 0%, rgba(8,11,16,.97) 24%, rgba(8,11,16,.76) 43%, rgba(8,11,16,.13) 75%, rgba(8,11,16,.05) 100%); }
.ip-hero-shade::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(0deg, rgba(5,8,13,.52), transparent); }
.ip-hero-inner { position: relative; z-index: 2; width: min(var(--ip-max), calc(100% - 48px)); min-height: min(900px, 100svh); margin: 0 auto; padding: clamp(132px, 17vh, 190px) 0 116px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.ip-eyebrow { margin: 0 0 18px; color: #7fa0ff; font-size: 13px; font-weight: 760; letter-spacing: .12em; }
.ip-hero h1 { max-width: min(690px, 58vw); margin: 0; font: 500 clamp(64px, 8.4vw, 126px)/.93 var(--ip-serif); letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: balance; }
.ip-positioning { max-width: 660px; margin: 28px 0 0; font: 600 clamp(27px, 2.6vw, 42px)/1.32 var(--ip-serif); letter-spacing: -.025em; text-wrap: balance; }
.ip-hero-copy { display: -webkit-box; max-width: 610px; margin: 22px 0 0; overflow: hidden; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ip-primary-action { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; margin-top: 34px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ip-blue); color: #fff; font-weight: 760; cursor: pointer; box-shadow: 0 14px 40px rgba(36,87,239,.3); transition: transform .2s ease, background .2s ease; }
.ip-primary-action::after { content: "→"; margin-left: 10px; }
.ip-primary-action:hover { transform: translateY(-2px); background: #3768f4; }
.ip-scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); color: rgba(255,255,255,.64); font-size: 12px; letter-spacing: .12em; }
.ip-scroll-cue::after { content: ""; display: block; width: 1px; height: 24px; margin: 8px auto 0; background: currentColor; }
.ip-hero--without-image .ip-hero-inner { align-items: center; text-align: center; }
.ip-hero--without-image .ip-hero-shade { background: radial-gradient(circle at 70% 20%, #1c3271 0, #0a0d12 48%); }

.ip-section { width: min(var(--ip-content-max), calc(100% - 64px)); margin: 0 auto; padding: clamp(84px, 7vw, 100px) 0; }
.ip-section + .ip-section { border-top: 1px solid var(--ip-line); }
.ip-section-label { display: flex; align-items: center; gap: 12px; }
.ip-section-label span, .ip-section-number { flex: 0 0 auto; margin: 0; color: rgba(36, 87, 239, .88); font: 700 10px/1 var(--ip-sans); letter-spacing: .1em; }
.ip-section h2 { margin: 0; color: #858b95; font: var(--ip-section-title-weight) var(--ip-section-title-size)/1.4 var(--ip-sans); letter-spacing: .04em; }
.ip-view-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(56px, 6vw, 76px); margin-top: var(--ip-section-content-gap); }
.ip-view-feature blockquote { margin: 0; }
.ip-view-feature blockquote p,
.ip-featured-article h3 { margin: 0; color: var(--ip-ink); font: var(--ip-feature-weight) var(--ip-feature-size)/var(--ip-feature-line) var(--ip-serif); letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: pretty; }
.ip-view-feature blockquote p::before { content: "“"; margin-right: .04em; color: var(--ip-blue); }
.ip-view-feature blockquote p::after { content: "\2060”"; margin-left: .04em; color: var(--ip-blue); }
.ip-view-feature cite { display: block; margin-top: 22px; color: var(--ip-muted); font: 650 13px/1.55 var(--ip-sans); font-style: normal; }
.ip-view-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ip-line); }
.ip-view-list li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 0; }
.ip-view-list li + li { border-top: 1px solid var(--ip-line); }
.ip-view-list li > span { color: var(--ip-blue); font-size: 12px; font-weight: 750; }
.ip-view-list h3 { margin: 0; color: #272c35; font-size: 17px; font-weight: 600; line-height: 1.5; }
.ip-view-list p { margin: 7px 0 0; color: var(--ip-copy); font-size: 14px; line-height: 1.7; }

.ip-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ip-section-heading > div { display: flex; align-items: center; gap: 12px; }
.ip-section-heading > a { color: #858b95; font-size: 12px; font-weight: 650; letter-spacing: .02em; transition: color .2s ease; }
.ip-section-heading > a:hover { color: var(--ip-blue); }
.ip-article-layout { margin-top: var(--ip-section-content-gap); }
.ip-featured-article { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
.ip-featured-article--text { grid-template-columns: minmax(0, 760px); }
.ip-article-image { height: clamp(360px, 42vw, 540px); overflow: hidden; background: #e8eaee; }
.ip-article-image img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.ip-article-image:hover img { transform: scale(1.02); }
.ip-featured-article h3 a:hover, .ip-article-list h3 a:hover { color: var(--ip-blue); }
.ip-featured-article div > p { display: -webkit-box; max-width: 760px; margin: 18px 0 0; overflow: hidden; color: var(--ip-copy); font-size: 15px; line-height: 1.78; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ip-article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; margin: 48px 0 0; border-top: 1px solid var(--ip-line); }
.ip-article-list article { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--ip-line); }
.ip-article-list article + article { margin-left: 0; }
.ip-article-list p { margin: 3px 0 0; color: var(--ip-blue); font-size: 12px; }
.ip-article-list h3 { margin: 0; color: #414854; font-size: 15px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }

.ip-about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); gap: clamp(56px, 6vw, 80px); margin-top: var(--ip-section-content-gap); }
.ip-about-copy > p { max-width: 680px; margin: 0; color: var(--ip-copy); font: 400 17px/1.8 var(--ip-sans); letter-spacing: normal; overflow-wrap: anywhere; text-wrap: pretty; }
.ip-about-subtitle { margin: 24px 0 8px; color: var(--ip-muted); font: 400 12px/1.5 var(--ip-sans); letter-spacing: .02em; }
.ip-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ip-topics span { padding: 8px 13px; border: 1px solid #d9dde5; border-radius: 999px; color: #4f5662; font-size: 13px; }
.ip-social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.ip-social-links a { display: inline-flex; align-items: center; gap: 7px; border-bottom: 1px solid #aeb4bf; color: var(--ip-copy); font-size: 14px; font-weight: 680; }
.ip-social-links a:hover { border-color: var(--ip-blue); color: var(--ip-blue); }
.ip-social-links span { color: var(--ip-blue); }
.ip-evidence { margin: 0; border-top: 1px solid var(--ip-line); }
.ip-evidence > div { display: grid; grid-template-columns: minmax(100px,.35fr) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ip-line); }
.ip-evidence dt { font-weight: 760; }
.ip-evidence dd { margin: 0; color: var(--ip-copy); }

.ip-space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 42px; }
.ip-space-card { min-width: 0; }
.ip-space-image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #e8eaee; }
.ip-space-image img { height: 100%; object-fit: cover; transition: transform .4s ease; }
.ip-space-image:hover img { transform: scale(1.025); }
.ip-space-card p { margin: 18px 0 5px; color: var(--ip-muted); font-size: 12px; }
.ip-space-card h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.ip-space-card h3 a:hover { color: var(--ip-blue); }

.ip-closing { min-height: 420px; padding: 88px max(32px, calc((100vw - var(--ip-content-max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 56px; background: #0b0e14; color: #fff; }
.ip-closing p { margin: 0 0 18px; color: #7fa0ff; font-size: 13px; font-weight: 760; letter-spacing: .12em; }
.ip-closing h2 { margin: 0; font: 500 clamp(36px, 4vw, 56px)/1.28 var(--ip-serif); letter-spacing: -.03em; text-wrap: balance; }
.ip-closing-action { display: inline-flex; flex: 0 0 auto; min-width: 154px; min-height: 56px; align-items: center; justify-content: center; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ip-blue); color: #fff; font-weight: 760; cursor: pointer; }
.ip-closing-action:hover { background: #3768f4; }
.ip-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(24px, calc((100vw - var(--ip-max)) / 2)); background: #080a0f; color: rgba(255,255,255,.5); font-size: 12px; }
.ip-footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ip-footer a:hover { color: #fff; }
body #wisoffice-im-widget .wo-fab { display: none !important; }

@media (max-width: 900px) {
  .ip-header { height: 72px; padding-inline: 22px; }
  .ip-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .ip-navigation { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 100px 28px 50px; visibility: hidden; opacity: 0; background: rgba(8,11,16,.98); font-size: 28px; transition: opacity .2s ease, visibility .2s ease; }
  .ip-navigation.is-open { visibility: visible; opacity: 1; }
  .ip-navigation .ip-nav-contact { width: 100%; margin-top: 20px; font-size: 16px; }
  .ip-hero { min-height: 100svh; }
  .ip-hero-media { inset: 0; width: 100%; min-width: 0; }
  .ip-hero-media img { object-position: 52% 18%; }
  .ip-hero-shade { background: linear-gradient(180deg, rgba(6,9,14,.04) 0%, rgba(6,9,14,.13) 36%, rgba(6,9,14,.9) 69%, #070a0f 100%); }
  .ip-hero-inner { width: calc(100% - 44px); min-height: 100svh; justify-content: flex-end; padding: 92px 0 84px; }
  .ip-eyebrow { margin-bottom: 12px; font-size: 11px; }
  .ip-hero h1 { max-width: 100%; font-size: clamp(48px, 15vw, 72px); line-height: .98; }
  .ip-positioning { max-width: 620px; margin-top: 18px; font-size: clamp(24px, 7.2vw, 34px); }
  .ip-hero-copy { display: none; }
  .ip-primary-action { width: 100%; margin-top: 24px; }
  .ip-scroll-cue { display: none; }
  .ip-section { width: calc(100% - 48px); padding: 70px 0; }
  .ip-view-feature, .ip-featured-article, .ip-about-layout { grid-template-columns: 1fr; gap: 36px; }
  .ip-space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-closing { min-height: 400px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 600px) {
  :root {
    --ip-section-title-size: 13px;
    --ip-feature-size: 26px;
    --ip-feature-line: 1.48;
    --ip-section-content-gap: 28px;
  }
  .ip-brand span { font-size: 14px; }
  .ip-hero-media img { object-position: 50% 13%; }
  .ip-hero-inner { width: calc(100% - 36px); padding-bottom: max(48px, env(safe-area-inset-bottom)); }
  .ip-hero h1 { font-size: clamp(45px, 14vw, 62px); }
  .ip-positioning { font-size: 25px; line-height: 1.36; }
  .ip-section { width: calc(100% - 40px); padding: 52px 0; }
  .ip-section h2 { line-height: 1.4; }
  .ip-section-label, .ip-section-heading > div { display: flex; gap: 11px; }
  .ip-section-number, .ip-section-label span { display: block; margin-bottom: 0; font-size: 9px; }
  .ip-section-heading { align-items: center; }
  .ip-section-heading > a { margin-top: 0; font-size: 12px; white-space: nowrap; }
  .ip-view-feature { gap: 30px; }
  .ip-view-feature cite { margin-top: 18px; }
  .ip-view-list li { grid-template-columns: 28px 1fr; gap: 12px; padding: 17px 0; }
  .ip-view-list h3 { font-size: 17px; line-height: 1.45; }
  .ip-view-list p { margin-top: 5px; font-size: 14px; line-height: 1.65; }
  .ip-featured-article { gap: 28px; margin-top: 0; }
  .ip-article-image { height: auto; aspect-ratio: 4/3; }
  .ip-featured-article div > p { margin-top: 14px; line-height: 1.72; }
  .ip-article-list { grid-template-columns: 1fr; margin-top: 30px; }
  .ip-article-list article { grid-template-columns: 28px 1fr; gap: 11px; padding: 18px 0; }
  .ip-article-list article + article { margin-left: 0; }
  .ip-about-layout { gap: 30px; }
  .ip-about-copy > p { font-size: 16px; }
  .ip-topics { margin-top: 22px; }
  .ip-social-links { margin-top: 22px; }
  .ip-evidence > div { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
  .ip-space-grid { display: flex; gap: 16px; width: calc(100vw - 18px); margin-top: 30px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding-right: 18px; scrollbar-width: none; }
  .ip-space-grid::-webkit-scrollbar { display: none; }
  .ip-space-card { flex: 0 0 82vw; scroll-snap-align: start; }
  .ip-closing { min-height: 370px; padding: 64px 20px; gap: 36px; }
  .ip-closing h2 { font-size: 32px; line-height: 1.34; }
  .ip-closing-action { width: 100%; }
  .ip-footer { align-items: flex-start; flex-direction: column; padding: 28px 18px calc(28px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* The personal homepage's contact belongs to its IP, not the site's shared IM inbox. */
.ip-contact-dialog { width: min(480px, calc(100% - 32px)); border: 1px solid #dedee4; border-radius: 20px; padding: 28px; color: #161a22; background: #faf9f6; }
.ip-contact-dialog::backdrop { background: #080c1477; backdrop-filter: blur(5px); }
.ip-contact-dialog header { display: flex; justify-content: space-between; align-items: center; }
.ip-contact-dialog h2 { font-size: 22px; font-weight: 500; margin: 0; }
.ip-contact-dialog p, .ip-contact-dialog small { font-size: 13px; color: #717886; line-height: 1.7; }
.ip-contact-dialog label { display: grid; gap: 8px; margin: 18px 0; font-size: 14px; }
.ip-contact-dialog input, .ip-contact-dialog textarea { width: 100%; box-sizing: border-box; border: 1px solid #d7dbe3; border-radius: 8px; padding: 12px; font: inherit; background: #fff; }
.ip-contact-dialog button { cursor: pointer; border: none; background: transparent; font: inherit; }
.ip-contact-dialog [type="submit"] { display: block; margin-top: 20px; width: 100%; padding: 14px; border-radius: 10px; background: #2456ee; color: white; }
.ip-contact-dialog button:disabled { opacity: .6; cursor: default; }
