:root {
  --paper: #f8f7f1;
  --ink: #1f1f1f;
  --muted: #6f6b62;
  --line: #d8d2c5;
  --white: #fffdf7;
  --yellow: #f2bb19;
  --blue: #1157c8;
  --red: #df321f;
  --green: #687c5b;
  --shadow: 0 24px 70px rgba(25, 24, 21, 0.14);
  --header-h: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, "Helvetica Neue", Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 3.2vw;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 247, 241, 0.94);
  box-shadow: 0 1px 0 rgba(31, 31, 31, 0.08);
  backdrop-filter: blur(14px);
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1;
  white-space: nowrap;
}

.brand-text span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(14px, 2.6vw, 48px);
}

.primary-nav a {
  position: relative;
  display: grid;
  gap: 2px;
  place-items: center;
  min-width: 72px;
  min-height: 48px;
  font-weight: 700;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}

.primary-nav small {
  font-size: 10px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select select {
  width: 64px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 700;
}

.icon-button,
.menu-button,
.slider-controls button,
.scroll-top {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-search {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

.menu-button {
  position: relative;
  min-width: 92px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 16px;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.menu-button i,
.menu-button i::before,
.menu-button i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-button i {
  position: relative;
}

.menu-button i::before,
.menu-button i::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button i::before {
  top: -6px;
}

.menu-button i::after {
  top: 6px;
}

.search-panel {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 118px;
  background: rgba(248, 247, 241, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.search-open .search-panel {
  opacity: 1;
  pointer-events: auto;
}

.search-box,
.menu-search {
  display: grid;
  grid-template-columns: auto minmax(180px, 560px) auto auto;
  align-items: center;
  gap: 0;
  width: min(760px, calc(100vw - 32px));
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.search-box label {
  padding: 18px 24px;
  font-weight: 800;
}

.search-box input,
.menu-search input {
  min-width: 0;
  height: 62px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding-inline: 18px;
  outline: none;
}

.search-box button,
.menu-search button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding-inline: 20px;
  font-weight: 800;
}

.search-close,
.menu-close {
  position: relative;
  width: 62px;
  min-width: 62px;
  padding: 0;
}

.search-close::before,
.search-close::after,
.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 2px;
  background: currentColor;
}

.search-close::before,
.menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.search-close::after,
.menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.global-menu {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.menu-open .global-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.global-menu-inner {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(26px, 4vw, 50px);
  padding: 30px clamp(22px, 5vw, 72px);
}

.global-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-on-dark .brand-mark {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.brand-on-dark .brand-text span {
  color: #bbb5a7;
}

.menu-close {
  height: 56px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
}

.menu-search {
  background: transparent;
  border-color: var(--paper);
  box-shadow: none;
  grid-template-columns: minmax(220px, 1fr) auto;
  width: min(760px, 100%);
}

.menu-search input {
  height: 58px;
  border: 0;
  color: var(--paper);
}

.menu-search input::placeholder {
  color: #bbb5a7;
}

.menu-search button {
  background: var(--paper);
  color: var(--ink);
  min-width: 112px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-content: start;
}

.menu-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(248, 247, 241, 0.25);
}

.menu-heading span {
  font-size: clamp(28px, 4.8vw, 68px);
  font-weight: 800;
  line-height: 1;
}

.menu-heading small {
  color: #bbb5a7;
  font-size: 12px;
  font-weight: 800;
}

.menu-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-group li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eee8dc;
}

.menu-group li a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.menu-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 247, 241, 0.25);
  color: #d8d2c5;
  font-size: 14px;
}

.hero {
  min-height: 100vh;
  padding-top: 0;
}

.slider {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
}

.slides {
  position: relative;
  min-height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide a {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 4vw 72px;
  align-items: end;
  overflow: hidden;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6.2s linear;
}

.slide.is-active img {
  transform: scale(1);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 247, 241, 0.82), rgba(248, 247, 241, 0.18) 58%, rgba(248, 247, 241, 0.34));
  pointer-events: none;
}

.slide-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(760px, 86vw);
  color: var(--ink);
}

.slide-copy small {
  width: max-content;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.slide-copy strong {
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.03;
}

.slide-copy em {
  max-width: 560px;
  font-style: normal;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.55;
}

.slide-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.theme-studio .slide-art {
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(31, 31, 31, 0.09) 16% 17%, transparent 17% 100%),
    radial-gradient(circle at 76% 62%, var(--red) 0 6%, transparent 6.2%),
    radial-gradient(circle at 23% 62%, var(--yellow) 0 9%, transparent 9.2%),
    linear-gradient(115deg, transparent 0 45%, var(--blue) 45% 58%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(31, 31, 31, 0.11) 0 2px, transparent 2px 42px),
    var(--white);
}

.theme-studio .slide-art::before,
.theme-platform .slide-art::before {
  content: "";
  position: absolute;
  right: 7vw;
  top: 16vh;
  width: min(520px, 48vw);
  aspect-ratio: 1;
  border: 44px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.theme-studio .slide-art::after {
  content: "";
  position: absolute;
  right: 25vw;
  bottom: 12vh;
  width: min(340px, 32vw);
  height: min(300px, 28vw);
  background: var(--green);
  box-shadow: 34vw -23vh 0 var(--yellow);
}

.theme-platform .slide-art {
  background:
    radial-gradient(circle at 18% 25%, var(--green) 0 9%, transparent 9.4%),
    radial-gradient(circle at 82% 72%, var(--yellow) 0 10%, transparent 10.4%),
    linear-gradient(90deg, transparent 0 54%, rgba(31, 31, 31, 0.1) 54% 55%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(31, 31, 31, 0.08) 0 1px, transparent 1px 30px),
    #f1eee4;
}

.theme-platform .slide-art::before {
  left: 53vw;
  top: 17vh;
  border-radius: 0;
  border-width: 0;
  background: var(--blue);
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

.theme-platform .slide-art::after {
  content: "";
  position: absolute;
  left: 12vw;
  bottom: 10vh;
  width: min(390px, 36vw);
  height: min(390px, 36vw);
  border: 38px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(24deg);
}

.slider-controls {
  position: absolute;
  z-index: 4;
  right: 4vw;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
}

.slider-controls > button {
  position: relative;
  border-radius: 50%;
}

.slider-controls > button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

[data-slider-prev]::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

[data-slider-next]::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border-color: var(--ink);
  background: transparent;
}

.slider-dots button.is-active {
  background: var(--ink);
}

.section {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(78px, 10vw, 138px);
}

.section-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr auto;
  align-items: start;
  gap: clamp(18px, 4vw, 60px);
  margin-bottom: 38px;
}

h2 {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.32;
}

h2 span {
  display: block;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 800;
}

.section-head p,
.about-copy p,
.project-card p,
.journal-card p {
  margin: 0;
  color: #4d4942;
}

.filter-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-bar button {
  min-width: 88px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.activity-list {
  position: relative;
  z-index: 2;
  display: grid;
  border-top: 1px solid var(--ink);
}

.activity-item {
  display: grid;
  grid-template-columns: 148px 180px 1fr 132px;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.25s ease, transform 0.25s ease, min-height 0.25s ease, padding 0.25s ease;
}

.activity-item:hover strong,
.news-list a:hover strong,
.text-link:hover,
.more-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.activity-item.is-hidden {
  min-height: 0;
  height: 0;
  padding-block: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-tags b,
.activity-tags i {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 10px;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.activity-tags b {
  background: var(--red);
  color: var(--paper);
}

.activity-tags i {
  background: var(--ink);
  color: var(--paper);
}

.activity-project {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.activity-item strong {
  font-size: 17px;
  line-height: 1.5;
}

.activity-item time {
  text-align: right;
  font-weight: 800;
}

.more-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-weight: 800;
}

.more-link::after,
.text-link::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

.section-watermark,
.project-word {
  position: absolute;
  z-index: 0;
  color: rgba(31, 31, 31, 0.045);
  font-size: clamp(66px, 15vw, 210px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.activities .section-watermark {
  right: -7vw;
  bottom: 34px;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(260px, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}

.about-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
}

.about-visual {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(90deg, transparent 0 58%, var(--yellow) 58% 82%, transparent 82%),
    repeating-linear-gradient(90deg, rgba(31, 31, 31, 0.14) 0 2px, transparent 2px 34px),
    var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  left: 15%;
  top: 17%;
  width: 48%;
  aspect-ratio: 1;
  border: 36px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-26deg);
}

.about-visual::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 40%;
  aspect-ratio: 1;
  background: var(--blue);
}

.about-visual span:nth-child(1) {
  position: absolute;
  left: 9%;
  bottom: 12%;
  width: 26%;
  height: 42%;
  background: var(--green);
}

.about-visual span:nth-child(2) {
  position: absolute;
  right: 14%;
  top: 11%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
}

.about-visual span:nth-child(3) {
  position: absolute;
  left: 40%;
  bottom: 5%;
  width: 34%;
  height: 18%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.about .section-watermark {
  left: -8vw;
  bottom: 42px;
}

.projects {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1160px) / 2));
  overflow: hidden;
}

.project-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}

.project-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1.24 / 1;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-thumb::before,
.project-thumb::after {
  content: "";
  position: absolute;
}

.project-thumb::before {
  inset: 12%;
  border: 28px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-26deg);
}

.project-thumb::after {
  right: 12%;
  bottom: 12%;
  width: 38%;
  aspect-ratio: 1;
  background: var(--yellow);
}

.accent-blue .project-thumb {
  background:
    repeating-linear-gradient(90deg, rgba(31, 31, 31, 0.1) 0 2px, transparent 2px 28px),
    var(--white);
}

.accent-blue .project-thumb::after {
  background: var(--blue);
}

.accent-green .project-thumb::after {
  background: var(--green);
}

.project-card h3,
.journal-card h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
}

.project-word.one {
  left: 8vw;
  top: 40%;
}

.project-word.two {
  right: 2vw;
  top: 54%;
}

.project-word.three {
  left: 35vw;
  bottom: 3%;
}

.journal-news {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 4vw, 74px);
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.journal,
.news {
  width: 100%;
  margin: 0;
}

.journal-card {
  position: relative;
  z-index: 2;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.journal-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.journal-card time,
.news-list time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.journal .section-watermark {
  left: -7vw;
  bottom: 0;
}

.news-list {
  position: relative;
  z-index: 2;
  display: grid;
  border-top: 1px solid var(--ink);
}

.news-list a {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.news-list strong {
  line-height: 1.5;
}

.news .section-watermark {
  right: -4vw;
  bottom: 12px;
}

.partner-strip {
  width: min(1160px, calc(100% - 40px));
  margin: 20px auto clamp(86px, 12vw, 150px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.partner-strip a {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.partner-strip a:last-child {
  border-right: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr) minmax(220px, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 7vw, 86px) max(20px, calc((100% - 1160px) / 2));
  background: var(--ink);
  color: var(--paper);
}

.site-footer .brand-mark {
  border-color: var(--paper);
}

.site-footer .brand-text span,
.site-footer p,
.copyright {
  color: #c8c1b3;
}

.footer-brand p {
  max-width: 330px;
}

.footer-info h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.footer-info p {
  margin: 0 0 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px 22px;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(248, 247, 241, 0.22);
  padding-top: 20px;
}

.scroll-top {
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: 24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.show-scroll-top .scroll-top {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-item {
    grid-template-columns: 138px 1fr 120px;
  }

  .activity-project {
    display: none;
  }

  .project-grid,
  .journal-news,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    padding: 16px;
    gap: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text span,
  .language-select {
    display: none;
  }

  .menu-button {
    min-width: 52px;
    padding-inline: 11px;
  }

  .menu-button span {
    display: none;
  }

  .slide a {
    padding: calc(var(--header-h) + 42px) 20px 120px;
  }

  .slide-copy strong {
    font-size: clamp(40px, 13vw, 64px);
  }

  .slider-controls {
    left: 20px;
    right: auto;
    bottom: 42px;
  }

  .section {
    width: calc(100% - 32px);
    padding-block: 72px;
  }

  .section-head,
  .about {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .activity-item time {
    text-align: left;
  }

  .about-visual {
    min-height: 340px;
  }

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

  .global-menu {
    overflow-y: auto;
  }

  .global-menu-inner {
    min-height: auto;
  }

  .menu-heading span {
    font-size: 40px;
  }

  .search-box,
  .menu-search {
    grid-template-columns: 1fr auto;
  }

  .search-box label {
    display: none;
  }

  .search-close {
    grid-column: 2;
    grid-row: 1;
    height: 62px;
  }

  .search-box input {
    grid-column: 1;
    grid-row: 1;
    border-left: 0;
  }

  .search-box button[type="submit"] {
    grid-column: 1 / -1;
    min-height: 48px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .partner-strip {
    grid-template-columns: 1fr;
  }

  .partner-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-watermark,
  .project-word {
    display: none;
  }

  .slide img {
    left: 0;
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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