:root {
  --bg: #ffffff;
  --ink: #303030;
  --muted: #818181;
  --line: #dfdfdf;
  --soft-line: #eeeeee;
  --teal: #303030;
  --teal-dark: #111111;
  --red: #ff3b2e;
  --panel: #ecedec;
  --shadow: 0 18px 45px rgba(48, 48, 48, 0.08);
  --serif: "Songti TC", "Noto Serif TC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

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

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #303030;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #303030;
  color: #ffffff;
  transform: translateY(-3px);
}

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

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 60px;
}

.page-shell > main {
  flex: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px 48px;
  align-items: end;
  padding: 44px max(44px, calc((100vw - 1320px) / 2)) 52px;
  border-top: 1px solid var(--soft-line);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
  color: #777777;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer-name {
  color: #303030;
  font-size: 16px;
  font-weight: 600;
}

.site-footer-contact {
  display: grid;
  gap: 4px;
}

.site-footer-contact a {
  color: #303030;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease;
}

.site-footer-contact a:hover,
.site-footer-contact a:focus-visible {
  color: #777777;
}

.site-footer-copy {
  text-align: right;
}

.scroll-rail {
  position: fixed;
  left: 30px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 5;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.scroll-rail::before,
.scroll-rail::after {
  content: "";
  width: 1px;
  height: 70px;
  background: var(--line);
  margin: 14px 0;
}

.scroll-rail::after {
  background: var(--ink);
  height: 28px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.site-header {
  width: 100%;
  height: 60px;
  min-height: 60px;
  padding: 0 max(44px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--soft-line);
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 97px;
  height: 36px;
}

.brand img {
  width: 97px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro-hero {
  --glow-x: 50%;
  --glow-y: 50%;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(48, 48, 48, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 48, 48, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(190, 130, 33, 0.12), transparent 30%),
    #f7f4ed;
  background-size:
    48px 48px,
    48px 48px,
    100% 100%,
    100% 100%;
  padding: clamp(48px, 7vh, 80px) max(44px, calc((100vw - 1200px) / 2));
}

.intro-hero::before {
  content: "";
  position: absolute;
  left: var(--glow-x);
  top: var(--glow-y);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: #fffdf8;
  filter: blur(80px);
  opacity: 0.42;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
}

.intro-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(400px, 0.7fr);
  gap: clamp(24px, 2.75vw, 40px);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.intro-hero-content {
  max-width: 800px;
}

.intro-hero h1 {
  margin: 0;
  color: #1f1d18;
  font-family: var(--sans);
  animation: heroTextRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.intro-hero-identity {
  display: block;
  margin-bottom: 18px;
  color: #4f4c46;
  font-size: clamp(20px, 1.75vw, 27px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.intro-hero-headline {
  display: block;
  font-size: clamp(36px, 3.65vw, 54px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.intro-hero-headline > span {
  display: block;
}

.intro-hero-headline em {
  color: #a86700;
  font-style: normal;
}

.intro-hero-statement {
  max-width: 720px;
  margin: 28px 0 0;
  color: #625f58;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.9;
  animation: heroTextRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.intro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  animation: heroTextRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.intro-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid #1f1d18;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.intro-hero-button span {
  margin-left: 12px;
  font-size: 18px;
}

.intro-hero-button-primary {
  background: #1f1d18;
  color: #ffffff;
}

.intro-hero-button-secondary {
  background: rgba(255, 255, 255, 0.38);
}

.intro-hero-button:hover,
.intro-hero-button:focus-visible {
  transform: translateY(-3px);
}

.intro-hero-button-primary:hover,
.intro-hero-button-primary:focus-visible {
  border-color: #a86700;
  background: #a86700;
}

.intro-hero-button-secondary:hover,
.intro-hero-button-secondary:focus-visible {
  background: #ffffff;
}

.intro-hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 450px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 29, 24, 0.08);
  border-radius: 30px;
  background: #d4cfcc;
  box-shadow:
    0 30px 42px -20px rgba(31, 29, 24, 0.46),
    0 12px 30px rgba(42, 36, 25, 0.1);
  animation: heroPortraitRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
}

.intro-hero-portrait:hover {
  transform: translateY(-4px);
  box-shadow:
    0 34px 46px -20px rgba(31, 29, 24, 0.48),
    0 14px 32px rgba(42, 36, 25, 0.12);
}

.intro-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

@keyframes heroTextRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes heroPortraitRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

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

@media (prefers-reduced-motion: reduce) {
  .intro-hero h1,
  .intro-hero-statement,
  .intro-hero-actions,
  .intro-hero-portrait,
  .about-page {
    animation: none;
  }

  .intro-hero::before {
    display: none;
  }

  .intro-hero-portrait {
    transition: none;
  }

  .intro-hero-portrait:hover {
    transform: none;
  }
}

.portfolio-preview {
  background: #ffffff;
  padding: 42px max(44px, calc((100vw - 1320px) / 2));
}

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

.portfolio-item {
  min-width: 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.portfolio-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #f2f2f2;
  transition: box-shadow 220ms ease;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.visual-portfolio-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(234, 231, 223, 0.72), rgba(255, 255, 255, 0.96)),
    #f8f7f4;
}

.visual-portfolio-cover span {
  min-height: 0;
  border: 1px solid rgba(48, 48, 48, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(48, 48, 48, 0.07);
}

.visual-portfolio-cover span:nth-child(1),
.visual-portfolio-cover span:nth-child(5) {
  background: #17223a;
}

.visual-portfolio-cover span:nth-child(2),
.visual-portfolio-cover span:nth-child(6) {
  background: #d9c08b;
}

.visual-portfolio-cover span:nth-child(3) {
  background: #f05c43;
}

.visual-portfolio-cover span:nth-child(4) {
  background: #f7f1e6;
}

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

.portfolio-item:hover .portfolio-image {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.035);
}

.portfolio-item h2 {
  margin: 14px 0 4px;
  color: #5a5a5a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.portfolio-item p {
  margin: 0;
  color: #999999;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.about-preview {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 640px);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  background: #ffffff;
  padding: 96px max(44px, calc((100vw - 1320px) / 2)) 120px;
  border-top: 1px solid var(--soft-line);
}

.about-preview-image {
  width: min(100%, 280px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #f2f2f2;
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-label {
  margin: 0 0 12px;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.about-preview-copy h2 {
  margin: 0;
  color: #303030;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

.about-preview-copy p:not(.section-label) {
  margin: 24px 0 0;
  color: #555555;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555555;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.about-experience {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--soft-line);
}

.about-experience h2 {
  margin: 0;
  color: #303030;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.3;
}

.experience-list {
  display: grid;
  gap: 48px;
  margin-top: 36px;
}

.experience-item {
  padding-top: 28px;
}

.experience-item + .experience-item {
  border-top: 1px solid var(--soft-line);
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.experience-heading h3 {
  margin: 0;
  color: #303030;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}

.about-preview-copy .about-experience .experience-company {
  margin: 8px 0 0;
  color: #555555;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.about-preview-copy .about-experience .experience-period {
  margin: 5px 0 0;
  color: #999999;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.experience-description {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.about-preview-copy .about-experience .experience-description p {
  margin: 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.85;
}

.about-contact {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--soft-line);
}

.about-contact h2 {
  margin: 0;
  color: #303030;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.about-contact p:not(.section-label) {
  margin-top: 18px;
}

.about-contact-label {
  color: #999999;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-page {
  display: grid;
  grid-template-columns: 180px minmax(0, 680px);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
  width: min(100% - 88px, 960px);
  margin: 0 auto;
  padding: 112px 0 120px;
  animation: aboutPageRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.about-page-image {
  width: 180px;
}

.about-page-image img {
  object-position: 50% 34%;
}

.about-preview-copy h1 {
  margin: 0;
  color: #303030;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
}

.visual-detail {
  width: min(100% - 88px, 1120px);
  margin: 0 auto;
  padding: 88px 0 120px;
}

.visual-detail-header {
  width: min(100%, 760px);
}

.visual-detail-header h1 {
  margin: 0;
  color: #303030;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.12;
}

.visual-detail-header p:not(.project-section-kicker) {
  margin: 28px 0 0;
  color: #555555;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
}

.visual-section {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.visual-section-heading {
  width: min(100%, 720px);
}

.visual-section-heading h2 {
  margin: 0;
  color: #303030;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.25;
}

.visual-section-heading p:not(.project-section-kicker) {
  margin: 20px 0 0;
  color: #555555;
  font-size: 17px;
  line-height: 1.85;
}

.visual-gallery {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.visual-gallery-store,
.visual-gallery-social {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.visual-gallery-kv {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-gallery-logo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visual-gallery-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: #f2f2f2;
}

.visual-gallery-figure img {
  width: 100%;
  height: auto;
}

.visual-gallery-figure-wide {
  grid-column: span 2;
}

.visual-logo-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: #ffffff;
}

.visual-logo-item img {
  width: 100%;
  height: auto;
}

.visual-social-item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--soft-line);
  background: #f2f2f2;
}

.visual-social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed #cfcfcf;
  background:
    linear-gradient(rgba(48, 48, 48, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 48, 48, 0.025) 1px, transparent 1px),
    #fbfaf8;
  background-size: 24px 24px;
  color: #999999;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.visual-placeholder-tall {
  min-height: 460px;
}

.visual-carousel {
  position: relative;
  margin-top: 40px;
}

.visual-carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.visual-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.visual-carousel-track {
  display: flex;
  gap: 20px;
}

.visual-carousel-slide {
  flex: 0 0 calc((100% - 60px) / 4);
  margin: 0;
  overflow: hidden;
  background: #f2f2f2;
  scroll-snap-align: start;
}

.visual-carousel-slide img {
  width: 100%;
  height: auto;
}

.visual-carousel-sales .visual-carousel-slide,
.visual-carousel-kv .visual-carousel-slide {
  flex-basis: calc((100% - 20px) / 2);
}

.visual-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #303030;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.visual-carousel-button:hover,
.visual-carousel-button:focus-visible {
  background: #303030;
  color: #ffffff;
}

.visual-carousel-button-prev {
  left: -22px;
}

.visual-carousel-button-next {
  right: -22px;
}

.about-statement {
  color: #303030;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.55;
}

@keyframes aboutPageRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.lang-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 8px;
}

.hero-section {
  width: min(100% - 88px, 1320px);
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: center;
  padding: 34px 0 64px;
}

.hero-label {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(76px, 9vw, 148px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.intro {
  margin: 22px 0 0;
  color: #4a4a4a;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button::after,
.text-link::after {
  content: "→";
  color: currentColor;
  margin-left: 14px;
  font-size: 18px;
  line-height: 1;
}

.hero-actions .button::after {
  content: none;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button.secondary {
  border-color: transparent;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  align-self: stretch;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--panel);
  filter: grayscale(1);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  border-top: 1px solid var(--line);
  padding: 52px 0;
}

.work-section {
  width: min(100% - 88px, 1320px);
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 700;
  font-family: var(--serif);
  letter-spacing: 0;
  text-transform: none;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.work-category {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.section-heading + .work-category {
  border-top: 0;
  padding-top: 0;
}

.work-category p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: white;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #c4c9c7;
}

.project-thumb {
  position: relative;
  aspect-ratio: 1.65;
  overflow: hidden;
  background: var(--panel);
  filter: grayscale(1);
}

.project-body {
  padding: 18px 18px 20px;
}

.project-body::after {
  content: "→";
  color: var(--ink);
  float: right;
  margin-top: -8px;
  font-size: 20px;
}

.project-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 8px;
}

.project-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.project-card p:last-child {
  margin: 12px 0 0;
  color: #474c4b;
  font-size: 13px;
  line-height: 1.7;
}

.mobile-thumb {
  background: radial-gradient(circle at 40% 15%, #19a097, #006c65 62%, #04413d);
}

.phone {
  position: absolute;
  width: 34%;
  height: 78%;
  top: 12%;
  border-radius: 24px;
  background: #f7faf9;
  border: 8px solid #131514;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 18% 13% auto;
  height: 42%;
  border-radius: 10px;
  background: linear-gradient(150deg, #007d75, #b9ece6);
}

.phone-a {
  left: 17%;
  transform: rotate(-11deg);
}

.phone-b {
  right: 18%;
  transform: rotate(10deg);
}

.dashboard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 42%;
}

.commerce-thumb {
  background: linear-gradient(135deg, #f8f8f6, #d9dedb);
}

.browser-frame {
  position: absolute;
  inset: 14% 9% 18%;
  border: 1px solid #c7cbc8;
  border-radius: 6px;
  background: white;
  box-shadow: 0 22px 32px rgba(18, 18, 18, 0.12);
}

.browser-frame span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 12px 0 0 10px;
  border-radius: 50%;
  background: #cfd4d2;
}

.chair-card {
  position: absolute;
  right: 19%;
  bottom: 23%;
  width: 86px;
  height: 86px;
  border: 1px solid #b5a58f;
  background: linear-gradient(135deg, #d7c6aa, #977b59);
}

.health-thumb {
  background: radial-gradient(circle at 70% 34%, #173633, #121212 54%, #050505);
}

.dark-phone {
  position: absolute;
  right: 18%;
  top: 13%;
  width: 35%;
  height: 78%;
  border-radius: 24px;
  border: 8px solid #050606;
  background: #101412;
  color: white;
  padding: 28px 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  transform: rotate(-14deg);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.45);
}

.graphic-works {
  margin-top: 58px;
}

.graphic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.graphic-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.1fr);
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.graphic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #c4c9c7;
}

.graphic-poster {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: white;
  filter: grayscale(1);
  overflow: hidden;
}

.graphic-poster span {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 0.96;
}

.poster-a {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5)),
    repeating-linear-gradient(90deg, #111 0 16px, #f2f2f2 16px 32px);
}

.poster-b {
  background:
    radial-gradient(circle at 68% 28%, #f3f3f3 0 18%, transparent 19%),
    linear-gradient(160deg, #2d2d2d 0 48%, #8b8b8b 49% 100%);
}

.poster-c {
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.72) 48% 52%, transparent 53%),
    linear-gradient(180deg, #1b1b1b, #6f6f6f);
}

.graphic-copy {
  padding: 22px;
}

.graphic-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.graphic-copy p:last-child {
  margin: 12px 0 0;
  color: #474c4b;
  font-size: 13px;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.split-section .section {
  padding: 64px max(44px, calc((100vw - 1320px) / 2));
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.split-section .section:last-child {
  border-bottom: 0;
}

.about-panel,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}

.compact {
  justify-content: flex-start;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 18px;
}

.strength-grid article {
  min-width: 0;
}

.strength-grid h3,
.timeline h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.strength-grid p,
.timeline p,
.contact-copy {
  margin: 0;
  color: #454a49;
  font-size: 13px;
  line-height: 1.75;
}

.line-icon {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  position: relative;
}

.target-icon {
  border-radius: 50%;
}

.target-icon::before,
.target-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.target-icon::before {
  width: 22px;
  height: 1px;
  left: 4px;
  top: 14px;
}

.target-icon::after {
  width: 1px;
  height: 22px;
  left: 14px;
  top: 4px;
}

.pencil-icon {
  transform: rotate(-45deg);
  border-radius: 0;
  width: 14px;
  height: 36px;
  margin-left: 10px;
}

.prototype-icon {
  border: 0;
  width: 46px;
}

.prototype-icon::before,
.prototype-icon::after {
  content: "";
  position: absolute;
  border: 1px solid var(--ink);
}

.prototype-icon::before {
  left: 2px;
  top: 6px;
  width: 30px;
  height: 20px;
  border-radius: 4px;
}

.prototype-icon::after {
  right: 2px;
  bottom: 4px;
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: white;
}

.rocket-icon {
  border-radius: 50% 50% 50% 6px;
  transform: rotate(45deg);
}

.timeline {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  max-width: 720px;
}

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 34px;
  position: relative;
  padding-bottom: 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 108px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 113px;
  top: 14px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.timeline h3 {
  margin-top: 0;
}

.contact-copy {
  max-width: 520px;
  margin: 0 0 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.contact-content {
  grid-column: 2;
  max-width: 520px;
  padding-top: 10px;
}

.contact-email {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  font: 500 14px/1.4 var(--sans);
  color: var(--ink);
  background: white;
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.case-hero,
.case-meta-section,
.case-section {
  width: min(100% - 88px, 1320px);
  margin: 0 auto;
}

.case-hero {
  padding: 58px 0 72px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

.back-link::before {
  content: "←";
  margin-right: 10px;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(44px, 8vw, 140px);
  align-items: end;
}

.case-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.case-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
}

.case-hero h1 span {
  display: block;
}

.case-title-zh {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.08;
}

.case-summary,
.case-section-content > p {
  margin: 0;
  color: #454a49;
  font-size: 15px;
  line-height: 1.95;
}

.case-cover {
  min-height: 420px;
  margin-top: 58px;
  position: relative;
  overflow: hidden;
  filter: grayscale(1);
}

.case-meta-section,
.case-section {
  border-top: 1px solid var(--line);
}

.case-meta-section {
  padding: 34px 0;
}

.case-meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.case-meta-list div {
  min-width: 0;
}

.case-meta-list dt {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-meta-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(48px, 8vw, 140px);
  padding: 72px 0;
}

.case-section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
}

.case-section-content {
  min-width: 0;
}

.case-note-grid,
.case-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.case-note-grid article {
  border: 1px solid var(--line);
  padding: 22px;
}

.case-note-grid h3,
.case-process-list h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.case-note-grid p,
.case-process-list p {
  margin: 0;
  color: #454a49;
  font-size: 13px;
  line-height: 1.75;
}

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

.project-takeaway-grid article {
  border: 1px solid var(--line);
  padding: 22px;
  background: #ffffff;
}

.project-takeaway-grid span {
  display: block;
  margin-bottom: 18px;
  color: #a6a09a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-takeaway-grid p {
  margin: 0;
  color: #303030;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.case-process-list {
  list-style: none;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.case-process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 24px;
  align-items: start;
}

.case-process-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.case-screen {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(1);
}

.case-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-ending .button {
  margin-top: 28px;
}

.project-detail {
  width: min(100% - 88px, 960px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.project-detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}

.project-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-header {
  margin-top: 56px;
}

.project-detail-header h1 {
  margin: 0;
  color: #303030;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.project-detail-header p {
  margin: 28px 0 0;
  color: #555555;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
}

.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}

.project-detail-meta div {
  min-width: 0;
}

.project-detail-meta dt {
  margin: 0 0 10px;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.project-detail-meta dd {
  margin: 0;
  color: #303030;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.project-story-section {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.project-section-kicker {
  margin: 0 0 12px;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.project-story-section h2 {
  margin: 0;
  color: #303030;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
}

.project-story-section h3 {
  margin: 52px 0 16px;
  color: #303030;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
  scroll-margin-top: 96px;
}

.project-story-section h4 {
  margin: 48px 0 12px;
  color: #303030;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.project-story-section p:not(.project-section-kicker):not(.project-emphasis) {
  margin: 24px 0 0;
  color: #555555;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
}

.project-emphasis {
  margin: 32px 0 0;
  padding-left: 20px;
  border-left: 3px solid #303030;
  color: #303030;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.75;
}

.project-wide-image {
  margin: 56px 0 0;
}

.project-image-tight {
  margin-top: 32px;
}

.project-wide-image img {
  width: 100%;
  height: auto;
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
}

.project-image-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.project-image-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1080px) {
  .scroll-rail {
    display: none;
  }

  .intro-hero {
    min-height: auto;
  }

  .intro-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
    gap: 48px;
  }

  .intro-hero-portrait {
    max-width: 430px;
  }

  .hero-section,
  .work-section,
  .case-hero,
  .case-meta-section,
  .case-section {
    width: min(100% - 40px, 980px);
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

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

  .graphic-card {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section .section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-panel,
  .contact-panel {
    grid-template-columns: minmax(180px, 0.55fr) minmax(360px, 1.45fr);
    gap: 44px;
  }

  .case-hero-grid,
  .case-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

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

@media (max-width: 760px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
  }

  .site-header {
    align-items: center;
    gap: 0;
    padding: 0 20px;
    flex-wrap: nowrap;
  }

  .site-nav {
    order: initial;
    width: auto;
    display: flex;
    gap: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 36px 20px 44px;
  }

  .site-footer-copy {
    text-align: left;
  }

  .intro-hero,
  .portfolio-preview,
  .about-preview {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-hero {
    display: block;
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .intro-hero-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro-hero-content {
    max-width: none;
  }

  .intro-hero-identity {
    margin-bottom: 14px;
    font-size: clamp(20px, 6vw, 26px);
  }

  .intro-hero-headline {
    font-size: clamp(34px, 9.8vw, 45px);
    line-height: 1.3;
  }

  .intro-hero-statement {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.8;
  }

  .intro-hero-actions {
    align-items: stretch;
    margin-top: 26px;
  }

  .intro-hero-button {
    min-height: 50px;
    padding: 0 21px;
  }

  .intro-hero-portrait {
    justify-self: center;
    width: min(100%, 470px);
    border-radius: 24px;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .about-page {
    grid-template-columns: 1fr;
    gap: 32px;
    width: min(100% - 40px, 960px);
    padding: 72px 0 88px;
  }

  .about-preview-image {
    width: 180px;
  }

  .about-page-image {
    width: 150px;
  }

  .about-experience {
    margin-top: 52px;
    padding-top: 36px;
  }

  .experience-list {
    gap: 40px;
    margin-top: 28px;
  }

  .experience-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-preview-copy .about-experience .experience-period {
    margin-top: 0;
    white-space: normal;
  }

  .project-detail {
    width: min(100% - 40px, 960px);
    padding: 44px 0 72px;
  }

  .project-detail-header {
    margin-top: 36px;
  }

  .project-detail-header p {
    font-size: 16px;
  }

  .project-detail-meta {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }

  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .visual-detail {
    width: min(100% - 40px, 1120px);
    padding: 56px 0 88px;
  }

  .visual-section {
    margin-top: 64px;
    padding-top: 44px;
  }

  .visual-gallery-store,
  .visual-gallery-sales,
  .visual-gallery-kv,
  .visual-gallery-logo,
  .visual-gallery-social {
    grid-template-columns: 1fr;
  }

  .visual-gallery-figure-wide {
    grid-column: auto;
  }

  .visual-placeholder,
  .visual-placeholder-tall {
    min-height: 220px;
  }

  .visual-carousel-slide {
    flex-basis: 100%;
  }

  .visual-carousel-sales .visual-carousel-slide,
  .visual-carousel-kv .visual-carousel-slide {
    flex-basis: 100%;
  }

  .visual-carousel-button {
    width: 40px;
    height: 40px;
  }

  .visual-carousel-button-prev {
    left: 10px;
  }

  .visual-carousel-button-next {
    right: 10px;
  }

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

  .hero-copy h1 {
    font-size: 68px;
  }

  .role {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 270px;
  }

  .section-heading,
  .section-heading > div {
    align-items: flex-start;
  }

  .section-heading {
    flex-direction: column;
  }

  .section-heading > div {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .work-grid,
  .strength-grid,
  .graphic-grid,
  .case-note-grid,
  .case-screen-grid,
  .project-takeaway-grid,
  .case-meta-list {
    grid-template-columns: 1fr;
  }

  .graphic-poster {
    min-height: 220px;
  }

  .case-hero {
    padding-top: 34px;
  }

  .case-cover {
    min-height: 280px;
  }

  .split-section .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-panel,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-content {
    grid-column: 1;
  }

  .timeline li {
    grid-template-columns: 82px 1fr;
    gap: 30px;
  }

  .timeline li::before {
    left: 92px;
  }

  .timeline li::after {
    left: 97px;
  }

}
