:root {
  color-scheme: light;
  --ink: #17344d;
  --ink-2: #ffffff;
  --panel: #e5f4ff;
  --paper: #f6fbff;
  --muted: #5b7388;
  --line: rgba(23, 52, 77, 0.14);
  --accent: #2998df;
  --accent-2: #e47b4f;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 6%, rgba(103, 193, 244, .28), transparent 30rem),
    radial-gradient(circle at 88% 2%, rgba(255,255,255,.9), transparent 24rem),
    linear-gradient(180deg, #eaf7ff 0%, #f9fcff 48%, #edf8ff 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 252, 255, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--accent); color: var(--ink); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .88rem; }
.nav a { color: #3c5870; transition: color .2s ease; }
.nav a:hover { color: var(--accent); }
.nav .nav-cta { padding: 9px 17px; border: 1px solid var(--accent); color: var(--accent); }

.hero {
  min-height: 0;
  padding-block: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}
.hero-copy { position: relative; }
.hero-copy::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -90px;
  top: -70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  filter: blur(60px);
  pointer-events: none;
}
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(4rem, 9vw, 8rem); line-height: .82; letter-spacing: -.07em; }
h1 span { display: block; margin-top: 26px; color: #4a7fa7; -webkit-text-stroke: 0; font-size: clamp(1.45rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.04em; }
.hero-intro { max-width: 690px; color: #526e84; font-size: clamp(1.03rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--line); font-weight: 750; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.hero-facts li { min-height: 0; padding: 12px 16px; background: rgba(255,255,255,.72); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { margin-bottom: 4px; color: var(--ink); font-size: .84rem; }
.hero-facts span { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.portrait-card { position: relative; width: min(100%, 200px); justify-self: end; }
.portrait-card::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); z-index: -1; }
.portrait-slot { aspect-ratio: 4 / 5; }
.portrait-meta { display: flex; justify-content: space-between; gap: 8px; padding: 13px 14px; background: #fff; color: var(--ink); }
.portrait-meta span { font-size: .68rem; letter-spacing: .14em; }
.portrait-meta strong { font-size: .72rem; text-align: right; }

.media-slot { position: relative; overflow: hidden; isolation: isolate; background: #0b1821; }
.media-slot .slot-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; }
.media-slot::after { content: ""; position: absolute; inset: 12%; z-index: -1; border: 1px solid rgba(77,227,193,.36); transform: rotate(-4deg); }
.slot-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.slot-copy span { margin-bottom: 10px; color: var(--accent); font-size: .68rem; letter-spacing: .16em; }
.slot-copy strong { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.slot-copy small { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.play-icon { position: absolute; left: 50%; top: 34%; width: 70px; height: 70px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); }
.play-icon::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--accent); }
.media-loaded .slot-copy, .media-loaded .slot-grid, .media-loaded .play-icon { display: none; }
.media-loaded::after { display: none; }

.ticker { overflow: hidden; padding: 17px 0; border-block: 1px solid var(--line); background: var(--accent); color: var(--ink); }
.ticker div { width: max-content; display: flex; align-items: center; gap: 26px; padding-left: 24px; white-space: nowrap; font-size: .76rem; font-weight: 900; letter-spacing: .13em; animation: marquee 26s linear infinite; }
.ticker i { width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-32%); } }

.section { padding-block: clamp(58px, 7vw, 88px); }
.section-heading { display: grid; grid-template-columns: minmax(500px, 1.1fr) .9fr; align-items: end; column-gap: 42px; margin-bottom: 36px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .95; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 440px; margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.video-gallery { display: grid; gap: 34px; }
.video-group { display: grid; gap: 16px; }
.video-group-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.video-group-header h3 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.video-group-kicker { margin: 0 0 8px; color: var(--accent-2); font-size: .75rem; font-weight: 850; letter-spacing: .13em; }
.video-group-count { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .13em; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.video-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.92); box-shadow: 0 18px 48px rgba(41,116,166,.09); }
.video-card-wide { grid-column: 1 / -1; }
.video-frame { position: relative; overflow: hidden; background: #020609; }
.video-frame video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; background: #020609; object-fit: contain; pointer-events: auto; }
.video-frame video::-webkit-media-controls-timeline { pointer-events: auto; }
.video-timeline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); background: #020609; }
.video-timeline input { width: 100%; cursor: pointer; accent-color: var(--accent); touch-action: none; }
.video-timeline input:disabled { cursor: wait; opacity: .45; }
.video-time { min-width: 86px; color: #aab9b8; font-size: .75rem; font-variant-numeric: tabular-nums; text-align: right; }
.video-timeline.is-loading .video-time { color: var(--accent-2); }
.video-timeline.seek-error .video-time { color: #ff8c72; }
.video-copy { position: relative; min-height: 0; padding: 20px 30px 22px; }
.video-copy .video-number { position: absolute; right: 28px; top: 17px; color: var(--accent); font-family: Georgia, serif; font-size: 2rem; }
.video-copy .video-label { margin: 0 64px 8px 0; color: var(--accent-2); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.video-copy h3 { max-width: 76%; margin-bottom: 13px; font-size: 1.45rem; line-height: 1.25; }
.video-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.video-empty { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 30px; border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; text-align: center; }
.video-empty.hidden { display: none; }
.video-empty span { color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .15em; }
.video-empty strong { margin: 13px 0 4px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.video-empty p { margin: 0; color: var(--muted); }
.project-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--line); }
.project-notes article { min-height: 220px; padding: 27px; border-right: 1px solid var(--line); background: rgba(255,255,255,.78); }
.project-notes article:last-child { border-right: 0; }
.project-notes span { color: var(--accent); font-family: Georgia, serif; font-size: 1.7rem; }
.project-notes h3 { margin: 48px 0 10px; font-size: 1.2rem; }
.project-notes p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
#work { padding-bottom: 0; }

.experience-section { padding: 24px 0 38px; background: #dff1fd; color: var(--ink); }
.experience-section .eyebrow { color: #247fb9; }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; }
.split-heading .section-heading { display: block; margin-bottom: 45px; }
.split-note { max-width: 370px; margin: 0 0 55px auto; color: #4d6364; }
.timeline { border-top: 2px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 190px 1fr 1.2fr; gap: 36px; padding-block: 34px; border-bottom: 1px solid rgba(7,16,24,.2); }
.timeline-item time { font-size: .85rem; font-weight: 850; letter-spacing: .05em; }
.timeline-item h3 { margin-bottom: 4px; font-size: 1.22rem; }
.timeline-item .role { margin: 0; color: #247fb9; font-weight: 800; }
.timeline-item > p { margin: 0; color: #415556; font-size: 1.05rem; line-height: 1.75; }

.project-experience .section-heading { margin-bottom: 42px; }
.project-experience-grid { display: grid; grid-template-columns: minmax(0, 780px); gap: 18px; }
.project-case { min-height: 260px; padding: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.84); box-shadow: 0 18px 48px rgba(41,116,166,.08); }
.project-case-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); padding: 0; overflow: hidden; }
.project-case-video { background: #071a2c; }
.project-case-video video { display: block; width: 100%; height: 100%; min-height: 290px; background: #071a2c; object-fit: contain; }
.project-case-copy { padding: 30px; }
.project-case span { display: inline-block; color: #247fb9; font-size: .76rem; font-weight: 850; letter-spacing: .08em; }
.project-case h3 { margin: 58px 0 16px; font-size: 1.35rem; line-height: 1.35; }
.project-case p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

.capabilities .section-heading { grid-template-columns: 1fr; }
.project-experience { padding: 38px 0 0; }
.capabilities { padding-block: 34px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.capability { min-height: 205px; padding: 24px 26px; border-right: 1px solid var(--line); background: rgba(255,255,255,.8); }
.capability:last-child { border-right: 0; }
.capability span { color: var(--accent); font-family: Georgia, serif; font-size: 1.8rem; }
.capability h3 { margin: 30px 0 10px; font-size: 1.3rem; }
.capability p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.award { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); margin-top: 22px; overflow: hidden; border: 1px solid var(--accent); background: rgba(255,255,255,.9); }
.award-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.award-copy .eyebrow { margin-bottom: 18px; }
.award-copy h3 { margin-bottom: 10px; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2; }
.award-copy strong { color: var(--accent); font-size: 1.15rem; }
.award-copy p:not(.eyebrow) { margin: 22px 0 14px; color: var(--muted); }
.award-copy span { color: var(--ink); font-size: .9rem; }
.award-copy .award-honors { margin: 18px 0 0; color: var(--accent); font-size: 1.28rem; font-weight: 850; line-height: 1.45; }
.award-certificate { margin: 0; padding: 16px; background: #f8f5ef; }
.award-certificate img { width: 100%; height: auto; object-fit: contain; }
.award-certificate figcaption { padding: 12px 4px 0; color: #5f4a35; font-size: .78rem; text-align: center; }

.contact { padding-block: clamp(85px, 11vw, 140px); background: linear-gradient(135deg, #b9e1fa, #ddf3ff); color: var(--ink); }
.contact .eyebrow { color: var(--ink); }
.contact-inner { display: block; }
.contact h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.06em; }
.contact-links { border-top: 2px solid var(--ink); }
.contact-links a { display: flex; flex-direction: column; gap: 3px; padding: 22px 0; border-bottom: 1px solid rgba(7,16,24,.32); }
.contact-links span { font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.contact-links strong { font-size: clamp(1rem, 2vw, 1.25rem); }
.footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .portrait-card { width: min(100%, 190px); justify-self: start; }
  .split-heading, .contact-inner { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 150px 1fr; }
  .timeline-item > p { grid-column: 2; }
  .project-experience-grid { grid-template-columns: 1fr; }
  .project-case { min-height: auto; }
  .project-case h3 { margin-top: 34px; }
  .project-case-featured { grid-template-columns: 1fr; }
  .project-case-video video { min-height: 0; aspect-ratio: 16 / 9; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability:nth-child(2) { border-right: 0; }
  .capability:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-links { margin-top: 10px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100vw - 28px); }
  .site-header { height: 66px; padding-inline: 14px; }
  .brand > span:last-child { display: none; }
  .nav .nav-cta { padding: 7px 12px; }
  .hero { min-height: auto; padding-block: 50px 70px; }
  h1 { font-size: clamp(3.4rem, 19vw, 5.2rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { min-height: auto; }
  .portrait-card::after { inset: 10px -8px -8px 10px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 22px; }
  .video-gallery { gap: 30px; }
  .video-group { gap: 14px; }
  .video-group-header { align-items: start; flex-direction: column; gap: 7px; }
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
  .video-card-wide { grid-column: auto; }
  .project-notes { grid-template-columns: 1fr; }
  .project-notes article { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-notes article:last-child { border-bottom: 0; }
  .project-notes h3 { margin-top: 30px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .timeline-item > p { grid-column: 1; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: 0; padding-block: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability:last-child { border-bottom: 0; }
  .capability h3 { margin-top: 22px; }
  .award { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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