@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=switzer@300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    /* brand type stacks — `Icons` kept last so Cargo glyph icons still render */
    --brand-sans: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, Icons;
    --brand-display: 'Clash Display', 'Switzer', -apple-system, sans-serif, Icons;
    --brand-mono: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, Icons;
    /* one consistent hover dim for links on the dark UI */
    --link-hover: rgba(255, 255, 255, 0.55);
    --ink: rgba(255, 255, 255, 0.92);
    /* Motion-inspired easing (motion.dev): natural settle + gentle spring */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
    --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

#toolset {
	display: none;
}

.unmute-button,
[class*="unmute"],
[class*="Unmute"] {
  display: none !important;
}
body {
	background-color: #000;
	color: var(--ink);
}

a:active {
	opacity: 0.8;
}

.page a.active {
	color: #bebebe;
    
}
/* 1. 默认状态：坐标统一改为 11 11 */
body, html, iframe, video, .video_component, embed, object {
    cursor: url('https://freight.cargo.site/t/original/i/e72a3d2f7c2ea476ec3fa8d6cec2dc32e4034a0613be184e3301338ede281224/cursor.png') 11 11, auto !important;
}

/* 2. 交互状态：坐标也必须是 11 11 */
a, 
a:hover, 
.pointer, 
button, 
.image-gallery,
[data-scale="true"] { 
    cursor: url('https://freight.cargo.site/t/original/i/9e730dc0208a75cd2c9231ea37e70ea95f4f77ff084a02cd1480cdf6471020a8/Ellipse-2.png') 11 11, pointer !important;
}

a, 
a:hover, 
.pointer, 
button, 
.image-gallery,
[data-scale="true"] { /* Cargo 特有的缩放交互 */
    cursor: url('https://freight.cargo.site/t/original/i/9e730dc0208a75cd2c9231ea37e70ea95f4f77ff084a02cd1480cdf6471020a8/Ellipse-2.png') 15 15, pointer !important;
}


i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sub {
	position: relative;
	vertical-align: baseline;
 display: inline-block;
    padding: 5px 12px;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .5px;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: uppercase;
    transition: all 0.2s ease;
 white-space: normal;
}
.tech-tag:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

@media (max-width: 375px) {
    sub {
        font-size: 5px;
        padding: 3px 5px;
        margin: 0 2px 2px 0;
        letter-spacing: 0.1px;
        border: .2px solid #fff;
    }
}
@media (max-width: 480px) {
    sub {
        font-size: 6px;
        padding: 3px 5px;
        margin: 0 2px 2px 0;
        letter-spacing: 0.1px;
        border: .2px solid #fff;
    }
}
sub {
	top: 0.3em;
}
p sub,
div sub {
    white-space: normal;
}

sup {
	top: -1.5em;
}
/* 基础 sup 标签样式重置 */
sup.typewriter {
    vertical-align: baseline;
    font-size: 38px;
    position: relative;
    top: -250;
    display: block;
    font-weight: 400;
    letter-spacing: 1.px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
    margin: 10px 0;
    font-style: normal;
    text-transform: none;
}
/* === 小平板/大手机 (480px - 768px) === */
@media (max-width: 375px) {
    sup.typewriter {
        font-size: 6px;
        top: -10px;
        letter-spacing: 0.5px;
        line-height: 1.;
        margin: 15px 0;
    }
}
@media (max-width: 480px) {
    sup.typewriter {
        font-size: 7px;
        top: -10px;
        letter-spacing: 0.8px;
        line-height: 1.0;
        margin: 10px 0;
    }
}
/* 打字机动画容器 */
sup.typewriter {
    overflow: hidden;
    border-right: .5px solid rgba(0, 0, 0, 0.91);
    white-space: nowrap;
    animation: typing 5s steps(80, end) forwards,
               blink-caret 0.75s step-end infinite 1s;
    max-width: 0;
}

/* 逐字打字效果 */
@keyframes typing {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

/* 光标闪烁效果 */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #666;
    }
}

/* 动画完成后移除光标 */
sup.typewriter.finished {
    border-right: none;
    animation: none;
}

s {
	text-decoration: line-through;
}

img {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0 0 0 2.5em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 1em;
}

hr {
	background: rgba(0, 0, 0, 0.6);
	border: 0;
	height: 2px;
	display: block;
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;
}

.content img {
	float: none;
	margin-bottom: 0;
    vertical-align: bottom;
}

[image-gallery="slideshow"] {
    margin-bottom: 2rem;
}

.gallery_image_caption {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
	font-weight: 300;
	color: rgba(255, 254, 254, 0.8);
	font-family: "IBM Plex Sans", Icons;
	font-style: normal;
	line-height: 1.2;	
}

/**
 * Loading Animation
 */

.loading[data-loading] {
	position: fixed;
	bottom: 8px; 
    left: 8px;
}

/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 1);
	font-family: "Monument Grotesk Variable", Icons;
	line-height: 1.3;
	font-style: normal;
	font-weight: 500;
	font-variation-settings: 'slnt' 0, 'MONO' 0;
}

[data-predefined-style="true"] bodycopy a {
	color: #fff;
	text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {

}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

/* 所有链接的 hover 变灰效果 */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* h1 标题链接 hover 效果 */
[data-predefined-style="true"] h1 a {
    transition: color 0.3s ease;
	color: rgba(210, 210, 210, 0.85);
}

[data-predefined-style="true"] h1 a:hover {
    color: var(--link-hover) !important;
}

/* h2 标题链接 hover 效果 */
[data-predefined-style="true"] h2 a {
    transition: color 0.3s ease;
	color: rgba(0, 0, 0, 0.99);
}

[data-predefined-style="true"] h2 a:hover {
    color: var(--link-hover) !important;
}

/* bodycopy 正文链接 hover 效果 */
[data-predefined-style="true"] bodycopy a {
    transition: color 0.3s ease;
}

[data-predefined-style="true"] bodycopy a:hover {
    color: var(--link-hover) !important;
}

/* 缩略图标题链接 hover 效果 */
.thumbnails .title a {
    transition: color 0.3s ease;
}

.thumbnails .title a:hover {
    color: var(--link-hover) !important;
}

/* 缩略图标签链接 hover 效果 */
.thumbnails .tags a {
    transition: color 0.3s ease;
}

.thumbnails .tags a:hover {
    color: var(--link-hover) !important;
}

/* Site Menu 链接 hover 效果 */
#site_menu .page-link a,
#site_menu .set-link > a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

#site_menu .page-link a:hover,
#site_menu .set-link > a:hover {
    color: var(--link-hover) !important;
}
#site_menu .page-link a:hover,

#site_menu .set-link > a:hover {
    text-decoration: underline;
    color: inherit;
    opacity: 1;
}


/* —— 针对 cargo 默认生成的 image-gallery —— */

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0px; /* 如果你想要图之间没有空隙 */
}

.image-gallery > div {
  position: relative;
  overflow: hidden;
}

/* 图片本体 */
.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}

/* hover 图片轻微zoom，可删 */
.image-gallery > div:hover img {
  transform: scale(1.015);
}

/* caption 转成 overlay */
.image-gallery div .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  box-sizing: border-box;

  color: #fff;
  font-size: 14px;
  line-height: 1.3;

  background: black;

  opacity: 0.2;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* hover 显示 caption */
.image-gallery > div:hover .caption {
  opacity: 1;
}


/* Shop Button hover 效果 */
#shop_button {
    transition: color 0.3s ease, opacity 0.3s ease;
}

#shop_button:hover {
    color: #888 !important;
    opacity: 0.7;
}

[data-predefined-style="true"] h1 {
	font-family: "IBM Plex Sans", Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 2.4rem;
	line-height: 1.2;
	color: rgba(255, 255, 255, 1);
}

[data-predefined-style="true"] h1 a {
	color: rgba(0, 0, 0, 0.75);
}

[data-predefined-style="true"] h2 {
	font-family: "IBM Plex Sans", Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: rgba(255, 255, 255, 0.97);
	font-size: 1.7rem;
	line-height: 1.5;
	}

[data-predefined-style="true"] h2 a {
	color: rgba(0, 0, 0, 0.75);
}

[data-predefined-style="true"] small {
	display: inline-block;
	font-size: 1rem;
	line-height: 1.1;
	font-family: "IBM Plex Sans", Icons;
	font-style: normal;
	font-weight: 400;
	color: rgba(255, 255, 255, 1);
}

[data-predefined-style="true"] small a {
	color: rgba(255, 255, 255, 0.66);
	border-bottom-width: 0em;
}
a.breakdown {
    text-decoration: underline;
}

/**
 * Breakpoints
 */


[data-css-preset] .page {
    background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
	position: relative;
	max-width: 100%;
	width: 100%;
	background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
	margin-left: auto /*!content_center*/;
	margin-right: auto /*!content_center*/;
	text-align: left /*!text_left*/;
}

[data-css-preset] body {
	background-color: rgb(0, 0, 0)/*!body_bgcolor*/;
}

[data-css-preset] .container_width {
	width: 100%/*!content_center*/;
}

[data-css-preset] .content_padding {
	padding-top:2rem/*!main_margin*/;
	padding-bottom: 2rem/*!main_margin*/;
	padding-left: 2rem/*!main_margin*/;
	padding-right: 2rem/*!main_margin*/;
}


/**
 * Thumbnails
 */

div[thumbnails] {
	justify-content: flex-start;
}

[data-css-preset] .thumbnails {
   	background-color: rgba(0, 0, 0, 0)/*!thumbnails_bgcolor*/;   
}

[data-css-preset] .thumbnails_width {
    width: 96%/*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
    padding: 0.75rem/*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
    margin: -1.5rem/*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
    padding: 0.5rem/*!responsive_thumbnails_padding*/; 
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
    margin: -1rem/*!responsive_thumbnails_padding*/; 
}

.thumbnails .thumb_image {
	outline: 0px solid rgba(0,0,0,.12);
    outline-offset: -1px;
}

.thumbnails .title {
    margin-top: 1.0rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	font-family: "IBM Plex Sans", Icons;
	font-style: normal;
	line-height: 1.3;
}

.thumbnails .tags {
    margin-top: .8rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
	font-weight: 400;
	color: rgba(238, 238, 238, 0.6);
	font-family: "IBM Plex Mono", Icons;
	font-style: normal;
	line-height: 1.2;
}

.thumbnails .tags a {
	border-bottom: 0;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.thumbnails .has_title .tags {
	margin-top: -1.3rem;
}

/**
 * Site Menu Button
 */

[data-css-preset] #site_menu_button {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
    font-size: 28px /*!site_menu_button*/;
    padding: 6px;
    line-height: 1;
    background: rgba(33, 32, 46, 0);
    position: fixed;
	right: 3rem /*!site_menu_button*/;
	top: 3rem /*!site_menu_button*/;
}

body.mobile #site_menu_button {
	margin: -10px;
    font-size: 25px;
}

#site_menu_button.custom_icon {
	width: 40px;
    height: auto;
}

#site_menu_button.active {
	display: none;
}


/**
 * Site Menu
 */

#site_menu {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	background: rgba(0, 0, 0, 0.9);
	font-size: 40px;
	font-style: normal;
	font-weight: 400;
	padding: 20px 30px 90px 30px;
	max-width: 400px;
	min-width: 300px;
	text-align: left;
	display: flex;
	justify-content: flex-start;
}

body.mobile #site_menu {
	width: 30%;
}

#site_menu .page-link a {
	color: rgba(255, 255, 255, 0.85);
}

#site_menu .set-link > a {
	color: rgba(255, 255, 255, 0.75);
	font-weight: bold;
}

#site_menu a:active {
	opacity: .7;
}

#site_menu a.active {
	opacity: .4;
}

#site_menu .close {
	display: none;
	color: rgba(255, 255, 255, 0.4);
	line-height: .85em;
	font-size: 45px;
}

body.mobile #site_menu .close {
	display: block;
	font-size: 40px;
	line-height: 1em;
}

#site_menu .break {
	height: 28px;
}

#site_menu .indent {
	margin-left: 28px;
}

/*
 * Shop Button
 */

[data-css-preset] #shop_button {
	color: rgba(0, 0, 0, 0.85);
    background: transparent;
	font-size: 32px;
    font-style: normal;
	font-weight: 400;
    line-height: 1;
    position: fixed;
	padding: 6px;
	top: 1rem /*!shop_button*/;
	left: 1.5rem /*!shop_button*/;
}

#shop_button.text {
    font-size: 1.6rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.75);
	font-family: Diatype, Icons;
    padding: 0;
    line-height: 1.3;
	font-style: normal;
}

#shop_button.custom_icon {
	width: 40px;
    height: auto;
}

body.mobile #shop_button:not(.text) {
	margin: -6px;
    font-size: 40px;
}

/*
 * Shop Product Widget
 */

.shop_product {
    width: 100%;
	max-width: 22rem;
    position: relative;
    display: block;
}

.shop_product .price {
	font-family: Diatype, Icons;
	font-size: 1.6rem;
	line-height: 1;
	color: rgba(0, 0, 0, 0.75);
    display: block;
    margin-bottom: 1rem;
	font-style: normal;
	font-weight: 400;
}

.shop_product .dropdown {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-size: 1.3rem;
    display: inline-block;
	width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    background:  white url(https://static.cargo.site/assets/images/select-line-arrows.svg) no-repeat right;
    margin-bottom: 1rem;
    line-height: 1.4;
    padding: .7rem 2.5rem 0.6rem 1rem;
	font-style: normal;
	font-weight: 400;
    color: rgba(0, 0, 0, 0.75);
}

.shop_product .button {
	font-family: Diatype, Icons;
	font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.75);
    color: rgba(255,255,255,1);
    flex: 0 0 50%;
    text-align: left;
    display: inline-block;
	line-height: 1;
    padding: .8rem 1rem 0.8rem;
	font-style: normal;
	font-weight: 700;
}

/*
 * Image Zoom
 */

.content img.image-zoom:active {
  opacity: .7;
}

/**
 * Quick View
 */

[data-css-preset] .quick-view {
    padding-top: 1.7rem /*!quick_view_padding*/;
    padding-bottom: 1.7rem /*!quick_view_padding*/;
    padding-left: 1.7rem /*!quick_view_padding*/;
    padding-right: 1.7rem /*!quick_view_padding*/;
    height: 89% /*!quick_view_height*/;
    width: 87% /*!quick_view_width*/;
}

body.mobile .quick-view {
    width: 100%;
    height: 100%;
    margin: 0;
}


[data-css-preset] .quick-view-background {
	background: rgba(0, 0, 0, 1) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
	font-family: Nunito, Icons;
    transition: 100ms opacity ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 3.5rem 0;
    text-align: center;
    font-size: 1.3rem;
	font-style: normal;
	font-weight: 300;
    line-height: 1.3;
}

.quick-view-caption span {
    padding: 0.5rem 1rem;
    display: inline-block;
    background: rgba(0, 0, 0, 1);
    color: white;
}


/**
 * Quick View Navigation 
 */

.quick-view-navigation .left-arrow {
    left: 150px;
}

.quick-view-navigation .right-arrow {
    right: 150px;
}

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 0px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
    stroke: rgba(220, 220, 220, 0.85);
    stroke-width: 2px;
}

.quick-view-navigation .close-button {  
    top: 10px;
    right: 10px;
    /* Change height/width together to scale */
    width: 36px;
    height: 36px;
}

.quick-view-navigation .close-button .inner-color {
    stroke: #fff;
    stroke-width: 0px;
}

.quick-view-navigation .close-button .outer-color {
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: 2px;
}

/** 
 * Image Gallery Navigation Arrows 
 */
 
.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 2px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 3px;
}

/**
 * Wallpaper Backdrop Navigation Arrows 
 */

.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
   /* Change height/width together to scale */
   width: 36px;
   height: 36px;
}

.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
   stroke: #fff;
    stroke-width: 2px;
}

.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 3px;
}


/**
 * Feed
 */

.feed .content_container .page {
    border-top: 0px dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:first-child .page {
	border-top: 0;
}



/*
 * Audio Player
 */

.audio-player {
    max-width: 36rem;
    height: 3.3rem;
    outline: 1px solid rgba(0,0,0,0.15);
    color: rgba(0, 0, 0, 0.6);
    background: #fff;
    font-size: 1.4rem;
    line-height: 1.3;
	font-family: Diatype, Icons;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin: 1px 1px 1em 1px;
}

body.mobile .audio-player {
    max-width: 100%;
}

.audio-player .separator {
    width: 1px;
    background-color: rgba(0,0,0,0.15);
}

.audio-player .button {
    background: transparent;
    cursor: pointer;
    fill: rgba(0, 0, 0, 0.85);
}

.audio-player .icon {
    fill: rgba(0, 0, 0, 0.85);
    padding: 30%;
    width: 100%;
    margin: auto;
}

.audio-player .buffer {
    background: rgba(0,0,0,0.03);
}

.audio-player .progress {
    background: rgba(0,0,0,0.1);
}

.audio-player .progress-indicator {
    border: 1px solid rgba(0, 0, 0, 0.7);
    width: 1px;
    height: 100%;
    right: 0;
    position: absolute;
    cursor: ew-resize;
}

.audio-player .note-icon {
    height: 100%;
    width: 3.8rem;
    padding: 0.9rem;
    fill: rgba(0, 0, 0, 0.5);
}

.audio-player .current-time {
    padding-left: 1rem;
}

.audio-player .total-time {
    padding-right: 1rem;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, black);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-container:hover::before {
  opacity: 1;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
}

hr {
    border: none;
    background: #fff;
    height: 1px;
}
/* ============================================
   CARGO SITE CUSTOM CSS - TAG OVERLAY SYSTEM
   复制以下代码到 Cargo 网站的 Design > Custom CSS
   ============================================ */

/* 为每个项目图片添加标签容器 */
.project-cover::after {
    content: attr(data-tags);
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

/* 标签基础样式 - 白色线框 1px */
.tech-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid #fff;
    border-radius: 1px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tech-tag:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

/* 如果 Cargo 使用 grid 布局 */
.project-item {
    position: relative;
}

.project-item .tags-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 100;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tech-tag {
        font-size: 9px;
        padding: 4px 10px;
    }
    
    .project-item .tags-overlay {
        bottom: 12px;
        left: 12px;
        gap: 6px;
    }
}

/* Cargo 特定选择器 (需要检查你的实际 HTML 结构) */
/* 如果你的图片在 .thumb 容器内 */
.thumb {
    position: relative;
}

.thumb .tech-tags {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
}

/* 确保标签在悬停时可见 */
.project-cover:hover .tech-tags,
.thumb:hover .tech-tags {
    opacity: 1;
}

/* 可选：添加淡入效果 */
.tech-tags {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-cover:hover .tech-tags,
.thumb:hover .tech-tags {
    opacity: 1;
}

/* 如果需要标签始终可见，删除上面的 opacity 规则 */


/* ============================================================
   GLOBAL POLISH — the invisible craft that reads as "premium"
   (selection · scrollbar · font smoothing · no tap-flash · focus)
   ============================================================ */

/* Crisp type rendering across the whole site */
html { -webkit-text-size-adjust: 100%; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Kill the mobile tap blue/grey flash everywhere (incl. iOS buttons) */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Refined text selection — monochrome, not the default browser blue */
::selection { background: #fff; color: #000; }
::-moz-selection { background: #fff; color: #000; }

/* Slim NATIVE scrollbar — color-scheme: dark tints it dark + subtle.
   (No custom light thumb: a white-ish thumb reads as a stray white
   vertical line beside the right-column cards on desktop.) */
html { scrollbar-width: thin; }

/* Focus rings only for keyboard users — no ugly outline on mouse click */
:focus { outline: none; }
:focus-visible {
    outline: 1.5px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Smooth in-page anchor scrolling, but respect reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}


/* ============================================================
   BRAND TYPOGRAPHY — unify Cargo's default-rendered text to the
   portfolio system (Switzer / Clash Display / Space Mono) so
   Blog / project / thumbnail / menu pages match the custom pages.
   Additive overrides only — no layout touched. `Icons` is kept in
   each --brand-* stack so Cargo's glyph icons still render.
   ============================================================ */
[data-predefined-style="true"] bodycopy {
    font-family: var(--brand-sans);
    letter-spacing: -0.01em;
}
[data-predefined-style="true"] h1 {
    font-family: var(--brand-display);
    font-weight: 600;
    letter-spacing: -0.025em;
}
[data-predefined-style="true"] h2 {
    font-family: var(--brand-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}
[data-predefined-style="true"] h3,
[data-predefined-style="true"] h4 {
    font-family: var(--brand-sans);
    letter-spacing: -0.01em;
}
[data-predefined-style="true"] small {
    font-family: var(--brand-sans);
}
.gallery_image_caption {
    font-family: var(--brand-sans);
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
}
.thumbnails .title {
    font-family: var(--brand-sans);
    font-weight: 500;
    letter-spacing: -0.015em;
}
.thumbnails .tags {
    font-family: var(--brand-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
#site_menu {
    font-family: var(--brand-sans);
    letter-spacing: -0.01em;
}
#site_menu_button {
    font-family: var(--brand-sans);
}


/* ============================================================
   MOTION SYSTEM — Motion-inspired (motion.dev) easing & micro-
   interactions, in pure CSS so every page (incl. Cargo defaults)
   moves with the same natural, spring-settled feel.
   ============================================================ */

/* all links settle on the natural curve, not the browser's linear ease */
a {
    transition: color 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

/* image-gallery: smoother, slightly deeper hover zoom + caption fade */
.image-gallery img {
    transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.image-gallery > div:hover img {
    transform: scale(1.035);
}
.image-gallery div .caption {
    transition: opacity 0.5s var(--ease-out);
}

/* thumbnails: gentle media zoom on hover (harmless if structure differs) */
.thumbnails .thumb_image,
.thumbnails .thumb_link { overflow: hidden; }
.thumbnails .thumb_image img,
.thumbnails .thumb_image video {
    transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
    will-change: transform;
}
.thumbnails .thumb_image:hover img,
.thumbnails a:hover .thumb_image img,
.thumbnails .thumb_image:hover video {
    transform: scale(1.035);
}

/* site-menu items: slide + fade rather than a hard recolor */
#site_menu .page-link a,
#site_menu .set-link > a {
    display: inline-block;
    transition: color 0.35s var(--ease-out), transform 0.4s var(--ease-out), opacity 0.35s var(--ease-out);
}
#site_menu .page-link a:hover,
#site_menu .set-link > a:hover {
    transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
    a, .image-gallery img, .thumbnails .thumb_image img,
    [data-predefined-style="true"] bodycopy a,
    #site_menu .page-link a, #site_menu .set-link > a {
        transition: none !important;
    }
    .image-gallery > div:hover img,
    .thumbnails .thumb_image:hover img { transform: none !important; }
}

/* GSAP scroll-progress bar (driven from Custom HTML via ScrollTrigger scrub) */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    opacity: 0.85;
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 100000;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    #scroll-progress { display: none; }
}

/* Social icons injected into the site menu (see Custom HTML).
   Shown in the mobile menu; a horizontal row of bordered icon buttons. */
#site_menu .menu-social {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
body.mobile #site_menu .menu-social { display: flex; }
#site_menu .menu-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
#site_menu .menu-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}
#site_menu .menu-social svg { width: 24px; height: 24px; display: block; }


/* ============================================================
   SYSTEM-LEVEL POLISH — browser/UA details that separate a
   studio site from a template. Zero layout risk, big "feel" win.
   ============================================================ */

/* Tell the browser the UI is dark: native controls, form widgets,
   scrollbars and overscroll background all render dark (no white flash). */
:root {
    color-scheme: dark;
    accent-color: #fff;
}

/* Black base + no rubber-band white edges on mobile overscroll. */
html {
    background: #000;
    overscroll-behavior: none;
    /* fixed header offset so #anchor jumps don't hide under the nav */
    scroll-padding-top: 6rem;
}
[id] { scroll-margin-top: 6rem; }

/* Modern typographic finish: evenly-balanced headlines, no orphan
   words in body copy. Progressive enhancement — ignored where unsupported. */
h1, h2, h3,
.section-title, .work-card-title, .work-title, .lab-title,
.about-hero-title, .about-experience-title {
    text-wrap: balance;
}
p, li, bodycopy, .work-card-desc, .work-hover, .home-hero-intro {
    text-wrap: pretty;
}

/* Video embeds: the site declares color-scheme: dark, but cross-origin
   players (Vimeo) are light content — on a mismatch the browser paints
   the iframe an OPAQUE WHITE canvas (CSS background can't cover it),
   which leaks out as a white outline at sub-pixel edges. Declaring
   light on the iframe element restores transparency. Black background
   keeps any letterbox / pre-load area invisible on the dark site. */
iframe {
    color-scheme: light;
}
.image-gallery iframe,
iframe[src*="player.vimeo"],
iframe[data-src*="player.vimeo"] {
    background: #000;
    border: 0;
}

/* ============================================================
   RESEARCH LOG SYSTEM (.weekly-progress)
   Shared by ALL blog / research-log pages. Each page carries
   MARKUP ONLY — behavior (accordion, scroll-spy, reveal) lives
   in the global Custom HTML. New post = copy the markup skeleton.
   ============================================================ */

html {
    scroll-behavior: smooth;
}

.weekly-progress {
    /* Break out of Cargo's content column: viewport width minus
       side margins, capped at 1760px, always centered. */
    max-width: none;
    margin: 4rem max(calc(50% - 50vw + 4rem), calc(50% - 880px));
    position: relative;
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.progress-header {
    margin-bottom: 5rem;
}

.log-eyebrow {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.75rem;
}

.progress-title {
    font-family: 'Clash Display', 'Switzer', -apple-system, sans-serif;
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1.02;
    color: #fff;
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

.progress-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.65;
    max-width: 560px;
}

/* Tech stack: one editorial line, not chips */
.log-stack {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.9;
    margin: 2.25rem 0 0;
    max-width: 720px;
}

/* Phase overview: hairline index grid (About language), no boxes */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.5rem;
    margin: 0 0 6rem;
}

.phase {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1.4rem;
}

.phase-eyebrow {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.phase-name {
    font-family: 'Clash Display', 'Switzer', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 1rem;
}

.phase-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phase-list li {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.log-section-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.75rem;
}

/* Progress Tracker — minimal right-edge text rail, no box */
.progress-tracker {
    position: fixed;
    top: 50%;
    right: 2.5rem;
    transform: translateY(-50%);
    text-align: right;
    z-index: 100;
}

.tracker-title {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.1rem;
}

.tracker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tracker-item {
    margin-bottom: 0.35rem;
}

.tracker-item a {
    display: block;
    padding: 0.1rem 0;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.25s ease;
}

.tracker-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tracker-item.active a {
    color: #fff;
}

/* Accordion list */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-week {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
    scroll-margin-top: 2rem;
}

.accordion-week:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-week:hover {
    background: rgba(255, 255, 255, 0.01);
}

.week-header {
    width: 100%;
    display: grid;
    grid-template-columns: 160px 1fr auto 40px;
    align-items: center;
    gap: 2.5rem;
    padding: 2.8rem 0;
    background: none;
    border: none;
    text-align: left;
    position: relative;
}

.week-button {
    width: 100%;
    display: grid;
    grid-template-columns: 160px 1fr auto 40px;
    align-items: center;
    gap: 2.5rem;
    padding: 2.8rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: padding 0.3s ease;
    position: relative;
}

/* About-style hover: row nudges right */
.week-button:hover {
    padding-left: 1.5rem;
}

/* Toggle icon: About-style plus / minus */
.toggle-icon {
    position: relative;
    width: 18px;
    height: 18px;
    justify-self: center;
}
.toggle-icon svg { display: none; }
.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.toggle-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.toggle-icon::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
/* expanded (default) shows minus; collapsed shows plus */
.accordion-week:not(.is-collapsed) .toggle-icon::after { transform: translateX(-50%) scaleY(0); }
.week-button:hover .toggle-icon::before,
.week-button:hover .toggle-icon::after { background: #fff; }

/* Week number */
.week-num {
    font-family: 'Clash Display', 'Switzer', -apple-system, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color 0.4s ease;
}
.accordion-week:hover .week-num { color: #fff; }

.week-details {
    min-width: 0;
}

.week-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.week-period {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Status: minimal dot + label, no chip */
.week-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.accordion-week.status-completed .status-indicator {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.accordion-week.status-progress .status-indicator {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

/* Collapsible panel: open by default; collapse animates max-height.
   JS measures scrollHeight before animating so long panels never clip. */
.week-panel {
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-week.is-collapsed .week-panel { max-height: 0; }
@media (prefers-reduced-motion: reduce) {
    .week-panel { transition: none; }
}

.panel-content {
    padding: 0 0 3.5rem calc(160px + 2.5rem);
}

/* Content typography */
.content-block {
    margin-bottom: 2.5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-label {
    font-family: 'Clash Display', 'Switzer', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.content-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 300;
}

.content-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.content-body p {
    margin-bottom: 1.2rem;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.content-body a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.content-body a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.content-body strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.content-body ol,
.content-body ul {
    margin-bottom: 1.2rem;
}

.content-body li {
    margin-bottom: 0.8rem;
}

/* Task list */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.task-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

/* Deliverables list */
.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.deliverables-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.deliverables-list li::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    top: 0;
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Todo list */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.todo-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.todo-list li::before {
    content: '○';
    position: absolute;
    left: 0.5rem;
    top: 0;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 1.1rem;
}

/* Images grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.grid-image {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    aspect-ratio: 16/9;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Highlight current week */
.accordion-week.current-week {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 100%
    );
}

/* Reserve room for the fixed rail so it never overlaps content */
@media (min-width: 1025px) {
    .weekly-progress {
        padding-right: 7rem;
    }
}

/* Research log: tablet */
@media (max-width: 1024px) {
    .progress-tracker {
        display: none;
    }

    .week-header,
    .week-button {
        grid-template-columns: 120px 1fr auto 40px;
        gap: 2rem;
        padding: 2rem 0;
    }

    .panel-content {
        padding-left: calc(120px + 2rem);
    }
}

/* Research log: mobile */
@media (max-width: 768px) {
    .weekly-progress {
        margin: 2.5rem max(calc(50% - 50vw + 1.25rem), calc(50% - 880px));
    }

    .week-header,
    .week-button {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 1.75rem 0;
    }

    .week-num {
        font-size: 1.15rem;
        justify-self: start;
    }

    .week-name {
        font-size: 1.3rem;
    }

    .week-period {
        font-size: 0.9rem;
    }

    .week-status {
        justify-self: start;
    }

    .toggle-icon {
        position: absolute;
        top: 1.85rem;
        right: 0;
    }

    .panel-content {
        padding-left: 0;
    }

    .images-grid {
        grid-template-columns: 1fr;
    }
}
