* {
  outline: none !important;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hanging-punctuation: first;
}

html, body {
  position: relative;
  width: 100%;
}

/* Cookie */

.cookie-banner {
  position: fixed;
  bottom: 5.8rem;
  left: 1.2rem;
  right: 1.2rem;
  max-width: 360px;
  padding: 16px 20px;
  background: var(--bs-body-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bs-body-color);
  font-size: 13px;
  line-height: 1.4;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgb(from var(--bs-body-color) r g b / 10%);
  z-index: 9999;
}

.cookie-banner p {
  margin: 0 0 12px 0;
  font-size: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner button {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.cookie-banner button.secondary {
  background: transparent;
  color: var(--bs-body-color);
  border: 1px solid var(--bs-body-color);
}

.cookie-banner button:not(.secondary) {
  background: var(--bs-body-color);
  color: var(--bs-body-bg);
}

@media (max-width: 768px) {
  .cookie-banner {
    max-width: calc(100vw - 2.4rem);
  }
}

/* text */

body {
  font-family: 'Hanabi', 'Noto Serif SC', Georgia, 'Times New Roman', Times, serif;
  font-feature-settings: "dlig",'liga','kern','onum';
}

p, .hover-title {
  margin-top: 0;
  margin-bottom: .5rem;
  letter-spacing: .02em;
}

@media only screen and (max-width: 992px) {
  p, .hover-title {
    margin-top: 0;
    margin-bottom: .5rem;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .02em;
  }
}

.span-link {
  font-size: 1.4em;
  letter-spacing: .02em;
}

a:active, a:focus button:active button:focus *:focus {
  outline: 0 !important;
  border: none !important;
  -moz-outline-style: none !important;
}

.smcp {
  font-feature-settings: "smcp";
}

/* blur footer */

.blur-ctrl {
  box-shadow: 0 0 1px rgba(var(--bs-border-color), 0.3);
  box-shadow: 0px 0px 1px rgb(from var(--bs-border-color) r g b / 30%);
  background-color: rgba(var(--bs-body-bg), 0.72);
  background-color: rgb(from var(--bs-body-bg) r g b / 72%);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.clean-block {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: .5rem;
}

/* brand */

.brand {
  color: var(--bs-primary);
  font-size: 1.6rem;
}

.brand :hover {
  color: var(--bs-link-hover-color);
}

img, svg {
  vertical-align: middle;
  max-width: inherit;
  max-height: inherit;
}

hr {
  margin: 0.8rem 0;
  color: var(--bs-primary);
  background-color: currentColor;
  /*border: 0;*/
  opacity: .72;
}

/* input styling */

::selection {
  background: rgba(195,19,65,0.18);
}

input[type=text]:focus {
  outline: none;
  caret-color: var(--bs-primary);
}

.sapce {
  margin: 6rem;
}

.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  padding: 1.2rem;
}

.menu {
  font-size: 1.5rem;
}

.row-cols-xl-3 > * {
  flex: 0 0 auto;
  width: 32.9923333333%;
}

/* nav desktop Link */

.input-index {
  font-size: 3.5vw;
  overflow-wrap: break-word;
}

@media only screen and (max-width: 833px) {
  .input-index {
    font-size: 8vw;
    overflow-wrap: break-word;
  }
}

@media (max-width: 300px) {
  .input-index {
    font-size: 10vw;
    overflow-wrap: normal;
  }
}

.margin-post {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* testnav */

/* 基础重置与通用样式 */

#menustate {
  display: none;
}

input {
  margin: 0;
  padding: 0;
  font-synthesis: none;
  direction: ltr;
  text-align: left;
}

#globalnav {
  font-weight: normal;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  margin: 0;
  width: 100%;
  min-width: 1024px;
  height: 4.6rem;
}

/* 全局盒模型重置 */

#globalnav, #globalnav *, #globalnav *::before, #globalnav *::after {
  box-sizing: content-box;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  letter-spacing: normal;
}

#globalnav div, #globalnav aside, #globalnav section {
  display: block;
}

#globalnav ul {
  list-style: none;
}

#globalnav, #globalnav input, #globalnav button {
  font-synthesis: none;
  direction: ltr;
  text-align: left;
}

#globalnav .content {
  max-width: 980px;
  position: relative;
  z-index: 2;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

#globalnav .header {
  display: none;
  position: relative;
  z-index: 5;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

#globalnav .header .item, #globalnav .header .link {
  height: 48px;
}

#globalnav .list {
  cursor: default;
  width: auto;
  height: 44px;
  display: flex;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
}

#globalnav .link:hover, #globalnav .link:focus {
  opacity: 1;
  transition: none;
}

#globalnav .link-text {
  overflow: hidden;
}

#globalnav .menuicon {
  right: 0;
  position: absolute;
  z-index: 2;
  top: 0;
  width: 100%;
  border-bottom: none;
  -webkit-tap-highlight-color: transparent;
}

#globalnav .menuicon-label {
  display: block;
  position: absolute;
  opacity: .8;
  z-index: 3;
  top: 0;
  right: 0;
  width: 100%;
  height: 4.6rem;
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0px 0px 1px rgb(0 0 0 / 30%);
}

#globalnav .menuicon-arrow {
  position: absolute;
  z-index: 3;
  top: 19px;
  right: 19px;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  transform: none;
}

/* 中等屏幕适配 */

@media only screen and (max-width: 1044px) {
  #globalnav {
    min-width: 320px;
  }
}

/* =========================================
   移动端/响应式核心样式 (合并后的媒体查询)
   ========================================= */

/* 导航栏容器 */

@media only screen and (max-width: 992px) {
  #globalnav {
    overflow-y: hidden;
    max-height: none;
    transition: background .44s .2s cubic-bezier(0.52, 0.16, 0.24, 1), height .56s cubic-bezier(0.52, 0.16, 0.24, 1);
  }
}

/* 菜单展开状态 (利用 ~ 选择器) */

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav, #menustate:target ~ #globalnav {
    height: 100%;
    overflow-y: hidden;
    transition: background .36s cubic-bezier(0.32, 0.08, 0.24, 1), height .56s cubic-bezier(0.52, 0.16, 0.24, 1);
  }
}

/* 内容区域 */

@media only screen and (max-width: 992px) {
  #globalnav .content {
    padding: 1.2rem;
    height: calc(85vh - env(safe-area-inset-bottom));
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* 头部与列表 */

@media only screen and (max-width: 992px) {
  #globalnav .header {
    display: block;
  }
}

@media only screen and (max-width: 992px) {
  #globalnav .list {
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    line-height: 3.2rem;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    transition: visibility 0s linear 1s;
  }
}

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .list, #menustate:target ~ #globalnav .list {
    visibility: visible;
    transition-delay: 0s;
  }
}

/* 菜单项基础样式 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu {
    opacity: 0;
    pointer-events: none;
    padding-top: 1px;
  }
}

/* 分割线优化：从第2个元素开始应用 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu:nth-child(n + 2)::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #c31341;
    opacity: 0.72;
  }
}

/* 链接字体样式 */

@media only screen and (max-width: 992px) {
  #globalnav .link {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -.022em;
    font-family: "Hanabi", "Noto Serif SC", serif;
  }
}

@media only screen and (max-width: 992px) {
  #globalnav .item-menu .link {
    background-position: left center;
    display: block;
    outline-offset: 0;
    padding: 0;
    width: auto;
    max-width: none;
  }
}

/* === 瀑布流动画 (关闭状态) === */

/* 第1个 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu:nth-child(1) {
    transition: opacity .1s cubic-bezier(0.52, 0.16, 0.52, 0.84) .15s, transform .1s cubic-bezier(0.52, 0.16, 0.52, 0.84) .01s;
  }
}

/* 第2个 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu:nth-child(2) {
    transform: translateY(-44px);
    transition: opacity .3345s cubic-bezier(0.52, 0.16, 0.52, 0.84) .15s, transform .4669s cubic-bezier(0.52, 0.16, 0.52, 0.84) .108s;
  }
}

/* 第3个 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu:nth-child(3) {
    transform: translateY(-40px);
    transition: opacity .30573s cubic-bezier(0.52, 0.16, 0.52, 0.84) .13667s, transform .45552s cubic-bezier(0.52, 0.16, 0.52, 0.84) .09933s;
  }
}

/* 第4个 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu:nth-child(4) {
    transform: translateY(-36px);
    transition: opacity .28122s cubic-bezier(0.52, 0.16, 0.52, 0.84) .12333s, transform .44574s cubic-bezier(0.52, 0.16, 0.52, 0.84) .09067s;
  }
}

/* 第5个 */

@media only screen and (max-width: 992px) {
  #globalnav .item-menu:nth-child(5) {
    transform: translateY(-32px);
    transition: opacity .26098s cubic-bezier(0.52, 0.16, 0.52, 0.84) .11s, transform .43756s cubic-bezier(0.52, 0.16, 0.52, 0.84) .082s;
  }
}

/* === 瀑布流动画 (开启状态) === */

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .item-menu, #menustate:target ~ #globalnav .item-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* 开启时的特定延迟 */

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .item-menu:nth-child(2), #menustate:target ~ #globalnav .item-menu:nth-child(2) {
    transition: opacity .3091s cubic-bezier(0.32, 0.08, 0.24, 1) .03s, transform .3455s cubic-bezier(0.32, 0.08, 0.24, 1) .02s;
  }
}

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .item-menu:nth-child(3), #menustate:target ~ #globalnav .item-menu:nth-child(3) {
    transition: opacity .31812s cubic-bezier(0.32, 0.08, 0.24, 1) .04333s, transform .35351s cubic-bezier(0.32, 0.08, 0.24, 1) .03333s;
  }
}

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .item-menu:nth-child(4), #menustate:target ~ #globalnav .item-menu:nth-child(4) {
    transition: opacity .32664s cubic-bezier(0.32, 0.08, 0.24, 1) .05667s, transform .36347s cubic-bezier(0.32, 0.08, 0.24, 1) .04667s;
  }
}

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .item-menu:nth-child(5), #menustate:target ~ #globalnav .item-menu:nth-child(5) {
    transition: opacity .33467s cubic-bezier(0.32, 0.08, 0.24, 1) .07s, transform .37539s cubic-bezier(0.32, 0.08, 0.24, 1) .06s;
  }
}

/* 箭头旋转动画 */

@media only screen and (max-width: 992px) {
  #menustate:checked ~ #globalnav .menuicon-arrow, #menustate:target ~ #globalnav .menuicon-arrow {
    transform: rotate(180deg);
    transition: transform .1806s cubic-bezier(0.04, 0.04, 0.12, 0.96);
  }
}

/* ! CSS Used from: https://www.apple.com/v/home/aq/built/styles/main.built.css */

button {
  background: none;
  border: 0;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  overflow: visible;
  vertical-align: inherit;
}

a:link, a:visited {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

/* ! CSS Used keyframes */

/* ! CSS Used from: https://www.apple.com/ac/globalnav/7/en_US/styles/ac-globalnav.built.css */

/* ! CSS Used from: https://www.apple.com/v/home/aq/built/styles/main.built.css */

.italic {
  font-style: italic;
}

.content-desktop {
  display: block;
}

@media screen and (max-width: 992px) {
  .content-desktop {
    display: none;
  }
}

.content-mobile {
  display: none;
}

@media screen and (max-width: 992px) {
  .content-mobile {
    display: block;
  }
}

.arrow {
  font-feature-settings: "cv01";
  float: right;
}

/* landscape */

.landscape {
  display: none;
}

@media only screen and (max-device-width:767px) and (orientation:landscape) {
  .landscape {
    display: block;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    position: absolute;
    width: 100%;
    text-align: center !important;
  }
}

@media only screen and (max-device-width:767px) and (orientation:landscape) {
  .landscape .landscape-icon {
    font-size: 20rem;
  }
}

.landscape-icon {
  font-family: 'Hanabi';
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  padding-top: 15rem;
}

.landscape-icon:before {
  content: "\e60a";
  font-size: 15rem;
}

.landscape-span {
  font-size: 1.4rem;
}

@media only screen and (max-device-width: 767px) and (orientation: landscape) {
  .landscape-blocker {
    display: none!important;
  }
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-bottom: 1.3rem;
  font-weight: 500;
}

/* AR */

/* Portfolio Grid - Works */

.year-section {
  margin-bottom: 40px;
}

.year-header {
  text-align: left;
  font-size: 24px;
  margin: 20px 0;
}

.content {
  background-color: transparent !important;
  color: var(--bs-primary);
  box-shadow: none !important;
  padding-top: 15px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  background-color: transparent;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.image-container {
  position: relative;
  border-radius: 1rem;
  width: 100%;
  padding-top: 75%;
  /*4: 3 aspect ratio;*/
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.portfolio-item .caption {
  color: var(--bs-body-color);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 833px) {
  .caption {
    margin-top: 0;
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .02em;
  }
}

/* hover images */

.hover-title {
  display: inline;
  pointer-events: auto;
  cursor: pointer;
}

.hover-image {
  visibility: hidden;
}

body:not(.mobile) .hover-title:hover + .hover-image {
  visibility: visible;
  pointer-events: none;
}

.hover-image {
  display: flex;
  position: fixed;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60vw;
  height: 60vh;
}

.hover-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  margin-bottom: 0;
}

.space-list {
  padding-bottom: 1.2rem;
}

