:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --panel: #111620;
  --panel-raised: #171e2b;
  --text: #f1f4f9;
  --muted: #adb7c9;
  --line: #283347;
  --accent: #9bf1cc;
  --accent-ink: #081811;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.68; }
a { color: inherit; text-underline-offset: .23em; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--accent-ink); background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; padding: 9px 16px; background: var(--accent); color: var(--accent-ink); transform: translateY(-200%); z-index: 5; }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap, .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.top .wrap { min-height: 67px; }
.brand { text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.brand span, .intro h1 span { color: var(--accent); }
.top nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 34px); }
.top nav a, .footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 620; }
.top nav a:hover, .footer nav a:hover, .text-link:hover { color: var(--accent); }
.top nav a:last-child { color: var(--text); }
.footer .wrap { min-height: 80px; }
.footer small { color: var(--muted); }
.kicker, .feature-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; font-weight: 650; }
.kicker { margin-bottom: 16px; color: var(--accent); text-transform: uppercase; }

.intro { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0 0 0 26%; z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), #0b0e14f5 12%, #0b0e145e 44%, #0b0e1422 85%), linear-gradient(0deg, #0b0e14 0%, #0b0e1400 47%, #0b0e144c 100%); }
.intro-inner { position: relative; display: flex; min-height: clamp(395px, 31vw, 460px); align-items: center; padding-block: 49px 53px; }
.intro-content { width: min(630px, 65%); }
.intro h1 { font-size: clamp(80px, 9.4vw, 139px); line-height: .84; font-weight: 790; letter-spacing: -.085em; margin: 0 0 23px; }
.position { font-size: clamp(24px, 3vw, 39px); font-weight: 690; line-height: 1.25; letter-spacing: -.05em; margin-bottom: 11px; }
.intro-copy { color: #c2ccdc; max-width: 48ch; margin-bottom: 22px; font-size: clamp(15px, 1.3vw, 17px); }
.hero-credit { position: absolute; bottom: 16px; right: 0; color: #d2dce9; font-size: 12px; text-decoration: none; background: #0b0e14b0; padding: 5px 8px; }
.hero-credit:hover { color: var(--accent); }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.button, .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 690; }
.button { color: var(--accent-ink); background: var(--accent); text-decoration: none; border: 1px solid var(--accent); border-radius: 4px; padding: 9px 15px; }
.button:hover { background: #c2ffe4; border-color: #c2ffe4; }
.text-link { text-decoration-color: #718098; }
.text-link:hover { text-decoration-color: currentColor; }

.work { padding-top: 35px; scroll-margin-top: 12px; }
.section-title { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-title h2 { margin: 0; font-size: clamp(29px, 3.4vw, 44px); letter-spacing: -.06em; }
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 18px; }
.feature { min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.feature-art { display: block; position: relative; height: clamp(218px, 19vw, 270px); background: #0d1321; overflow: hidden; border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--line); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.feature-art--portrait { display: flex; justify-content: center; align-items: start; gap: 15px; padding: 22px 12px 0; background: radial-gradient(ellipse at 55% 28%, #294865 0%, #102033 65%, #111825 100%); }
.feature-art--portrait img { width: auto; height: 105%; aspect-ratio: 620 / 1350; object-fit: cover; border: 2px solid #92b3d1; border-radius: 13px; box-shadow: 0 12px 22px #0008; }
.feature-art--portrait img:first-child { transform: translateY(20px); opacity: .84; }
.feature-body { padding: 17px clamp(17px, 2.4vw, 29px) 22px; display: flex; flex-direction: column; align-items: start; flex: 1; }
.feature-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; margin-bottom: 10px; color: var(--muted); }
.release { color: var(--accent); }
.release::before { content: ""; display: inline-block; width: .45em; height: .45em; margin: 0 .55em .13em 0; border-radius: 100%; background: currentColor; }
.feature-heading { position: absolute; inset: auto 0 0; padding: 34px clamp(17px, 2.4vw, 29px) 15px; background: linear-gradient(transparent, #0a0e18e8 50%, #0a0e18f7); }
.feature-heading .feature-meta { margin-bottom: 5px; color: #c3cce0; }
.feature h3 { font-size: clamp(26px, 3vw, 39px); letter-spacing: -.054em; margin: 0; color: var(--text); }
.feature-art:hover h3 { color: var(--accent); }
.feature-body > p { color: var(--muted); font-size: 15px; margin-bottom: 15px; }
.focus { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 14px; margin: auto 0 15px; padding-top: 13px; border-top: 1px solid var(--line); width: 100%; }
.focus dt { color: var(--muted); }
.focus dd { margin: 0; }

.more { margin-block: 70px 75px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 18px; }
.project { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.project img { width: 100%; aspect-ratio: 1.9; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.project div { padding-block: 12px; border-bottom: 1px solid var(--line); flex: 1; }
.project h3 { font-size: clamp(17px, 2vw, 24px); margin-bottom: 5px; letter-spacing: -.035em; }
.project:hover h3 { color: var(--accent); }
.project p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.project .arrow { float: right; margin-left: 7px; color: var(--accent); }
.about { background: var(--panel); border-block: 1px solid var(--line); padding-block: 49px; }
.about .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px 34px; align-items: center; }
.about h2 { font-size: clamp(29px, 4vw, 47px); letter-spacing: -.06em; margin-bottom: 10px; }
.about p { margin-bottom: 0; max-width: 49ch; color: var(--muted); }
.about .actions { justify-content: flex-end; }
.dashboard { margin-top: 10px; }

.case { padding-block: 22px 62px; }
.crumb { margin-bottom: 19px; }
.case-heading { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 18px 42px; margin-bottom: 28px; }
.case-heading h1 { margin-bottom: 10px; font-size: clamp(39px, 6vw, 80px); letter-spacing: -.067em; }
.case-heading .sub { color: var(--muted); margin: 0; max-width: 54ch; font-size: 16px; }
.case-heading .actions { justify-content: flex-end; }
.case-media { margin: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.case-media > img { width: 100%; max-height: 520px; object-fit: contain; }
.case-media--portrait { padding-block: 18px; background: radial-gradient(ellipse at 50% 0, #264e75, #111b2a 75%); }
.case-media--portrait > img { width: auto; max-height: 430px; }
.case-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 55px; margin-top: 30px; }
.case-content article { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 21px; }
.case-content h2, .gallery h2 { font-size: clamp(24px, 3vw, 33px); margin-bottom: 11px; letter-spacing: -.04em; }
.case-content p, .case-content li { color: var(--muted); }
.case-content p:last-child { margin-bottom: 0; }
.case-content ul { padding-left: 21px; margin-bottom: 9px; }
.case-content li + li { margin-top: 9px; }
.case-content .decisions { list-style: none; margin: 0; padding: 0; }
.decisions li { background: var(--panel); border-left: 2px solid #4a8e81; padding: 14px 15px; }
.decisions h3 { margin-bottom: 6px; color: var(--text); font-size: 17px; }
.case-content aside { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 21px; align-self: start; }
.case-content aside h2 { font-size: 22px; }
.case-content dl { margin: 0; }
.case-content dt { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.case-content dd { color: var(--muted); margin: 3px 0 11px; }
.case-content dd:last-child { margin-bottom: 0; }
.clip { margin-block: 20px 34px; }
.clip-trigger { display: flex; align-items: center; gap: 11px; width: 100%; background: var(--panel); padding: 14px 16px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 700; }
.clip-trigger:hover { background: var(--panel-raised); }
.clip video { width: 100%; background: var(--panel); }
.gallery { margin-top: 27px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery-grid a { display: grid; place-items: center; min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.gallery-grid img { width: 100%; height: clamp(118px, 19vw, 231px); object-fit: contain; }
.gallery-dialog { max-width: min(1100px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.gallery-dialog::backdrop { background: #06080cef; }
.gallery-dialog img { max-height: 77dvh; margin: auto; object-fit: contain; }
.gallery-dialog button { display: block; margin: 6px 6px 6px auto; min-height: 44px; padding-inline: 14px; color: inherit; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.case-end { margin-top: 28px; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 64px); }
  .case-heading { gap: 16px 25px; }
  .case-content { gap: 16px 25px; }
}

@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .top .wrap { min-height: 57px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 13px; padding-block: 12px; }
  .intro-inner { min-height: 405px; align-items: end; padding-block: 64px 39px; }
  .intro-content { width: 100%; }
  .hero-art { inset: 0 0 0 21%; }
  .hero-art img { object-position: 57% 46%; transform: scale(1.5); transform-origin: 58% 87%; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg) 1%, #0b0e14a8 65%, #0b0e1440 100%), linear-gradient(90deg, var(--bg), #0b0e1400 70%); }
  .intro h1 { font-size: clamp(75px, 20vw, 103px); margin-bottom: 17px; }
  .intro-copy { margin-bottom: 14px; }
  .hero-credit { font-size: 10px; bottom: 5px; padding: 2px 0; }
  .work { padding-top: 27px; }
  .section-title { margin-bottom: 15px; }
  .featured-grid, .about .wrap, .case-heading, .case-content { grid-template-columns: 1fr; }
  .featured-grid { gap: 14px; }
  .feature-art { height: auto; aspect-ratio: 1.75; }
  .feature-art--portrait { padding-top: 16px; }
  .feature-body { padding: 15px 15px 17px; }
  .feature-body > p { margin-bottom: 12px; }
  .focus { margin-bottom: 11px; padding-top: 9px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .project p { font-size: 13px; }
  .more { margin-block: 43px 46px; }
  .about { padding-block: 29px; }
  .about .actions, .case-heading .actions { justify-content: flex-start; }
  .footer .wrap { min-height: 65px; }
  .case { padding-block: 12px 38px; }
  .case-media--portrait > img { max-height: 330px; }
  .case-content { margin-top: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.contacts { display: grid; gap: 6px; margin: 14px 0 0; font-size: 14px; }
.contacts div { display: grid; grid-template-columns: 3.3em 1fr; gap: 10px; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; overflow-wrap: anywhere; }
.contacts a:hover { color: var(--accent); }
.about .contacts { width: max-content; max-width: 100%; margin-left: auto; }
.case-role { color: var(--accent); margin: 0 0 6px; }
.case-media--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: min(13vw, 145px); gap: 16px; }
.case-media--pair > img { border: 1px solid var(--line); border-radius: 8px; }
.gallery-grid a:has(span) { display: flex; flex-direction: column; text-decoration: none; }
.gallery-grid span { width: 100%; text-align: center; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.ops-section { margin-block: 35px; }
.ops-note { display: flex; gap: 4px 15px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.ops-note .text-link { color: var(--accent); }
.ops-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin: 16px 0; }
.ops-stats div { display: flex; flex-direction: column-reverse; padding: 12px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.ops-stats dd { margin: 0; font-family: var(--mono); font-weight: 720; font-size: clamp(25px,4vw,38px); color: var(--accent); }
.ops-stats dt { font-size: 13px; color: var(--muted); }
.ops-image { margin: 0; }
.ops-image img { width: 100%; border: 1px solid var(--line); border-radius: 7px; }
.ops-image figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }

.resume { padding-block: 22px 56px; }
.resume-header { display: grid; grid-template-columns: 1.75fr 1fr; align-items: end; gap: 17px 34px; padding-block: 13px 25px; border-bottom: 1px solid var(--line); }
.resume-header h1 { font-size: clamp(53px,8vw,96px); line-height: .92; letter-spacing: -.075em; margin-bottom: 16px; }
.resume-header h1 span { color: var(--accent); }
.resume-header .position { font-size: clamp(20px,3vw,31px); }
.resume-location { color: var(--muted); margin: 0; }
.resume-header .contacts { margin-bottom: 3px; }
.resume-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px 45px; margin-top: 28px; }
.resume-section { padding: 20px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.resume-section h2 { font-size: clamp(21px, 2.7vw, 31px); letter-spacing: -.045em; margin-bottom: 14px; }
.resume-section h3 { margin-bottom: 6px; font-size: 19px; }
.resume-section p, .resume-section li, .resume-skills dd { color: var(--muted); font-size: 14px; }
.resume-section p { margin-bottom: 9px; }
.resume-section ul { padding-left: 19px; margin: 8px 0 0; }
.resume-project + .resume-project { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 17px; }
.resume-project-title h3 a:hover { color: var(--accent); }
.resume-project .resume-stack { color: var(--accent); }
.resume-section .resume-awards { margin-bottom: 13px; }
.resume-skills { margin: 0; }
.resume-skills div + div { margin-top: 11px; }
.resume-skills dt { font-weight: 700; }
.resume-skills dd { margin: 2px 0 0; }

@media (min-width: 691px) {
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-heading .feature-meta { font-size: 11px; gap: 2px 8px; }
  .feature h3 { font-size: clamp(24px, 2.5vw, 36px); }
  .feature-body .actions { gap: 5px 11px; }
}
@media (max-width: 690px) {
  .top nav { gap: 9px 13px; }
  .about .contacts { margin-left: 0; }
  .case-media--pair { padding-inline: 11px; gap: 9px; }
  .ops-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .resume-grid, .resume-header { grid-template-columns: 1fr; }
  .resume-grid { gap: 0; }
  .resume-section { padding: 15px; }
}
