:root {
  --bg: #f6f7fb;
  --bg-dark: #060606;
  --bg-dark-card: #111111;
  --bg-dark-soft: #171717;
  --surface: rgba(255, 255, 255, 0.96);
  --text: #111111;
  --text-muted: #6f7c96;
  --text-blue: #4a79ff;
  --text-orange: #ff612f;
  --line: rgba(74, 121, 255, 0.28);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 70px rgba(18, 32, 79, 0.08);
  --max-width: 1280px;
  --max-width-narrow: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.rita-project-body {
  background: #ffffff;
}

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

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

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.page-shell-detail {
  width: clamp(800px, calc(100vw - 240px), 2400px);
  max-width: calc(100vw - 240px);
}

.page-shell-narrow {
  width: clamp(700px, calc(100% - 100px), 1000px);
}

.homepage {
  overflow: hidden;
  background:
    radial-gradient(28.83% 45.35% at 42.9% 100%, rgba(153, 228, 255, 0.4) 0%, rgba(153, 228, 255, 0) 100%),
    radial-gradient(55.57% 51% at 94.15% 90.4%, rgba(102, 178, 255, 0.5) 0%, rgba(128, 191, 255, 0) 100%),
    radial-gradient(46.31% 30.44% at 70.95% 33.92%, rgba(153, 228, 255, 0.4) 0%, rgba(255, 255, 255, 0.4) 100%),
    radial-gradient(33.73% 56.14% at 36.55% 25.84%, rgba(102, 255, 162, 0.4) 0%, rgba(232, 255, 241, 0.2) 82.21%, rgba(255, 255, 255, 0) 100%),
    #fff;
}

.hero-home {
  background:
    radial-gradient(circle at 50% 115%, rgba(85, 255, 210, 0.55), transparent 22%),
    radial-gradient(circle at 74% 115%, rgba(78, 175, 255, 0.45), transparent 20%),
    linear-gradient(180deg, #050505 0%, #000000 80%);
  color: #ffffff;
  padding-bottom: 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 10px;
}

.site-header-dark {
  border-bottom: 1px solid var(--line-dark);
}

.site-header-left,
.site-header-right,
.site-nav {
  display: flex;
  align-items: center;
}

.site-header-left {
  gap: 16px;
}

.site-header-right,
.site-nav {
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.brand-dark {
  background: linear-gradient(180deg, #bff7d2 0%, #6fc5ff 100%);
  color: #0c0c0c;
}

.site-nav,
.site-header-right {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-nav a:hover,
.site-header-right a:hover {
  color: #ffffff;
}

.hero-home-copy {
  max-width: 860px;
  padding: 36px 0 24px;
}

.hero-kicker {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.hero-home-copy h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-home-intro {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.hero-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0 34px;
}

.hero-card {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hero-card:hover {
  transform: translateY(-6px) rotate(0deg);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.hero-card-tilt-left {
  transform: rotate(-5deg);
}

.hero-card-center {
  transform: translateY(-8px) rotate(-8deg);
}

.hero-card-tilt-right {
  transform: rotate(6deg);
}

.hero-card-title {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.hero-chip-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 78%;
  margin: 62px auto 0;
}

.hero-chip {
  display: inline-flex;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-chip-green {
  background: linear-gradient(135deg, #46ffb0 0%, #22d4a2 100%);
  color: rgba(0, 0, 0, 0.45);
}

.hero-chip-cyan {
  background: linear-gradient(135deg, #0fbef6 0%, #1183d8 100%);
}

.hero-chip-blue {
  background: linear-gradient(135deg, #2459ff 0%, #1835bf 100%);
}

.hero-path-wrap {
  position: relative;
  height: 220px;
  margin-top: 18px;
}

.hero-path-circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.hero-path-circle-large {
  top: 22px;
  left: 82px;
  width: 118px;
  height: 168px;
}

.hero-path-circle-small {
  left: 24px;
  bottom: 12px;
  width: 86px;
  height: 120px;
}

.hero-path-wrap::after {
  content: "";
  position: absolute;
  left: 64px;
  top: 148px;
  width: 116px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  transform: rotate(-24deg);
  transform-origin: left center;
}

.hero-portrait-float {
  position: absolute;
  right: 20px;
  top: 36px;
  width: 94px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  transform: rotate(3deg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.hero-portrait-float img {
  border-radius: 4px;
}

.hero-polaroid-wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
}

.hero-polaroid {
  width: 146px;
  background: #ffffff;
  color: #131313;
  border-radius: 8px;
  padding: 8px 8px 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg);
}

.hero-polaroid img {
  border-radius: 4px;
  margin-bottom: 8px;
}

.hero-polaroid span {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-mini-poster {
  width: 108px;
  border-radius: 12px;
  overflow: hidden;
  transform: rotate(12deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero-divider {
  height: 12px;
  background: linear-gradient(90deg, #83ffca 0%, #ffffff 44%, #8ed0ff 100%);
  box-shadow: 0 0 30px rgba(141, 232, 255, 0.65);
}

.resume-home {
  padding: 42px 0 54px;
  background: #f7f8fc;
}

.resume-heading-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-orange);
  font-size: 1.3rem;
  font-weight: 700;
}

.resume-heading-line p,
.resume-heading-line span {
  margin: 0;
}

.resume-home-top {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  padding: 28px 0 18px;
}

.resume-photo-card {
  width: 100%;
  background: #dfe4ef;
  padding: 10px;
}

.resume-home-info {
  color: var(--text-blue);
}

.resume-home-tags {
  margin: 0 0 22px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.resume-home-tags span,
.resume-info-block p span {
  margin: 0 8px;
  color: rgba(74, 121, 255, 0.52);
}

.resume-info-block + .resume-info-block {
  margin-top: 24px;
}

.resume-info-block h2 {
  margin: 0 0 10px;
  color: var(--text-orange);
  font-size: 1.1rem;
}

.resume-info-block p {
  margin: 0;
  line-height: 1.75;
  font-size: 1.02rem;
}

.resume-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.resume-timeline-home {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.timeline-section-title {
  margin: 18px 0 12px;
  color: var(--text-orange);
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-home-item {
  display: grid;
  grid-template-columns: 180px 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 8px 0 24px;
}

.timeline-home-side {
  color: var(--text-blue);
  text-align: right;
}

.timeline-home-side p,
.timeline-home-side h3,
.timeline-home-side span,
.timeline-home-main h3,
.timeline-home-main p {
  margin: 0;
}

.timeline-home-side p {
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-home-side h3 {
  margin-top: 12px;
  font-size: 1.1rem;
}

.timeline-home-side span {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
  font-size: 0.98rem;
}

.timeline-home-line {
  position: relative;
  min-height: 100%;
}

.timeline-home-line::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(74, 121, 255, 0.48);
}

.timeline-home-line::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--text-orange);
  box-shadow: 0 0 0 4px #f7f8fc;
}

.timeline-home-main {
  color: var(--text-blue);
  padding-right: 10px;
}

.timeline-home-main h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

.timeline-home-main p {
  font-size: 1rem;
  line-height: 1.78;
}

.timeline-home-main p + p {
  margin-top: 10px;
}

.featured-home {
  padding: 84px 0 48px;
}

.featured-banner {
  display: block;
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 26px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.featured-banner:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.featured-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 48px;
  min-width: 172px;
  height: 40px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: #0bb31f;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 179, 31, 0.96);
  z-index: 2;
  transition:
    background 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.featured-banner:hover .featured-banner-cta {
  color: #ffffff;
  background: #0bb31f;
  transform: translateY(-1px);
}

.featured-banner-image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.featured-banner-cta-top {
  bottom: 95px;
}

.featured-banner-cta-bottom {
  bottom: 93px;
}

.featured-home-intro {
  padding: 0 10px 26px;
}

.featured-home-kicker {
  margin: 0 0 18px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.78);
}

.featured-home-kicker span {
  margin: 0 10px;
  color: rgba(17, 17, 17, 0.42);
}

.featured-home-intro h1 {
  margin: 0 0 34px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.subpage-hero {
  padding: 74px 0 24px;
}

.subpage-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.subpage-hero p {
  max-width: 760px;
  color: #4a5368;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #62708b;
}

.detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 40px;
}

.detail-card,
.contact-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(74, 121, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.detail-card figure {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
}

.detail-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-card h2,
.contact-card h2 {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.045em;
}

.detail-card p,
.contact-card p,
.detail-card ul,
.contact-card ul {
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #4a5368;
  line-height: 1.75;
}

.detail-card ul,
.contact-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.contact-card ul {
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
}

.contact-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(74, 121, 255, 0.12);
}

.stacked-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.case-page {
  padding-bottom: 42px;
}

.case-page-gallery {
  padding-bottom: 0;
}

.case-page-gallery .subpage-hero {
  padding-top: 56px;
  padding-bottom: 12px;
}

.case-page-gallery .subpage-hero p {
  margin-bottom: 0;
}

.case-section {
  margin-top: 18px;
}

.case-section-band {
  background: #f1f1f1;
  padding: 34px 28px;
}

.case-title-small {
  margin: 0 0 18px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.case-section h2 {
  margin: 0 0 16px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.case-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 36px;
  align-items: start;
}

.case-copy-plain,
.case-mini-card-plain,
.case-image-card-plain,
.case-result-item,
.case-divider-col {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.case-media {
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.case-media-block {
  margin-top: 24px;
}

.case-section-image-only {
  margin-top: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
}

.case-section-image-only.case-section-band {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.case-section-image-only .case-media-full,
.case-section-image-only .case-media-plain,
.case-section-image-only .case-media {
  margin: 0;
  background: transparent;
  line-height: 0;
}

.case-section-image-only .case-media-full img,
.case-section-image-only .case-media-plain img,
.case-section-image-only .case-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  vertical-align: top;
}

.case-media-plain img {
  border-radius: 0;
  background: #d9d9d9;
}

.rita-gallery-section {
  position: relative;
  --rita-gallery-bottom: calc(7% + 120px);
  margin-top: 0;
  line-height: 0;
}

.rita-gallery-base {
  display: block;
  width: 100%;
  height: auto;
}

.rita-gallery-stage {
  position: absolute;
  right: 4.4%;
  bottom: var(--rita-gallery-bottom);
  width: 536px;
  max-width: 43.5%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.rita-gallery-active {
  width: 100%;
  height: auto;
  object-position: center;
  background: transparent;
  box-shadow: 0 20px 54px rgba(163, 181, 203, 0.18);
}

.rita-gallery-active.is-alpha-shadow {
  box-shadow: none;
  filter: drop-shadow(0 20px 54px rgba(163, 181, 203, 0.22));
}

.rita-gallery-thumbs {
  position: absolute;
  left: 5%;
  bottom: var(--rita-gallery-bottom);
  --rita-thumb-gap: clamp(10px, 1vw, 18px);
  width: 43%;
  display: grid;
  grid-template-columns: repeat(var(--thumb-count, 3), minmax(0, 1fr));
  gap: var(--rita-thumb-gap);
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  container-type: inline-size;
}

.rita-gallery-thumb {
  position: relative;
  margin: 0;
  padding: 0;
  height: calc((100cqw - (var(--rita-thumb-gap) * 3)) / 4 * 0.625);
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(176, 190, 205, 0.14);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.rita-gallery-thumb:hover {
  transform: translateY(-3px);
}

.rita-gallery-thumb.is-active {
  box-shadow: 0 14px 30px rgba(115, 186, 128, 0.2);
}

.rita-gallery-thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from -90deg, #39e4ff 0deg, #3fdc72 var(--rita-progress), transparent var(--rita-progress));
  pointer-events: none;
  animation: rita-thumb-progress 3000ms linear forwards;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.rita-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@property --rita-progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes rita-thumb-progress {
  from {
    --rita-progress: 0deg;
  }

  to {
    --rita-progress: 360deg;
  }
}

.case-media img,
.case-image-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-copy p,
.case-copy li,
.case-mini-card p,
.case-plain-grid p,
.case-footer-note p {
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #4a5368;
  line-height: 1.8;
}

.case-copy ul,
.case-copy ol,
.case-list {
  margin: 16px 0 0;
  padding-left: 20px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #4a5368;
  line-height: 1.85;
}

.case-four-up {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.case-mini-card h3,
.case-image-card h3,
.case-copy-block h3,
.case-result-strip h3 {
  margin: 0 0 10px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.case-launch-top {
  display: grid;
  grid-template-columns: 140px repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.case-launch-label h3 {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.case-launch-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.case-two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-image-card {
  margin: 0;
  padding: 0;
}

.case-image-label {
  margin: 0 0 12px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2f3c55;
}

.case-copy-block + .case-copy-block {
  margin-top: 20px;
}

.case-divider-col {
  min-height: 110px;
  padding-left: 28px;
  border-left: 1px solid rgba(17, 17, 17, 0.28);
}

.case-divider-col:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
}

.case-result-item {
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-left: 1px solid rgba(17, 17, 17, 0.28);
}

.case-result-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-footer-note {
  padding-top: 18px;
  padding-bottom: 18px;
}

.case-footer-note p {
  margin: 0;
}

.portfolio-taitopia-body {
  background: #fbfbf9;
}

.taitopia-page {
  padding-bottom: 80px;
}

.taitopia-main {
  padding: 18px 0 32px;
}

.taitopia-hero {
  display: flex;
  justify-content: center;
  padding: 24px 0 34px;
}

.taitopia-hero-media {
  margin: 0;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(34, 52, 65, 0.18);
}

.taitopia-hero-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.taitopia-intro {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  padding: 8px 0 96px;
}

.taitopia-intro-title h1 {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  line-height: 0.95;
  color: #121212;
}

.taitopia-intro-title p,
.taitopia-intro-copy p,
.taitopia-feature-copy p {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.72;
  color: #666666;
}

.taitopia-intro-title p {
  margin-top: 22px;
  max-width: 240px;
}

.taitopia-intro-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.taitopia-intro-copy a {
  color: #33a366;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.taitopia-section {
  padding: 44px 0 88px;
}

.taitopia-section-stack {
  display: grid;
  gap: 34px;
}

.taitopia-section-heading {
  margin: 0;
  text-align: center;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #202020;
}

.taitopia-section-heading-left {
  text-align: left;
}

.taitopia-section-heading-bottom {
  margin-top: 18px;
}

.taitopia-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.taitopia-feature-row-offset {
  grid-template-columns: minmax(320px, 0.92fr) minmax(280px, 0.78fr);
  gap: clamp(32px, 4.5vw, 56px);
}

.taitopia-feature-media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 26px rgba(46, 61, 77, 0.18);
  background: #dde4eb;
}

.taitopia-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.taitopia-feature-media-wide img {
  aspect-ratio: 16 / 9;
}

.taitopia-feature-media-portrait {
  width: 100%;
  max-width: 420px;
}

.taitopia-feature-media-portrait img {
  aspect-ratio: 4 / 5;
}

.taitopia-feature-media-notification img {
  aspect-ratio: 16 / 8.5;
}

.taitopia-feature-media-square {
  width: 100%;
  max-width: 430px;
}

.taitopia-feature-media-square img {
  aspect-ratio: 1 / 1.08;
}

.taitopia-feature-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.taitopia-feature-copy-with-title {
  gap: 20px;
}

.taitopia-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.taitopia-link::after {
  content: "↗";
  font-size: 14px;
  line-height: 1;
}

.taitopia-section-side {
  padding-top: 24px;
}

.taitopia-section-guidance .taitopia-feature-row {
  align-items: end;
}

.taitopia-details-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.taitopia-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #18b663;
}

.taitopia-dot-left {
  box-shadow:
    14px 0 0 #18b663,
    14px 14px 0 #18b663;
}

.taitopia-dot-right {
  box-shadow:
    -14px 0 0 #18b663,
    -14px -14px 0 #18b663;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 220ms ease;
}

.button-primary {
  background: #171717;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  color: #2f3c55;
  border: 1px solid rgba(47, 60, 85, 0.16);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

.hero-home,
.resume-home,
.featured-home,
.detail-card,
.contact-card {
  animation: rise-in 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

@media (max-width: 1100px) {
  .hero-card-row,
  .resume-home-top,
  .featured-banner,
  .detail-grid,
  .case-split,
  .case-two-up,
  .case-result-strip,
  .taitopia-intro,
  .taitopia-feature-row,
  .taitopia-feature-row-offset {
    grid-template-columns: 1fr;
  }

  .case-launch-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-launch-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-divider-col,
  .case-result-item {
    border-left: 0;
    padding-left: 0;
  }

  .featured-banner {
    border-radius: 0;
  }

  .featured-banner-cta {
    left: 36px;
    min-width: 148px;
    height: 40px;
    padding: 0 24px;
    font-size: 15px;
  }

  .featured-banner-cta-top,
  .featured-banner-cta-bottom {
    bottom: 56px;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .page-shell-detail,
  .page-shell-narrow {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header,
  .site-header-left,
  .site-header-right,
  .site-nav,
  .timeline-home-item {
    display: grid;
  }

  .site-header {
    gap: 12px;
  }

  .site-header-left,
  .site-header-right,
  .site-nav {
    gap: 10px;
  }

  .hero-home-copy {
    padding-top: 28px;
  }

  .hero-card {
    min-height: 250px;
    transform: none;
  }

  .resume-heading-line {
    font-size: 1.06rem;
  }

  .timeline-home-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-home-side {
    text-align: left;
  }

  .timeline-home-line {
    min-height: 26px;
  }

  .timeline-home-line::before {
    left: 0;
  }

  .timeline-home-line::after {
    left: -7px;
  }

  .featured-home {
    padding-top: 56px;
  }

  .featured-home-kicker {
    font-size: 1rem;
  }

  .featured-home-intro h1 {
    margin-bottom: 24px;
    font-size: 2.8rem;
  }

  .featured-banner {
    border-radius: 0;
  }

  .featured-banner-cta {
    left: 20px;
    min-width: 132px;
    height: 34px;
    padding: 0 18px;
    font-size: 14px;
  }

  .featured-banner-cta-top,
  .featured-banner-cta-bottom {
    bottom: 28px;
  }

  .taitopia-main {
    padding-top: 8px;
  }

  .taitopia-hero {
    padding-top: 10px;
  }

  .taitopia-intro {
    gap: 24px;
    padding-bottom: 64px;
  }

  .taitopia-intro-title h1 {
    font-size: 48px;
  }

  .taitopia-intro-title p,
  .taitopia-intro-copy p,
  .taitopia-feature-copy p {
    font-size: 18px;
  }

  .taitopia-section {
    padding: 28px 0 56px;
  }

  .taitopia-section-heading {
    font-size: 32px;
  }

  .taitopia-details-title {
    gap: 10px;
  }

  .taitopia-dot {
    width: 10px;
    height: 10px;
  }

  .taitopia-dot-left {
    box-shadow:
      12px 0 0 #18b663,
      12px 12px 0 #18b663;
  }

  .taitopia-dot-right {
    box-shadow:
      -12px 0 0 #18b663,
      -12px -12px 0 #18b663;
  }
}
