:root {
  color-scheme: light;
  --ink: #2d3833;
  --soft-ink: #718078;
  --line: rgba(66, 88, 78, 0.1);
  --cream: #fffdf7;
  --white: #ffffff;
  --sage: #6f897a;
  --peach: #f3d2bd;
  --honey: #d7aa66;
  --rosewash: #fff5e8;
  --leafwash: #f4faf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 236, 196, 0.24), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fff9f0 48%, #fffdf8 100%);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans SC", "鎬濇簮榛戜綋", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("./assets/yellow-rose-accent.png") right -15vw top 18vh / min(820px, 78vw) auto no-repeat,
    url("./assets/rose-botanical-accent.png") left -18vw top 112vh / min(900px, 86vw) auto no-repeat,
    url("./assets/yellow-rose-accent.png") right -20vw top 218vh / min(940px, 88vw) auto no-repeat;
  opacity: 0.12;
  filter: saturate(1.04) sepia(0.05) brightness(1.08);
  mix-blend-mode: multiply;
  -webkit-mask-image:
    radial-gradient(ellipse at 86% 18%, #000 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.18) 58%, transparent 76%),
    radial-gradient(ellipse at 9% 53%, #000 0%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.18) 60%, transparent 80%),
    radial-gradient(ellipse at 92% 88%, #000 0%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.18) 60%, transparent 80%);
  -webkit-mask-composite: source-over;
  mask-image:
    radial-gradient(ellipse at 86% 18%, #000 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.18) 58%, transparent 76%),
    radial-gradient(ellipse at 9% 53%, #000 0%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.18) 60%, transparent 80%),
    radial-gradient(ellipse at 92% 88%, #000 0%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.18) 60%, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.side-rail {
  position: relative;
}

main {
  z-index: 1;
}

.side-rail {
  z-index: 20;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 112px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo-link {
  align-self: start;
  display: block;
  width: 70px;
  height: 70px;
  margin-top: 26px;
  overflow: hidden;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

nav {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

nav a {
  writing-mode: vertical-rl;
  color: #9a9f9a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  transition: color 180ms ease;
}

nav a.active {
  color: var(--sage);
}

.language-switch {
  position: fixed;
  left: 35px;
  bottom: 28px;
  z-index: 31;
  display: grid;
  gap: 8px;
}

.language-switch button {
  width: 42px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(85, 114, 100, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #a2a8a2;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-switch button.active {
  color: var(--sage);
  background: rgba(85, 114, 100, 0.08);
  border-color: rgba(85, 114, 100, 0.34);
}

.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 114, 100, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--sage);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 18px 46px rgba(70, 88, 78, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(85, 114, 100, 0.4);
}

main {
  margin-left: 112px;
}
.music-toggle {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: calc(clamp(18px, 3vw, 34px) + 58px);
  z-index: 30;
  min-width: 86px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(85, 114, 100, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--sage);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 18px 46px rgba(70, 88, 78, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.music-toggle:hover,
.music-toggle.is-playing {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(85, 114, 100, 0.4);
}

.music-toggle:active {
  transform: translateY(1px);
}

.music-icon {
  position: relative;
  width: 12px;
  height: 16px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-radius: 1px;
}

.music-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 10px;
  height: 7px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: skewY(-10deg);
}

.music-toggle.is-playing .music-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px -5px 0 currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.16), rgba(255, 253, 247, 0.56)),
    #f8ead8;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.9) 0%, rgba(255, 253, 247, 0.58) 34%, rgba(255, 253, 247, 0.1) 68%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.2) 0%, rgba(255, 253, 247, 0.04) 52%, rgba(255, 253, 247, 0.84) 100%);
}

.hero-contact {
  position: absolute;
  top: var(--hero-contact-top, calc(100vh - clamp(410px, 44vh, 490px)));
  left: var(--hero-contact-left, clamp(300px, 24vw, 470px));
  right: auto;
  z-index: 2;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0;
  color: var(--honey);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
  animation: textRise 860ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-contact span {
  position: relative;
}

.hero-contact span::after {
  display: none;
}

@keyframes contactFloat {
  0%,
  100% {
    opacity: 0.78;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes contactLine {
  0%,
  100% {
    transform: scaleX(0.28);
  }

  50% {
    transform: scaleX(1);
  }
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy p:not(.eyebrow),
.hero-meta {
  animation: textRise 860ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy h1 {
  animation-delay: 90ms;
}

.hero-copy p:not(.eyebrow) {
  animation-delay: 260ms;
}

.hero-meta {
  animation-delay: 430ms;
}

.reveal-title,
.reveal-content,
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 760ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.is-visible .reveal-title,
.is-visible .reveal-content,
.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes textRise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-copy {
  position: absolute;
  left: clamp(44px, 8vw, 118px);
  bottom: clamp(70px, 12vh, 140px);
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--honey);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(62px, 8vw, 128px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: #51645a;
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-meta {
  position: absolute;
  right: clamp(34px, 5vw, 78px);
  bottom: clamp(36px, 8vh, 88px);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-meta span {
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 3px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.statement,
.project-list,
.method,
.training,
.cases,
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 96px;
  padding: clamp(72px, 11vw, 150px) clamp(36px, 8vw, 132px);
}

.statement::after,
.project-list::after,
.method::before,
.training::after,
.cases::after,
.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image: url("./assets/rose-botanical-accent.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  filter: saturate(1.04) sepia(0.06) brightness(1.08);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.86) 36%, rgba(0, 0, 0, 0.26) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.86) 36%, rgba(0, 0, 0, 0.26) 68%, transparent 100%);
}

.method::before {
  right: -320px;
  top: -170px;
  width: min(920px, 76vw);
  height: min(570px, 52vw);
  background-image: url("./assets/large-leaf-accent.png");
  opacity: 0.035;
  filter: saturate(0.52) brightness(1.16);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.7) 34%, rgba(0, 0, 0, 0.14) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.7) 34%, rgba(0, 0, 0, 0.14) 68%, transparent 100%);
}

.statement {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: end;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 244, 0.94) 100%);
}

.statement::after {
  right: -260px;
  top: -170px;
  width: min(880px, 70vw);
  height: min(540px, 50vw);
  opacity: 0.18;
}

.method::after {
  content: "";
  position: absolute;
  right: -250px;
  bottom: -160px;
  z-index: -1;
  width: min(760px, 66vw);
  height: min(470px, 46vw);
  pointer-events: none;
  background-image: url("./assets/yellow-rose-accent.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.15;
  filter: saturate(1.02) sepia(0.05) brightness(1.08);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.18) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.18) 68%, transparent 100%);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: 0;
}

.statement p:last-child,
.method-columns p,
.training p,
.contact p,
article p,
li span,
.contact-text span,
.contact-text small {
  color: var(--soft-ink);
}

.statement p:last-child,
.method-columns p,
.training p,
.contact p {
  margin-bottom: 0;
  font-size: 18px;
}

.project-list {
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.94) 0%, rgba(255, 253, 247, 0.96) 50%, rgba(247, 252, 244, 0.88) 100%);
}

.project-list::after {
  left: -300px;
  bottom: -220px;
  width: min(980px, 78vw);
  height: min(610px, 54vw);
  transform: rotate(180deg);
  opacity: 0.2;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.section-title .eyebrow {
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(36px, 5vw, 78px);
}

article {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.48fr) minmax(280px, 0.72fr);
  gap: clamp(20px, 4vw, 60px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

article span {
  color: var(--honey);
  font-weight: 900;
}

h3 {
  margin-bottom: 0;
  color: var(--sage);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
}

article p {
  margin-bottom: 0;
  font-size: 17px;
}

.project-note {
  max-width: 760px;
  margin: 34px 0 0 72px;
  padding: 20px 24px;
  color: #5d6d65;
  font-size: 17px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(111, 137, 122, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(86, 65, 37, 0.06);
}

.method {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 112px);
  background: linear-gradient(135deg, #f6fbf4 0%, #fffdf7 54%, #fff0e4 100%);
}

.method-columns {
  display: grid;
  gap: 38px;
  align-content: start;
}

ul {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(38, 49, 44, 0.16);
}

li strong {
  color: var(--sage);
  font-size: 18px;
}

.training {
  min-height: 50vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.68fr);
  gap: clamp(36px, 8vw, 118px);
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 0.94) 56%, rgba(250, 255, 247, 0.94) 100%);
}

.training::after {
  right: -260px;
  top: -140px;
  width: min(860px, 70vw);
  height: min(530px, 50vw);
  opacity: 0.18;
  background-image: url("./assets/yellow-rose-accent.png");
}

.training::before,
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image: url("./assets/large-leaf-accent.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.032;
  filter: saturate(0.5) brightness(1.18);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.68) 32%, rgba(0, 0, 0, 0.12) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.68) 32%, rgba(0, 0, 0, 0.12) 68%, transparent 100%);
}

.training::before {
  right: -360px;
  bottom: -210px;
  width: min(880px, 70vw);
  height: min(540px, 50vw);
}

.contact::before {
  left: -360px;
  top: -190px;
  width: min(860px, 70vw);
  height: min(530px, 50vw);
  transform: rotate(180deg);
}

.training-copy h2 {
  max-width: 760px;
  margin-bottom: 26px;
}

.training-copy p {
  max-width: 680px;
}

.training-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: center;
}

.training-visual::before {
  content: "";
  position: absolute;
  inset: 24px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111, 137, 122, 0.09), rgba(243, 210, 189, 0.16));
  filter: blur(0);
}

.visual-line {
  position: absolute;
  left: 50%;
  top: 44px;
  bottom: 44px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(85, 114, 100, 0.32), transparent);
}

.lesson-card {
  position: relative;
  width: min(360px, 100%);
  padding: 22px 24px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(111, 137, 122, 0.13);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(86, 65, 37, 0.08);
  backdrop-filter: blur(12px);
}

.lesson-card + .lesson-card {
  margin-top: 18px;
}

.lesson-card-two {
  margin-left: auto;
}

.lesson-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--honey);
  font-size: 13px;
  font-weight: 900;
}

.lesson-card strong {
  display: block;
  color: var(--sage);
  font-size: 23px;
  line-height: 1.2;
}

.lesson-card small {
  display: block;
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 14px;
}

.cases {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.98));
}

.cases::after {
  left: -260px;
  top: 16px;
  width: min(740px, 62vw);
  height: min(460px, 42vw);
  transform: rotate(180deg);
  opacity: 0.17;
}

.cases-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.cases-heading h2 {
  margin-bottom: 22px;
}

.cases-heading p:last-child {
  margin-bottom: 0;
  color: var(--soft-ink);
  font-size: 18px;
}

.case-track {
  display: flex;
  gap: clamp(28px, 4vw, 54px);
  width: auto;
  margin-left: 0;
  padding: 2px 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 137, 122, 0.36) rgba(111, 137, 122, 0.08);
}

.case-track::-webkit-scrollbar {
  height: 8px;
}

.case-track::-webkit-scrollbar-track {
  background: rgba(111, 137, 122, 0.08);
  border-radius: 999px;
}

.case-track::-webkit-scrollbar-thumb {
  background: rgba(111, 137, 122, 0.36);
  border-radius: 999px;
}

.case-card {
  flex: 0 0 min(520px, calc(100vw - 112px - clamp(72px, 16vw, 264px)));
  height: min(760px, calc(100svh - 120px));
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  align-content: stretch;
  align-items: start;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(111, 137, 122, 0.13);
  border-radius: 20px;
  box-shadow: 0 22px 56px rgba(86, 65, 37, 0.08);
  scroll-snap-align: start;
}

.case-card.is-clone {
  display: none;
}

.case-card.no-feedback {
  grid-template-rows: auto auto minmax(360px, 1fr);
}

.case-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(247, 252, 244, 0.72));
  border: 1px solid rgba(111, 137, 122, 0.16);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.case-media-wide {
  min-height: 320px;
}

.case-media-chat {
  background: #f7fbf7;
}

.case-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.case-media-wide img {
  object-fit: contain;
}

.case-image-button {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: zoom-in;
}

.case-person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(111, 137, 122, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(86, 65, 37, 0.05);
  align-self: start;
}

.case-project {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(247, 252, 244, 0.78);
  border: 1px solid rgba(111, 137, 122, 0.12);
  border-radius: 12px;
}

.case-label {
  color: var(--honey);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(85, 114, 100, 0.18), rgba(239, 182, 144, 0.18)),
    radial-gradient(circle at 50% 35%, rgba(85, 114, 100, 0.42) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 80%, rgba(85, 114, 100, 0.28) 0 30%, transparent 31%);
}

.case-person strong {
  display: block;
  min-width: 0;
  color: #181d1a;
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
}

.case-project p {
  margin: 0;
  color: #7b827c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.dash-line {
  display: none;
}

blockquote {
  margin: 0;
  padding: 18px 20px;
  color: #141815;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.38;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 137, 122, 0.11);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(86, 65, 37, 0.05);
  align-self: start;
}

.case-card.no-feedback blockquote {
  display: none;
}

.case-card.no-feedback .case-media {
  min-height: 520px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(24, 29, 26, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.image-viewer-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 0.72fr) minmax(180px, 260px);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255, 247, 235, 0.96), rgba(248, 252, 245, 0.92));
}

.contact::after {
  right: -280px;
  bottom: -220px;
  width: min(940px, 74vw);
  height: min(590px, 54vw);
  opacity: 0.2;
  background-image: url("./assets/yellow-rose-accent.png");
}

.contact h2 {
  margin-bottom: 24px;
}

.contact-text {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.contact-text span {
  font-size: 18px;
  font-weight: 300;
}

.contact-text a {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
}

.contact-text small {
  color: var(--sage);
  font-size: 14px;
  font-weight: 300;
}

.contact-text address {
  max-width: 520px;
  margin-top: 18px;
  color: var(--soft-ink);
  font-style: normal;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-text address span:not(.address-pin) {
  color: var(--soft-ink);
  font-size: inherit;
  font-weight: inherit;
}

.address-pin {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border: 1px solid rgba(111, 137, 122, 0.42);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 10px 24px rgba(111, 137, 122, 0.13);
}

.address-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--honey);
}

.contact-portrait {
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(260px, 20vw);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.58);
  box-shadow: 0 26px 70px rgba(70, 88, 78, 0.12);
}

.contact-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
  border-radius: inherit;
}

.contact-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 104px;
  }

  .side-rail {
    position: fixed;
    inset: 0 0 auto 0;
    width: auto;
    height: 78px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    padding: 0 18px;
  }

  .logo-link {
    width: 54px;
    height: 54px;
    margin-top: 0;
    align-self: center;
  }

  nav {
    align-self: center;
    flex-direction: row;
    justify-content: flex-end;
    gap: clamp(14px, 4vw, 34px);
  }

  nav a {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
  }

  .language-switch {
    position: fixed;
    left: auto;
    right: 18px;
    top: 50%;
    bottom: auto;
    display: grid;
    gap: 6px;
    z-index: 31;
    transform: translateY(-50%);
    padding: 6px;
    border: 1px solid rgba(85, 114, 100, 0.13);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.72);
    box-shadow: 0 16px 42px rgba(70, 88, 78, 0.1);
    backdrop-filter: blur(12px);
  }

  .language-switch button {
    width: 34px;
    height: 24px;
    font-size: 10px;
  }

  main {
    margin-left: 0;
  }

  .hero {
    min-height: 100svh;
    padding-top: 78px;
  }

  .hero-contact {
    top: 92px;
    right: 24px;
    padding: 8px 12px;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 253, 247, 0.82) 0%, rgba(255, 253, 247, 0.46) 42%, rgba(255, 253, 247, 0.9) 100%);
  }

  .hero-image {
    height: 260px;
    object-fit: contain;
    object-position: center top;
    background: #fffaf1;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    top: 47%;
    bottom: auto;
  }

  .hero-meta {
    left: 24px;
    right: 24px;
    bottom: 34px;
    justify-content: flex-start;
  }

  .statement,
  .method,
  .contact,
  .training,
  article {
    grid-template-columns: 1fr;
  }

  .statement,
  .project-list,
  .method,
  .training,
  .cases,
  .contact {
    scroll-margin-top: 104px;
  }

  .training-visual {
    min-height: 320px;
  }

  article {
    gap: 12px;
    padding: 30px 0;
  }

  .project-note {
    margin-left: 0;
  }

  .section-title {
    display: block;
  }

  .case-track {
    margin-left: 0;
    width: auto;
    min-height: 0;
    padding-bottom: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .case-track::-webkit-scrollbar {
    display: none;
  }

  .case-card {
    position: relative;
    flex: 0 0 82%;
    width: 82%;
    height: min(640px, calc(100svh - 132px));
    min-height: 520px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(170px, 1fr) auto;
    gap: 12px;
    align-items: start;
    scroll-snap-align: start;
  }

  .case-card.is-clone {
    display: grid;
  }

  .case-media {
    min-height: 0;
    height: 100%;
    grid-row: auto;
  }

  .case-media-wide {
    min-height: 0;
    height: 100%;
  }
}

@media (max-width: 640px) {
  .side-rail {
    height: 88px;
    grid-template-columns: auto minmax(0, 1fr) 80px;
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 8px 12px;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
  }

  nav {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
  }

  .language-switch {
    position: fixed;
    top: 30px;
    right: 10px;
    bottom: auto;
    left: auto;
    z-index: 34;
    display: flex;
    gap: 5px;
    transform: none;
    padding: 3px;
    border: 1px solid rgba(85, 114, 100, 0.13);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.82);
    box-shadow: none;
    backdrop-filter: blur(12px);
  }

  .hero {
    padding-top: 88px;
  }

  .hero-contact {
    top: 292px;
    left: 24px;
    right: auto;
    padding: 0;
    max-width: calc(100% - 48px);
    gap: 10px;
    color: rgba(85, 114, 100, 0.8);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    backdrop-filter: none;
  }

  .hero-contact span::after {
    display: none;
  }

  .language-switch button {
    width: 27px;
    height: 21px;
    font-size: 9px;
  }

  .hero-copy {
    top: 336px;
    bottom: auto;
  }

  h1 {
    font-size: 56px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .statement,
  .project-list,
  .method,
  .training,
  .cases,
  .contact {
    padding: 64px 24px;
  }

  .cases {
    padding-top: 96px;
    padding-bottom: 24px;
  }

  .cases-heading {
    margin-bottom: 12px;
  }

  .cases-heading h2 {
    margin-bottom: 8px;
  }

  .cases-heading p:last-child {
    font-size: 14px;
    line-height: 1.42;
  }

  h2 {
    font-size: 34px;
  }

  li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-text a {
    font-size: 36px;
  }

  .contact-portrait {
    justify-self: start;
    width: min(220px, 68vw);
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }

  .project-note {
    padding: 18px 20px;
    font-size: 16px;
  }

  .case-card {
    flex-basis: 86%;
    width: 86%;
    height: clamp(390px, calc(100svh - 260px), 520px);
    min-height: 0;
    padding: 16px;
    gap: 10px;
    grid-template-rows: auto auto minmax(120px, 1fr) auto;
  }

  .case-track {
    gap: 14px;
    padding-right: 24px;
  }

  .case-media {
    min-height: 0;
  }

  .case-person {
    padding: 12px 14px;
  }

  .case-project {
    padding: 12px 14px;
  }

  .case-person strong {
    font-size: 19px;
  }

  .case-project p {
    font-size: 14px;
  }

  blockquote {
    padding: 13px 15px;
    font-size: 16px;
    line-height: 1.32;
  }

  .case-media-wide {
    min-height: 0;
  }

  .back-to-top {
    right: 12px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .music-toggle {
    right: 12px;
    bottom: 70px;
    min-width: 76px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }}

@media (max-width: 420px) {
  .side-rail {
    column-gap: 8px;
    padding: 8px 10px;
  }

  nav {
    gap: 8px;
  }

  nav a {
    font-size: 12px;
  }

  .language-switch button {
    width: 30px;
    height: 23px;
    font-size: 10px;
  }

  .hero-meta span {
    padding: 9px 11px;
    font-size: 13px;
  }

  .cases {
    padding-top: 92px;
  }

  .cases-heading {
    margin-bottom: 10px;
  }

  .cases-heading .eyebrow {
    margin-bottom: 8px;
  }

  .case-card {
    height: clamp(370px, calc(100svh - 248px), 500px);
    padding: 14px;
    gap: 8px;
  }

  .case-label {
    font-size: 10px;
  }

  .case-person,
  .case-project {
    padding: 10px 12px;
  }

  .case-person strong {
    font-size: 18px;
  }

  blockquote {
    padding: 11px 12px;
    font-size: 15px;
  }
}

