:root {
  color-scheme: light;
  --black: #050505;
  --black-soft: #101010;
  --ink: #171717;
  --muted: #5d5d5d;
  --line: #d9d9d9;
  --line-dark: #303030;
  --white: #ffffff;
  --paper: #f7f7f3;
  --paper-strong: #eeeeea;
  --radius: 6px;
  --max: 1180px;
  --header-height: 76px;
  font-family:
    "Inter",
    "Helvetica Neue",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(247, 247, 243, 0.9);
  border-bottom: 1px solid rgba(5, 5, 5, 0.14);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer > div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-size: 22px;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.site-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--black);
  outline: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: calc(var(--header-height) + 52px) 32px 84px;
}

#studio-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.95);
}

.kicker {
  margin: 0 0 16px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #cfcfcf;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 760;
}

h1 {
  max-width: 860px;
  font-size: 5.4rem;
}

h1 span {
  display: block;
  margin-top: 12px;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  text-stroke: 1px var(--white);
  font-size: 7rem;
  line-height: 0.9;
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: #e5e5e5;
  font-size: 1.14rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 136px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-weight: 760;
  line-height: 1.2;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

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

.button-secondary {
  background: transparent;
  color: currentColor;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 5, 5, 0.72);
}

.hero-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: #efefef;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 112px 32px;
}

.dark-section {
  width: 100%;
  max-width: none;
  background: var(--black);
  color: var(--white);
  padding-left: max(32px, calc((100vw - var(--max)) / 2 + 32px));
  padding-right: max(32px, calc((100vw - var(--max)) / 2 + 32px));
}

.section-number {
  align-self: start;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  border-top: 1px solid currentColor;
  padding-top: 14px;
}

.dark-section .section-number {
  color: #bdbdbd;
}

.section-heading {
  align-self: start;
}

.section-heading .kicker {
  color: var(--muted);
}

.dark-section .section-heading .kicker {
  color: #bdbdbd;
}

h2 {
  font-size: 2.65rem;
}

h3 {
  font-size: 1.18rem;
}

.intro-body p,
.works-copy p,
.portfolio-empty p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-body p + p {
  margin-top: 18px;
}

.fact-grid {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact-grid div {
  min-height: 160px;
  padding: 24px;
  background: var(--paper);
}

dt {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.service-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background: var(--black-soft);
}

.service-index {
  color: #bdbdbd;
  font-size: 0.74rem;
  font-weight: 760;
}

.service-card p,
.role-list p {
  margin: 0;
  color: #cfcfcf;
}

.works-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 36px;
  grid-column: 1 / 4;
  margin-top: 10px;
}

.works-copy {
  padding-top: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 760;
  border-bottom: 1px solid currentColor;
  transition: transform 180ms ease;
}

.tag-wall {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.tag-wall span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.92rem;
}

.portfolio-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.video-card,
.portfolio-empty {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body,
.portfolio-empty {
  padding: 18px;
}

.video-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-empty {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.portfolio-empty span {
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.portfolio-tags {
  grid-column: 1 / 3;
  padding-top: 2px;
}

.portfolio-page {
  background: var(--paper);
}

.portfolio-page h1 {
  max-width: 980px;
  font-size: 4.8rem;
}

.portfolio-hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 84px) 32px 72px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.76)),
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.16), transparent 34%),
    var(--black);
  color: var(--white);
}

.portfolio-hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.portfolio-hero p:not(.kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: #e2e2e2;
  font-size: 1.08rem;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 1px;
  width: min(100%, 560px);
  margin: 44px 0 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.portfolio-stats div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  background: rgba(5, 5, 5, 0.58);
}

.portfolio-stats dt {
  margin: 0;
  color: var(--white);
  font-size: 2.1rem;
  line-height: 1;
}

.portfolio-stats dd {
  color: #cfcfcf;
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.portfolio-browser {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 80px 32px 112px;
}

.portfolio-browser-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: end;
}

.portfolio-search {
  display: grid;
  gap: 8px;
}

.portfolio-search span,
.portfolio-result-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.portfolio-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.portfolio-search input:focus {
  border-color: var(--black);
  outline: none;
}

.category-filter {
  display: flex;
  gap: 8px;
  margin: 34px 0 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.category-filter-button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}

.category-filter-button[aria-pressed="true"],
.category-filter-button:hover,
.category-filter-button:focus-visible {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  outline: none;
}

.portfolio-result-count {
  margin: 0 0 18px;
}

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

.portfolio-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black);
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portfolio-platform {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  background: rgba(5, 5, 5, 0.76);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
}

.portfolio-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 36px;
  padding: 8px 13px;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  color: var(--black);
  cursor: pointer;
  font-weight: 760;
}

.portfolio-card-body {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.portfolio-card-category {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.portfolio-card h3 {
  font-size: 1rem;
  line-height: 1.42;
}

.portfolio-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-card-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  background: var(--paper-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.portfolio-card-actions {
  align-self: end;
  padding-top: 4px;
}

.portfolio-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
}

.muted-action {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.portfolio-empty-state {
  margin-top: 28px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portfolio-empty-state span {
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.portfolio-empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dialog-open {
  overflow: hidden;
}

.work-dialog {
  width: min(100% - 32px, 980px);
  padding: 0;
  background: transparent;
  border: 0;
}

.work-dialog::backdrop {
  background: rgba(5, 5, 5, 0.82);
}

.work-dialog-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.work-dialog-head h2 {
  font-size: 1.35rem;
}

.dialog-close {
  align-self: start;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
}

.dialog-frame {
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.dialog-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 18px 22px 22px;
}

.role-list {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.role-list article {
  min-height: 190px;
  padding: 26px;
  background: var(--black-soft);
}

.role-list h3 {
  margin-bottom: 18px;
}

.contact-panel {
  grid-column: 3 / 4;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact .button-primary {
  background: var(--black);
  color: var(--white);
}

.contact .button-secondary {
  color: var(--black);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  background: var(--black);
  color: var(--white);
}

.site-footer .brand-mark {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.site-footer p {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 8px;
  }

  h1 {
    font-size: 4rem;
  }

  .portfolio-page h1 {
    font-size: 3.8rem;
  }

  h1 span {
    font-size: 5.2rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section,
  .dark-section {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 26px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading,
  .intro-body,
  .works-layout,
  .contact-panel {
    grid-column: 2 / 3;
  }

  .fact-grid,
  .service-grid,
  .role-list {
    grid-column: 1 / 3;
  }

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

  .role-list,
  .works-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-videos {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-name {
    display: none;
  }

  .site-nav {
    font-size: 0.76rem;
  }

  .site-nav a {
    padding: 8px 6px;
  }

  .hero {
    min-height: 86vh;
    padding: calc(var(--header-height) + 42px) 20px 150px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .portfolio-page h1 {
    font-size: 2.75rem;
  }

  h1 span {
    font-size: 4.1rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

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

  .hero-strip span {
    min-height: 42px;
  }

  .section,
  .dark-section {
    display: block;
    padding: 72px 20px;
  }

  .section-number {
    width: 56px;
    margin-bottom: 28px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  h2 {
    font-size: 1.9rem;
  }

  .fact-grid,
  .service-grid,
  .role-list,
  .works-layout,
  .portfolio-videos {
    grid-template-columns: 1fr;
  }

  .portfolio-tags {
    grid-column: auto;
  }

  .portfolio-hero {
    min-height: 68vh;
    padding: calc(var(--header-height) + 48px) 20px 54px;
  }

  .portfolio-hero p:not(.kicker) {
    font-size: 1rem;
  }

  .portfolio-stats,
  .portfolio-browser-head,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-browser {
    padding: 64px 20px 82px;
  }

  .portfolio-browser-head {
    gap: 22px;
  }

  .work-dialog {
    width: min(100% - 20px, 980px);
  }

  .work-dialog-head {
    display: grid;
    padding: 18px;
  }

  .service-grid,
  .role-list,
  .works-layout,
  .fact-grid {
    margin-top: 24px;
  }

  .fact-grid div,
  .service-card,
  .role-list article {
    min-height: auto;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    display: grid;
    gap: 14px;
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .text-link {
    transition: none;
  }
}
