:root {
  color-scheme: light;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --ink: #151515;
  --secondary: #66666b;
  --surface: #ffffff;
  --canvas: #f5f5f7;
  --line: rgba(20, 20, 24, .12);
  --blue: #007aff;
  --focus: 0 0 0 4px rgba(0, 122, 255, .28);
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f5f5f7;
    --secondary: #a1a1a6;
    --surface: #1c1c1e;
    --canvas: #050505;
    --line: rgba(255, 255, 255, .14);
    --blue: #0a84ff;
  }
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: var(--font-system); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 0; box-shadow: var(--focus); }

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #111;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(20, 20, 24, .08);
}

.home-header { position: absolute; inset: 0 0 auto; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: #111; text-decoration: none; font-size: 18px; font-weight: 760; letter-spacing: .08em; }
.wordmark-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #111; border-radius: 11px; font-size: 16px; letter-spacing: 0; }
.top-nav { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 34px); }
.top-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; color: #4d4d52; text-decoration: none; font-size: 14px; font-weight: 560; }
.top-nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: #111; border-radius: 999px; transform: scaleX(0); transition: transform .2s ease; }
.top-nav a:hover, .top-nav a.active { color: #111; }
.top-nav a:hover::after, .top-nav a.active::after { transform: scaleX(1); }

.home-root, .home-root body { min-height: 100%; }
.home-root { background: #0c1016; }
.home-page { min-height: 100vh; overflow: hidden; background: #0c1016; }
.home-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 72px) 24px 90px;
  color: #fff;
  isolation: isolate;
  background: #111 url("./assets/hero-background.jpg") center 52% / cover no-repeat;
}
.home-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 7, 12, .26), rgba(3, 7, 12, .22) 42%, rgba(3, 7, 12, .64)), linear-gradient(90deg, rgba(3, 7, 12, .38), transparent 68%); }
.home-hero-content { width: min(920px, 100%); text-align: center; text-shadow: 0 2px 28px rgba(0, 0, 0, .34); animation: rise-in .7s cubic-bezier(.25, .1, .25, 1) both; }
.home-eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.home-hero h1 { margin: 0; font-size: clamp(42px, 7.5vw, 82px); line-height: 1.08; letter-spacing: -.055em; font-weight: 680; }
.hero-line { display: block; white-space: nowrap; }
.home-lead { max-width: 650px; margin: 22px auto 0; color: rgba(255, 255, 255, .88); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.portal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; text-shadow: none; }
.portal-button { min-height: 56px; min-width: 210px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 22px 0 26px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 680; box-shadow: 0 10px 34px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.25, .1, .25, 1), box-shadow .2s ease; }
.portal-button:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .28); }
.portal-button:active { transform: scale(.98); }
.portal-button.primary { color: #111; background: #fff; }
.portal-button.secondary { color: #fff; background: #087df2; }
.portal-button span:last-child { font-size: 20px; }
.home-footer { position: absolute; inset: auto clamp(20px, 5vw, 72px) 24px; display: flex; justify-content: space-between; gap: 16px; color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 600; letter-spacing: .1em; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.about-page { background: var(--surface); }
.about-page main { overflow: hidden; }
.profile-hero { max-width: 1440px; min-height: 650px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; margin: 0 auto; padding: clamp(72px, 9vw, 128px) clamp(24px, 6vw, 88px); }
.profile-copy { max-width: 650px; }
.section-label { margin: 0 0 13px; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: .16em; }
.profile-copy h1, .about-section h2, .closing-banner h2 { margin: 0; letter-spacing: -.045em; line-height: 1.08; }
.profile-copy h1 { font-size: clamp(44px, 5vw, 68px); }
.profile-lead { margin: 24px 0 0; color: var(--secondary); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.78; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.profile-tags span { padding: 8px 13px; color: var(--secondary); background: var(--canvas); border-radius: 999px; font-size: 12px; font-weight: 650; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.about-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 680; transition: transform .15s ease; }
.about-button:active { transform: scale(.98); }
.about-button.primary { color: #fff; background: var(--blue); }
.about-button.secondary { color: var(--ink); background: var(--canvas); }
.profile-photo { min-height: 480px; aspect-ratio: 1.08 / 1; background: #111 url("./assets/hero-background.jpg") 67% center / cover no-repeat; border-radius: 32px; box-shadow: 0 28px 80px rgba(0, 0, 0, .18); }

.about-section { max-width: 1280px; margin: 0 auto; padding: clamp(68px, 8vw, 112px) clamp(24px, 6vw, 64px); border-top: 1px solid var(--line); }
.intro-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 9vw, 120px); }
.about-section h2, .closing-banner h2 { font-size: clamp(36px, 5vw, 58px); }
.intro-copy p { margin: 0; color: var(--secondary); font-size: 17px; line-height: 1.82; }
.intro-copy p + p { margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--secondary); line-height: 1.65; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work-card { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--canvas); border-radius: 24px; }
.work-card.featured { grid-row: span 2; color: #fff; background: #0c0d10; }
.work-index { color: var(--secondary); font-size: 12px; font-weight: 700; }
.featured .work-index { color: rgba(255, 255, 255, .55); }
.work-type { margin: 0 0 9px; color: var(--blue); font-size: 10px; font-weight: 740; letter-spacing: .14em; }
.work-card h3 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.work-card p:last-child { margin: 14px 0 0; color: var(--secondary); line-height: 1.72; }
.featured p:last-child { color: rgba(255, 255, 255, .72); }
.capabilities { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 9vw, 120px); }
.capability-list { margin: 0; }
.capability-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.capability-list > div:first-child { padding-top: 0; }
.capability-list dt { font-weight: 720; }
.capability-list dd { margin: 0; color: var(--secondary); line-height: 1.6; }
.closing-banner { max-width: 1160px; margin: 0 auto clamp(60px, 8vw, 110px); padding: clamp(56px, 7vw, 88px); color: #fff; background: linear-gradient(135deg, #087df2, #6255de); border-radius: 32px; text-align: center; }
.closing-banner .section-label { color: rgba(255, 255, 255, .75); }
.closing-banner h2 { max-width: 820px; margin-inline: auto; }
.closing-banner a { min-height: 48px; display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 0 20px; color: #111; background: #fff; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; }
.about-footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(24px, 6vw, 88px); color: var(--secondary); background: var(--canvas); font-size: 12px; }
.about-footer div { display: flex; gap: 24px; }
.about-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 860px) {
  .profile-hero { grid-template-columns: 1fr; padding-top: 72px; }
  .profile-photo { min-height: 360px; order: -1; border-radius: 24px; }
  .intro-section, .capabilities { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --header-height: 64px; }
  .site-header { gap: 10px; padding: 0 14px; }
  .wordmark { gap: 7px; font-size: 14px; }
  .wordmark-mark { width: 32px; height: 32px; border-radius: 10px; }
  .top-nav { gap: 0; }
  .top-nav a { padding: 0 7px; font-size: 12px; }
  .top-nav a::after { left: 7px; right: 7px; }
  .home-hero { align-items: end; padding: calc(var(--header-height) + 64px) 20px 112px; background-position: 64% center; }
  .home-hero-overlay { background: linear-gradient(180deg, rgba(3, 7, 12, .18), rgba(3, 7, 12, .36) 45%, rgba(3, 7, 12, .86)); }
  .home-hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .home-lead { font-size: 15px; }
  .portal-actions { display: grid; }
  .portal-button { width: min(290px, 100%); }
  .home-footer { justify-content: center; }
  .home-footer span:last-child { display: none; }
  .profile-hero { min-height: 0; padding: 40px 20px 72px; }
  .profile-photo { min-height: 300px; }
  .profile-copy h1 { font-size: 40px; }
  .about-section { padding: 64px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-row: auto; }
  .capability-list > div { grid-template-columns: 1fr; gap: 6px; }
  .closing-banner { margin: 0 16px 64px; padding: 54px 22px; border-radius: 24px; }
  .about-footer { padding: 14px 20px; }
}

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