:root {
  --paper: #fbfaf6;
  --paper-2: #f4f6f4;
  --mist: #edf2f3;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-solid: #ffffff;
  --ink: #1d2d37;
  --ink-soft: #40525c;
  --muted: #74838a;
  --line: rgba(74, 99, 111, 0.14);
  --line-strong: rgba(74, 99, 111, 0.22);
  --blue: #49697b;
  --blue-deep: #233b4a;
  --blue-pale: #dfe9ed;
  --sage: #899f98;
  --sand: #d9c49a;
  --shell: #f7f3ea;
  --shadow-sm: 0 10px 24px rgba(33, 52, 63, 0.06);
  --shadow: 0 24px 70px rgba(33, 52, 63, 0.1);
  --shadow-float: 0 32px 90px rgba(33, 52, 63, 0.14);
  --radius: 8px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}


html,
body {
  overflow-x: hidden;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 128px max(28px, calc((100vw - var(--max)) / 2 + 56px));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero.section {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 250, 0.9)),
    #f4fbfc;
}

.hero-chrome {
  position: fixed;
  top: 24px;
  left: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  width: auto;
  pointer-events: none;
}

.site-nav,
.hero-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #4f5f68;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active:hover {
  color: #2f9cad;
  background: transparent;
  border-color: transparent;
}

.hero-stage {
  position: absolute;
  top: calc(50vh - 91px);
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(65vw, 980px);
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
}

.hero-welcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #374854;
  font-size: clamp(20px, 1.35vw, 22px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.welcome-spark {
  color: #2f9cad;
  font-size: 22px;
  line-height: 1;
  animation: sparkBreath 3.8s ease-in-out infinite;
}

.hero-rotator {
  position: relative;
  width: min(65vw, 980px);
  max-width: 980px;
  min-height: 225px;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
  color: #182631;
  font-size: 50px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}

.hero-rotator > span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #182631;
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}

.hero-rotator > span:first-child {
  left: 50%;
  width: max-content;
  max-width: 92vw;
  font-size: clamp(38px, 4.5vw, 50px);
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-rotator > span.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0s;
}

.hero-rotator > span:first-child.is-active {
  transform: translateX(-50%);
}

.hero-rotator > span::after {
  content: "|";
  display: inline-block;
  margin-left: 0.25rem;
  color: inherit;
  font: inherit;
  opacity: 0;
}

.hero-rotator > span.is-typing::after {
  opacity: 1;
  animation: typeCursorBlink 0.5s ease-in-out infinite alternate;
}

.hero-contact {
  position: absolute;
  left: 64px;
  bottom: 24px;
  z-index: 4;
  display: block;
  width: auto;
  max-width: 360px;
  min-height: 56px;
  color: #4f5f68;
  font-style: normal;
}

.contact-title {
  margin: 0 0 12px;
  color: #6a7d8a;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
}

.contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7194a2;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.contact-copy span:not(.contact-icon) {
  color: #7194a2;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.contact-icon {
  color: #2f9cad;
  font-size: 14px;
  line-height: 1;
}

.contact-copy:hover,
.contact-copy:hover span:not(.contact-icon) {
  color: #2f9cad;
}

.hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 4;
  color: rgba(18, 27, 31, 0.58);
  font-size: 15px;
  font-weight: 400;
  animation: scrollFloat 2.8s ease-in-out infinite;
}
.project {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-block: clamp(54px, 8vh, 86px);
}

.project::before {
  content: none;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(48px, 5vw, 72px);
  width: min(82vw, 1360px);
  height: min(76vh, 720px);
  min-height: 560px;
  max-height: 720px;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 44px);
  border: 0;
  border-radius: 40px;
  background: #f5f9fa;
  box-shadow:
    0 34px 90px rgba(33, 52, 63, 0.07),
    0 8px 24px rgba(33, 52, 63, 0.035);
}

#project-02 .case-card {
  background: #f5f9fa;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 39px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.project-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 0;
}

.project-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.project-number::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(137, 159, 152, 0.54);
}

.project h2 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.ending h2 {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: clamp(40px, 5.4vw, 74px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.project-subtitle {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 500;
  line-height: 1.45;
}

.project-copy > p:not(.project-subtitle):not(.button-note) {
  margin-bottom: 12px;
  color: rgba(64, 82, 92, 0.84);
  font-size: 14px;
  line-height: 1.58;
}

.meta-group {
  margin-top: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(74, 99, 111, 0.11);
}

.meta-group h3 {
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-group p {
  margin-bottom: 0;
  color: rgba(64, 82, 92, 0.72);
  font-size: 12px;
  line-height: 1.48;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 22px;
  border: 1px solid rgba(35, 59, 74, 0.12);
  border-radius: 999px;
  background: rgba(35, 59, 74, 0.9);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(35, 59, 74, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:hover {
  background: var(--blue-deep);
  box-shadow: 0 20px 46px rgba(35, 59, 74, 0.18);
  transform: translateY(-2px);
}

.button-note {
  max-width: 420px;
  margin: 8px 0 0;
  color: rgba(116, 131, 138, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

#project-01 .project-copy {
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

#project-01 .case-kicker {
  display: block;
  margin-bottom: 14px;
  color: #5f6f73;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

#project-01 h2 {
  max-width: 100%;
  margin-top: 20px;
  margin-bottom: 25px;
  padding-top: 8px;
  color: #244042;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.14;
}

#project-01 .case-value {
  max-width: 100%;
  margin: 0 0 15px;
  color: #4f5f68;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.58;
}

#project-01 .case-value span {
  color: #3f98a7;
}

#project-01 .case-description {
  max-width: 500px;
  margin: 20px 0 20px;
  color: #5f6f7a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

#project-01 .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 14px;
}

#project-01 .case-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(63, 152, 167, 0.45);
  border-radius: 999px;
  background: #ebf4f4;
  color: #3f98a7;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

#project-01 .case-divider {
  width: 82%;
  height: 1px;
  margin: 8px 0 26px;
  background: rgba(95, 111, 122, 0.16);
}

#project-01 .case-sample-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
  margin: 0 0 16px;
}

#project-01 .case-sample-note .sample-file {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  color: #527a84;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

#project-01 .case-sample-note .sample-icon {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#project-01 .case-sample-note .sample-filename {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#project-01 .case-sample-note small {
  flex: 1 1 160px;
  min-width: 0;
  color: #8a99a3;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

#project-01 .case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 20px;
  margin-bottom: 15px;
}

#project-01 .case-stats strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 8px;
  color: #263844;
  font-family: Inter, Avenir, "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

#project-01 .case-stats .stat-number {
  color: #263844;
  font: inherit;
  letter-spacing: 0;
  line-height: 1;
}

#project-01 .case-stats .stat-unit {
  color: #263844;
  font-size: 0.38em;
  font-weight: 600;
  line-height: 1;
  transform: translateY(0.08em);
}

#project-01 .case-stats .stat-label {
  display: block;
  color: #6f7f88;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

#project-01 .case-download-link {
  --liquid-button-fill: #3f98a7;
  --liquid-button-ink: #3f98a7;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  min-height: 38px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(63, 152, 167, 0.55);
  border-radius: 999px;
  background: #ebf4f4;
  color: var(--liquid-button-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  isolation: isolate;
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease, transform 180ms ease;
}

#project-01 .case-download-link::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--liquid-button-fill);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

#project-01 .case-download-link > span {
  position: relative;
  z-index: 1;
}

#project-01 .case-download-link:hover {
  border-color: var(--liquid-button-fill);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

#project-01 .case-download-link:hover::before {
  transform: scaleY(1.04);
}

#project-01 .case-download-link:active {
  transform: translateY(0) scale(0.98);
}

#project-02 .project-copy {
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

#project-02 .case-kicker {
  display: block;
  margin-bottom: 14px;
  color: #5f6f73;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

#project-02 h2 {
  max-width: 100%;
  margin-top: 20px;
  margin-bottom: 25px;
  padding-top: 8px;
  color: #244042;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.14;
}

#project-02 .case-value {
  max-width: 100%;
  margin: 0 0 15px;
  color: #4f5f68;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.58;
}

#project-02 .case-value span {
  color: #3f98a7;
}

#project-02 .case-description {
  max-width: 100%;
  margin: 20px 0 20px;
  color: #5f6f7a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

#project-02 .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 14px;
}

#project-02 .case-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(63, 152, 167, 0.45);
  border-radius: 999px;
  background: #ebf4f4;
  color: #3f98a7;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

#project-02 .case-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0 26px;
  background: rgba(95, 111, 122, 0.16);
}

#project-02 .case-sample-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
  margin: 0 0 16px;
}

#project-02 .case-sample-note .sample-file {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  color: #527a84;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

#project-02 .case-sample-note .sample-filename {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
}

#project-02 .case-sample-note small {
  flex: 0 1 auto;
  min-width: 0;
  color: #8a99a3;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

#project-02 .case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 20px;
  margin-bottom: 15px;
}

#project-02 .case-stats strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 8px;
  color: #263844;
  font-family: Inter, Avenir, "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

#project-02 .case-stats .stat-number {
  color: #263844;
  font: inherit;
  letter-spacing: 0;
  line-height: 1;
}

#project-02 .case-stats .stat-unit {
  color: #263844;
  font-size: 0.38em;
  font-weight: 600;
  line-height: 1;
  transform: translateY(0.08em);
}

#project-02 .case-stats .stat-label {
  display: block;
  color: #6f7f88;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

#project-02 .case-boundary {
  max-width: 100%;
  margin: 22px 0 0;
  color: #7a8992;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
}

#project-02 .project-stage--rpa {
  height: 90%;
  transform: none;
}

#project-02 .rpa-flow-showcase {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#project-02 .rpa-flow-header p {
  display: inline-block;
  max-width: 560px;
  margin: 0;
  color: #01445b;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

#project-02 .rpa-flow-image-card {
  display: grid;
  min-height: 0;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#project-02 .rpa-flow-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #f7fafb;
  border-radius: 14px;
  box-shadow:
    0 18px 42px rgba(33, 52, 63, 0.12),
    0 4px 12px rgba(33, 52, 63, 0.06);
}

#project-02 .rpa-flow-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(63, 152, 167, 0.18);
  border-radius: 999px;
  background: rgba(235, 244, 244, 0.48);
}

#project-02 .rpa-flow-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(4px + var(--active-tab-index, 0) * ((100% - 8px) / 4));
  width: calc((100% - 8px) / 4);
  border: 1px solid rgba(63, 152, 167, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 8px 18px rgba(33, 52, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: left 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

#project-02 .rpa-flow-tab {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #5f6f73;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition:
    color 180ms ease,
    transform 220ms ease;
}

#project-02 .rpa-flow-tab:hover {
  color: #2f6f78;
}

#project-02 .rpa-flow-tab.is-active {
  color: #2f6f78;
  transform: translateY(-1px);
}

#project-02 .rpa-flow-description {
  position: relative;
  min-height: 36px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

#project-02 .rpa-flow-description p {
  display: none;
  margin: 0;
  padding: 5px 2px 0;
  color: #4f5f68;
  font-size: 12.5px;
  line-height: 1.55;
}

#project-02 .rpa-flow-description p.is-active {
  display: block;
  animation: rpaTabPanelIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rpaTabPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84%;
  min-height: 0;
  overflow: visible;
}

.project-stage::before {
  content: none;
}

.desktop-component-slot {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: visible;
  transform: translateX(-36px);
}

.desktop-component-slot .portfolio-desktop-mockup {
  width: min(100%, 660px);
  min-width: 0;
  max-width: 660px;
  aspect-ratio: 16 / 10;
}

.desktop-click-hint,
.desktop-ps-note {
  position: absolute;
  left: 50%;
  width: min(100%, 660px);
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.desktop-click-hint {
  top: calc(50% - 214px);
  color: #527a84;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 1.4em;
  text-align: left;
}

.desktop-click-hint::before {
  content: none;
}

.desktop-ps-note {
  top: calc(50% + 214px);
  color: rgba(95, 111, 122, 0.58);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.rpa-workbench {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(74, 99, 111, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 246, 247, 0.78)),
    var(--panel-solid);
  box-shadow: var(--shadow-float);
}

.rpa-workbench::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.boundary-columns section {
  border: 1px solid rgba(74, 99, 111, 0.1);
  border-radius: 14px;
  background: rgba(251, 250, 246, 0.72);
  padding: 18px;
}

.boundary-columns h4 {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 14px;
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(74, 99, 111, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(223, 233, 237, 0.48)),
    repeating-linear-gradient(0deg, rgba(73, 105, 123, 0.035), rgba(73, 105, 123, 0.035) 1px, transparent 1px, transparent 16px),
    #f3f6f5;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame img.is-missing {
  display: none;
}

.missing-image {
  color: rgba(116, 131, 138, 0.8);
  font-size: 13px;
  text-align: center;
}

.side-tab {
  border: 0;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rpa-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 18px;
  padding: 24px;
}

.rpa-main {
  display: grid;
  grid-template-rows: minmax(240px, 0.95fr) minmax(164px, 0.55fr);
  gap: 18px;
  min-width: 0;
}

.rpa-image {
  min-height: 240px;
}

.rpa-panel {
  display: none;
  min-height: 164px;
  animation: fadeIn 220ms ease both;
}

.rpa-panel.is-active {
  display: block;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-line li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(74, 99, 111, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(64, 82, 92, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.flow-line li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(137, 159, 152, 0.36);
}

.flow-line li.is-lit {
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-deep);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(33, 52, 63, 0.09);
}

.flow-line li.is-lit::before {
  background: var(--sage);
}

.record-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.record-steps span {
  padding: 7px 10px;
  border: 1px solid rgba(74, 99, 111, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

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

.record-grid div {
  display: grid;
  place-items: center;
  min-height: 100px;
  border: 1px dashed rgba(74, 99, 111, 0.22);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(116, 131, 138, 0.82);
  font-size: 13px;
  text-align: center;
}

.boundary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.boundary-columns ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(64, 82, 92, 0.76);
  font-size: 13px;
  line-height: 1.8;
}

.side-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.side-tab {
  min-height: 42px;
  border: 1px solid rgba(74, 99, 111, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(64, 82, 92, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.side-tab:hover {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.88);
}

.side-tab.is-active {
  background: rgba(35, 59, 74, 0.9);
  color: #fff;
  box-shadow: 0 12px 30px rgba(35, 59, 74, 0.12);
}

.sticky-note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  width: 180px;
  padding: 15px 15px 13px;
  border: 1px solid rgba(150, 121, 57, 0.12);
  border-radius: 8px;
  background: #f1dfa9;
  color: #5b5139;
  box-shadow: 0 18px 38px rgba(88, 76, 50, 0.14);
  transform: rotate(1.2deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sticky-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-width: 0 0 22px 22px;
  border-style: solid;
  border-color: transparent transparent #d8c486 transparent;
}

.sticky-note strong {
  font-size: 14px;
}

.sticky-note span,
.sticky-note em {
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.sticky-note em {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticky-note:hover {
  box-shadow: 0 26px 46px rgba(88, 76, 50, 0.17);
  transform: translateY(-6px) rotate(-1deg);
}

.sticky-note:hover em {
  opacity: 1;
  transform: translateY(0);
}

.ending.section {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(74, 99, 111, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 250, 0.9)),
    #f4fbfc;
}

.gravity-stars-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.ending.section h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(46px, 6vw, 86px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 30;
  max-width: calc(100vw - 36px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(35, 59, 74, 0.92);
  color: #fff;
  box-shadow: 0 18px 40px rgba(33, 52, 63, 0.18);
  transform: translateX(-50%);
  animation: toastIn 220ms ease both;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes sparkBreath {
  0%, 100% {
    opacity: 0.82;
    transform: rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(8deg) scale(1.05);
  }
}

@keyframes scrollFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes typeCursorBlink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .section {
    padding-inline: 34px;
  }

  .case-card {
    width: min(88vw, 1280px);
    gap: 48px;
  }

  .project-copy {
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .project {
    min-height: auto;
    padding-block: 74px;
  }

  .case-card {
    grid-template-columns: 1fr;
    align-items: start;
    width: min(92vw, 760px);
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 30px;
    padding: 34px;
    border-radius: 32px;
  }

  .case-card::before {
    border-radius: 31px;
  }

  .project-copy {
    max-width: 100%;
  }

  .project-stage {
    height: auto;
    min-height: 420px;
  }

  .rpa-workbench {
    min-height: 420px;
  }
}

@media (max-width: 1024px) {
  .hero-chrome {
    top: 20px;
    left: 30px;
    right: 30px;
  }

  .hero-stage {
    top: calc(50vh - 89px);
    width: 76vw;
  }

  .hero-rotator {
    width: 76vw;
    max-width: 760px;
    min-height: 216px;
    font-size: clamp(38px, 4.8vw, 48px);
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .hero-chrome {
    top: 20px;
    left: 28px;
    right: 28px;
  }

  .hero-stage {
    top: calc(50vh - 82px);
    width: 88vw;
  }

  .hero-welcome {
    margin-bottom: 24px;
  }

  .hero-rotator {
    width: 88vw;
    max-width: 88vw;
    min-height: 180px;
    font-size: 40px;
    line-height: 1.5;
  }

  .hero-contact {
    left: 7.5vw;
    bottom: 4vh;
  }

  .contact-links {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero-scroll {
    right: 28px;
    bottom: 28px;
  }
}

@media (max-width: 760px) {
  .section {
    min-height: auto;
    padding: 94px 18px;
  }

  .project {
    padding-block: 58px;
  }

  .project h2,
  .ending h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .rpa-workbench {
    min-height: 520px;
    border-radius: 16px;
  }

  .coming-grid,
  .boundary-columns {
    grid-template-columns: 1fr;
  }

  .rpa-workbench {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .side-tabs {
    grid-template-columns: repeat(3, 1fr);
    order: -1;
  }

  .side-tab {
    min-height: 39px;
    font-size: 12px;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-line li {
    min-height: 56px;
  }

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

  .sticky-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 4px;
  }

  .desktop-component-slot {
    height: auto;
    gap: 10px;
    transform: none;
  }

  .desktop-component-slot .portfolio-desktop-mockup {
    width: 100%;
    max-width: 100%;
  }

  .desktop-click-hint,
  .desktop-ps-note {
    position: static;
    width: 100%;
    transform: none;
    text-align: left;
  }

  .desktop-click-hint {
    font-size: 13px;
  }

  #project-02 .rpa-flow-header p {
    max-width: 100%;
    white-space: normal;
  }

}

@media (max-width: 480px) {
  .hero-chrome {
    top: 14px;
    left: 24px;
    right: 24px;
  }

  .hero-nav {
    gap: 18px;
  }

  .nav-link {
    height: 38px;
    padding: 0 4px;
    font-size: 13px;
  }

  .hero-stage {
    top: calc(50vh - 70px);
    width: 92vw;
  }

  .hero-welcome {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .welcome-spark {
    font-size: 18px;
  }

  .hero-rotator {
    width: 92vw;
    max-width: 92vw;
    min-height: 150px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.5;
  }

  .hero-contact {
    left: 24px;
    right: 18px;
    bottom: 22px;
    max-width: calc(100vw - 42px);
  }

  .contact-links {
    display: grid;
    gap: 8px;
  }

  .contact-copy {
    font-size: 13px;
  }

  .hero-scroll {
    display: none;
  }

  .case-card {
    width: min(94vw, 420px);
    padding: 24px;
    border-radius: 26px;
  }

  .case-card::before {
    border-radius: 25px;
  }

  .project-stage {
    min-height: auto;
  }

  .case-card {
    overflow: visible;
  }

  #project-01 .case-stats,
  #project-02 .case-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
    column-gap: 16px;
  }

  #project-01 .case-stats strong,
  #project-02 .case-stats strong {
    font-size: 28px;
  }

  #project-02 .project-stage--rpa,
  #project-02 .rpa-flow-showcase {
    height: auto;
  }

  #project-02 .rpa-flow-image-card {
    min-height: 220px;
  }

  #project-02 .rpa-flow-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }

  #project-02 .rpa-flow-tabs::before {
    display: none;
  }

  #project-02 .rpa-flow-tab.is-active {
    border-color: rgba(63, 152, 167, 0.34);
    background: rgba(255, 255, 255, 0.86);
  }
}

@media (max-width: 768px) {
  .hero-rotator > span:first-child {
    font-size: clamp(30px, 5.2vw, 40px);
  }
}

@media (max-width: 480px) {
  .hero-rotator > span:first-child {
    font-size: clamp(26px, 7vw, 34px);
  }
}

@media (max-width: 390px) {
  #project-01 .case-stats,
  #project-02 .case-stats {
    grid-template-columns: 1fr;
  }
}

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