* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: #191919; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 14px; line-height: 1.8; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { opacity: .7; }
a:focus-visible { outline: 2px solid #191919; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 16px; }
h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 500; letter-spacing: .08em; line-height: 1.3; }
h2 { font-size: clamp(18px, 3vw, 24px); font-weight: 500; letter-spacing: .08em; }
h3 { font-size: 16px; font-weight: 500; }
.header, main, .footer { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; border-bottom: 1px solid #e5e5e5; }
.brand { flex-shrink: 0; }
.brand img { width: 240px; }
.header nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: .1em; }
.header nav a { text-decoration: none; }
.header nav a[aria-current] { text-decoration: underline; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 8px 16px; background: #fff; z-index: 2; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { color: #666; font-size: 11px; letter-spacing: .1em; }
.philosophy { padding-block: 56px 40px; text-align: center; }
.philosophy h1 { margin-bottom: 16px; font-weight: 400; }
.philosophy p { margin: 0; font-size: clamp(17px, 2.3vw, 27px); letter-spacing: .06em; line-height: 1.8; text-wrap: balance; }
.hero { width: min(840px, 100%); margin-inline: auto; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; text-decoration: none; transition: opacity 1.2s ease-in-out, visibility 0s 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.hero-slide:hover { opacity: 1; }
.hero-slide figure { margin: 0; }
.hero-image { aspect-ratio: 16 / 10; }
.hero-image img { width: 100%; height: 100%; object-fit: contain; }
.hero-slide figcaption { display: grid; gap: 6px; padding-top: 20px; text-align: center; font-size: 13px; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; }
.hero-controls[hidden] { display: none; }
.hero-pagination { display: flex; gap: 4px; }
.hero-pagination button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.hero-pagination button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ccc; }
.hero-pagination button[aria-pressed="true"]::before { background: #191919; }
.hero-controls button:focus-visible { outline: 2px solid #191919; outline-offset: 3px; }
.role-nav { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-block: 28px; border-bottom: 1px solid #e5e5e5; font-size: 11px; letter-spacing: .08em; }
.works-filters button { appearance: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: 6px 0; background: transparent; color: #666; font: inherit; letter-spacing: inherit; cursor: pointer; }
.works-filters button:hover { color: #191919; }
.works-filters button[aria-pressed="true"] { color: #191919; border-bottom-color: currentColor; }
.works-filters button:focus-visible { outline: 2px solid #191919; outline-offset: 5px; }
.filter-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#works-results { margin-top: 56px; }
#works-results .work[hidden] { display: none; }
.works-grid { --works-columns: 3; --works-gap: 24px; display: grid; grid-template-columns: repeat(var(--works-columns), minmax(0, 1fr)); align-items: start; gap: var(--works-gap); }
.works-grid.is-masonry { display: block; position: relative; }
.works-grid.is-masonry > .work { position: absolute; top: 0; left: 0; }
.work > a { display: block; }
.work-image { width: 100%; height: auto; background: #f3f3f3; }
.client { font-size: 12px; color: #666; }
dl { margin: 0 0 20px; }
dl > div { margin-bottom: 12px; }
dt { font-weight: 600; }
dd { margin: 0; }
.gallery { display: grid; gap: 12px; }
.gallery img { width: 100%; }
.about-portrait { max-width: 960px; margin: 0 0 32px; }
.about-portrait img { width: 100%; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 960px; }
.profile h3 { margin-top: 24px; }
.profile h3:first-child { margin-top: 0; }
.content-section { margin-top: 64px; padding-top: 32px; border-top: 1px solid #ddd; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.timeline { max-width: 900px; }
.timeline > div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 24px; }
.contact { max-width: 720px; padding-bottom: 56px; }
.email { display: inline-block; font-size: clamp(18px, 4.5vw, 32px); margin-block: 20px 32px; overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; font-size: 12px; letter-spacing: .1em; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 80px; padding-block: 24px; border-top: 1px solid #ddd; font-size: 11px; color: #666; }
@media (max-width: 900px) {
  .works-grid { --works-columns: 2; }
  .services { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .header, main, .footer { width: calc(100% - 40px); }
  .header { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px; }
  .header nav { width: 100%; justify-content: space-between; gap: 16px; }
  .brand img { width: 220px; }
  .philosophy { padding-block: 36px 28px; }
  .hero-image { aspect-ratio: 4 / 5; }
  .hero-slide figcaption { font-size: 12px; }
  .works-grid { --works-columns: 2; --works-gap: 16px; }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .timeline > div { grid-template-columns: 1fr; gap: 8px; }
  .footer { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

.back-link { margin-top: 32px; font-size: 12px; }
.project { max-width: 900px; margin-inline: auto; }
.project h1 { font-size: clamp(24px, 4vw, 40px); letter-spacing: .03em; overflow-wrap: anywhere; }
.project-detail { overflow-wrap: anywhere; }
.project-detail .description { max-width: 720px; margin-top: 40px; }
.project .gallery { gap: 24px; }

.project-heading { margin-block: 40px 32px; }
.project-heading h1 { max-width: 800px; font-size: clamp(20px, 3.5vw, 32px); line-height: 1.5; }
.instagram-caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.source-link { margin-top: 32px; font-size: 12px; }
